geosphere-maps/public/assets/esri/themes/base/_functions.scss

24 lines
592 B
SCSS
Raw Permalink Normal View History

2023-09-22 09:33:13 +00:00
//////////////////////////////
// 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);
}
}