@mixin bevel-text($type: 'shadow') {
@if $enable-highlights {
@if $type == shadow {
text-shadow: rgba(0,0,0,.5) 0 -1px 0;
} @else {
text-shadow: rgba(255,255,255,.25) 0 1px 0;
}
}
}
@mixin bevel-box($type: 'light') {
@if $enable-highlights {
@if $type == shadow {
@include st-box-shadow(rgba(#000, .5) 0 -1px 0);
} @else {
@include st-box-shadow(rgba(#fff, .35) 0 1px 0);
}
}
}
@mixin bevel-by-background($bg-color) {
@if (lightness($bg-color) > 50) {
@include bevel-text(light);
} @else {
@include bevel-text;
}
}
@mixin mask-by-background($bg-color, $contrast: 100%, $style: $base-background-gradient) {
@if (lightness($bg-color) > 50) {
@include background-gradient(darken($bg-color, $contrast), $style);
} @else {
@include background-gradient(lighten($bg-color, $contrast), $style);
}
}