feat: Replace deprecated sass things
- Global built-in functions - Color functions
This commit is contained in:
parent
225c1dd55c
commit
b739ddefda
13 changed files with 96 additions and 81 deletions
|
|
@ -1,3 +1,5 @@
|
|||
@use "sass:color";
|
||||
|
||||
// Forms
|
||||
// -----------------------------------------------------------------------------
|
||||
// form
|
||||
|
|
@ -88,7 +90,7 @@ td > textarea {
|
|||
|
||||
&[readonly="readonly"],
|
||||
&[readonly] {
|
||||
background-color: darken($color_back_io, $color_diff_double);
|
||||
background-color: color.scale($color_back_io, $lightness: -$color_diff_double);
|
||||
}
|
||||
|
||||
&[disabled="disabled"],
|
||||
|
|
@ -117,7 +119,7 @@ td > textarea {
|
|||
|
||||
&[readonly="readonly"],
|
||||
&[readonly] {
|
||||
border-color: darken($color_border_io, $color_diff_double);
|
||||
border-color: color.scale($color_border_io, $lightness: -$color_diff_double);
|
||||
}
|
||||
|
||||
&[disabled="disabled"],
|
||||
|
|
@ -165,7 +167,7 @@ button {
|
|||
&[disabled="disabled"],
|
||||
&[disabled] {
|
||||
border-color: transparent;
|
||||
color: lighten($color_text_button, $color_diff_double);
|
||||
color: color.scale($color_text_button, $lightness: $color_diff_double);
|
||||
|
||||
&:hover {
|
||||
background-color: $color_back_button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue