mirror of https://github.com/keeweb/keeweb
15 lines
378 B
SCSS
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;
|
|
}
|