Sha256: acc84f9b4d2f35c525e2cef3da524ddfe0051f03362659f014b49aa5437f2622
Contents?: true
Size: 749 Bytes
Versions: 117
Compression:
Stored size: 749 Bytes
Contents
// Color Helper Utilities @function shade($color, $percentage) { @return mix($charcoal, $color, $percentage); } @function dim($color, $percentage) { @return mix($bg_dark, $color, $percentage); } @function lightenText($color, $threshold: 47) { $text_color: $text_lt_default; @if ((type-of($color) == color) and (lightness($color) < $threshold)) { $text_color: $text_dk_default; } @return $text_color; } // Generate Color Helper Classes @mixin background-color($colors-list) { @each $name, $color in $colors-list { .pb_web_#{$name} { background-color: $color !important; } } } @mixin text-color($colors-list) { @each $name, $color in $colors-list { .#{$name} { color: $color !important; } } }
Version data entries
117 entries across 117 versions & 1 rubygems