Sha256: 48d7e4afd02c5a93313212164d630ab46fdc66c41b1db44da70782179995133d
Contents?: true
Size: 776 Bytes
Versions: 789
Compression:
Stored size: 776 Bytes
Contents
// Color Helper Utilities $transition-speed: 0.2s; @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
789 entries across 789 versions & 1 rubygems