mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 04:03:34 +00:00
refactor: update android build dependencies for API level 34
This commit is contained in:
@@ -18,15 +18,15 @@
|
||||
@import './dark';
|
||||
|
||||
@function to-rgb($color) {
|
||||
@return red($color) + ',' + green($color) + ',' + blue($color);
|
||||
@return color.red($color) + ',' + color.green($color) + ',' + color.blue($color);
|
||||
}
|
||||
|
||||
@function to-shade($color) {
|
||||
@return darken($color, $shade-amount);
|
||||
@return color.adjust($color, $lightness: -$shade-amount);
|
||||
}
|
||||
|
||||
@function to-tint($color) {
|
||||
@return lighten($color, $tint-amount);
|
||||
@return color.adjust($color, $lightness: $tint-amount);
|
||||
}
|
||||
|
||||
@function to-contrast($color) {
|
||||
@@ -35,7 +35,11 @@
|
||||
}
|
||||
|
||||
@function fade($color, $amount) {
|
||||
@return if(lightness($color) > $fade-threshold, darken($color, $amount), lighten($color, $amount));
|
||||
@return if(
|
||||
color.lightness($color) > $fade-threshold,
|
||||
color.adjust($color, $lightness: -$amount),
|
||||
color.adjust($color, $lightness: $amount)
|
||||
);
|
||||
}
|
||||
|
||||
@function map-range($value, $input-min, $input-max, $output-min, $output-max) {
|
||||
@@ -44,9 +48,9 @@
|
||||
|
||||
@function interpolate-colors($from, $to, $progress, $progress-min: 0, $progress-max: 100) {
|
||||
@return rgb(
|
||||
map-range($progress, $progress-min, $progress-max, red($from), red($to)),
|
||||
map-range($progress, $progress-min, $progress-max, green($from), green($to)),
|
||||
map-range($progress, $progress-min, $progress-max, blue($from), blue($to))
|
||||
map-range($progress, $progress-min, $progress-max, color.red($from), color.red($to)),
|
||||
map-range($progress, $progress-min, $progress-max, color.green($from), color.green($to)),
|
||||
map-range($progress, $progress-min, $progress-max, color.blue($from), color.blue($to))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user