4 @mixin color-by-background($bg-color, $contrast: 70%, $default-color: null, $bevel-text: true) {
5 @if ($default-color != null) {
8 @if (lightness($bg-color) > 40) {
9 color: darken($bg-color, $contrast);
12 color: lighten($bg-color, $contrast)
16 @if ($bevel-text != false) {
17 @if (lightness($bg-color) < 40) {
18 @include text-shadow(rgba(0,0,0,.5) 0 -1px 0);
20 @include text-shadow(rgba(255,255,255,.25) 0 1px 0);