mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-17674] Solve deprecation warning in the theme creation
Solve deprecation warning in the theme creation
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
@use 'sass:color';
|
@use 'sass:color';
|
||||||
|
|
||||||
@function multiply($fore, $back) {
|
@function multiply($fore, $back) {
|
||||||
$red: color.red($back) * color.red($fore) / 255;
|
$red: math.div(color.green($back) * color.green($fore), 255);
|
||||||
$green: color.green($back) * color.green($fore) / 255;
|
$green: math.div(color.green($back) * color.green($fore), 255);
|
||||||
$blue: color.blue($back) * color.blue($fore) / 255;
|
$blue: math.div(color.blue($back) * color.blue($fore), 255)
|
||||||
|
|
||||||
@return rgb($red, $green, $blue);
|
@return rgb($red, $green, $blue);
|
||||||
}
|
}
|
||||||
@@ -19,12 +19,12 @@
|
|||||||
|
|
||||||
@each $name, $value in $colors {
|
@each $name, $value in $colors {
|
||||||
$adjusted: 0;
|
$adjusted: 0;
|
||||||
$value: $value / 255;
|
$value: math.div($value, 255);
|
||||||
|
|
||||||
@if ($value < 0.0393) {
|
@if ($value < 0.0393) {
|
||||||
$value: $value / 12.92;
|
$value: $value / 12.92;
|
||||||
} @else {
|
} @else {
|
||||||
$value: ($value + 0.055) / 1.055;
|
$value: math.div($value + 0.055, 1.055);
|
||||||
$value: math.pow($value, 2.4);
|
$value: math.pow($value, 2.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user