geosphere-maps/public/assets/esri/themes/base/_functions.scss
2023-09-22 11:33:13 +02:00

24 lines
592 B
SCSS

//////////////////////////////
// Calculations
@function offset-background-color($color, $percent) {
@if (lightness($color) < 50) {
@return lighten($color, $percent);
} @else {
@return darken($color, $percent);
}
}
@function offset-foreground-color($color, $percent) {
@if (lightness($color) > 50) {
@return lighten($color, $percent);
} @else {
@return darken($color, $percent);
}
}
@function fade-foreground-color($color, $percent) {
@if (lightness($color) < 50) {
@return lighten($color, $percent);
} @else {
@return darken($color, $percent);
}
}