1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-25 07:37:46 +02:00
keeweb/app/styles/base/_theme-vars-support.scss
2019-08-16 23:05:39 +02:00

15 lines
378 B
SCSS

@function text-contrast-color($bg, $lshift, $th-bg, $th-text) {
@if (lightness($bg) - $lshift >= lightness($th-bg)) {
@return $th-text;
}
@return $th-bg;
}
@function lightness-alpha($color, $lightness, $alpha) {
@return adjust_color($color, $lightness: $lightness, $alpha: $alpha);
}
@function semi-mute-percent($percent) {
@return $percent / 2;
}