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 (#9222)
* [AAE-17674] Solve deprecation warning in the theme creation
Solve deprecation warning in the theme creation
* Update custom-palette-creator.scss
* Update custom-palette-creator.scss
* Update custom-palette-creator.scss
* fix upgrade download upload
* fix upgrade download upload
* Revert "fix upgrade download upload"
This reverts commit 1241b9d164
.
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
@use 'sass:color';
|
||||
|
||||
@function multiply($fore, $back) {
|
||||
$red: color.red($back) * color.red($fore) / 255;
|
||||
$green: color.green($back) * color.green($fore) / 255;
|
||||
$blue: color.blue($back) * color.blue($fore) / 255;
|
||||
$red: math.div(color.red($back) * color.red($fore), 255);
|
||||
$green: math.div(color.green($back) * color.green($fore), 255);
|
||||
$blue: math.div(color.blue($back) * color.blue($fore), 255)
|
||||
|
||||
@return rgb($red, $green, $blue);
|
||||
}
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
@each $name, $value in $colors {
|
||||
$adjusted: 0;
|
||||
$value: $value / 255;
|
||||
$value: math.div($value, 255);
|
||||
|
||||
@if ($value < 0.0393) {
|
||||
$value: $value / 12.92;
|
||||
$value: math.div($value, 12.92);
|
||||
} @else {
|
||||
$value: ($value + 0.055) / 1.055;
|
||||
$value: math.div($value + 0.055, 1.055);
|
||||
$value: math.pow($value, 2.4);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user