// SHARED MIXINS @mixin btn-transition { @include transition-property(background-color); @include transition-duration(300ms); @include transition-timing-function(ease-out); } @mixin tooltip($top: 8px, $left: 40px) { background: $dark_slate_gray; color: $white; position: absolute; z-index: 2; left: $left; top: $top; font-size: 0.8rem; padding: 4px 10px; white-space: nowrap; @include border-radius(2px); } // FORM MIXINS @mixin check-box { background-color: $white; border: 1px solid $light_gray; padding: 7px; margin: 3px 0; cursor: pointer; display: inline-block; position: relative; @include border-radius(2px); @include appearance(none); &:focus { outline: none; border-color: $medium_dark_grey; } &:active, &:checked:active { } &:checked { background-color: $contrast; border: 1px solid darken($lighter_gray, 10%); color: $dark_grey; } &:checked:after { content: '\2714'; font-size: 1em; position: absolute; bottom: -2px; left: 1px; color: $navigation_background; } } @mixin searching($top, $left, $color, $size){ &.searching { &:after { font-family: FontAwesome; content: "\f002"; font-size: $size; top: $top; left: $left; position: absolute; color: $color; text-shadow: -1px 0 $contrast, 0 1px $contrast, 1px 0 $contrast, 0 -1px $contrast; } } }