Use percentages in hsla Sass function
After moving to Dart Sass, we were getting warnings like: ``` Deprecation Warning: $saturation: Passing a number without unit % (78) is deprecated Deprecation Warning: $lightness: Passing a number without unit % (93) is deprecated ``` So we're passing percentages to the hsla function instead of passing numbers without units.
This commit is contained in:
@@ -11,42 +11,42 @@
|
|||||||
background: rgba(255, 249, 218, 0.75);
|
background: rgba(255, 249, 218, 0.75);
|
||||||
|
|
||||||
&.weight-1 {
|
&.weight-1 {
|
||||||
background: hsla(50, 100, 93, 0.5);
|
background: hsla(50, 100%, 93%, 0.5);
|
||||||
|
|
||||||
.weight-1 {
|
.weight-1 {
|
||||||
background: hsla(50, 100, 93, 0.75);
|
background: hsla(50, 100%, 93%, 0.75);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.weight-2 {
|
&.weight-2 {
|
||||||
background: hsla(63, 78, 86, 0.5);
|
background: hsla(63, 78%, 86%, 0.5);
|
||||||
|
|
||||||
.weight-2 {
|
.weight-2 {
|
||||||
background: hsla(63, 78, 86, 0.75);
|
background: hsla(63, 78%, 86%, 0.75);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.weight-3 {
|
&.weight-3 {
|
||||||
background: hsla(52, 100, 85, 0.5);
|
background: hsla(52, 100%, 85%, 0.5);
|
||||||
|
|
||||||
.weight-3 {
|
.weight-3 {
|
||||||
background: hsla(52, 100, 85, 0.75);
|
background: hsla(52, 100%, 85%, 0.75);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.weight-4 {
|
&.weight-4 {
|
||||||
background: hsla(51, 91, 75, 0.5);
|
background: hsla(51, 91%, 75%, 0.5);
|
||||||
|
|
||||||
.weight-4 {
|
.weight-4 {
|
||||||
background: hsla(51, 91, 75, 0.75);
|
background: hsla(51, 91%, 75%, 0.75);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.weight-5 {
|
&.weight-5 {
|
||||||
background: hsla(46, 83, 60, 0.5);
|
background: hsla(46, 83%, 60%, 0.5);
|
||||||
|
|
||||||
.weight-5 {
|
.weight-5 {
|
||||||
background: hsla(46, 83, 60, 0.5);
|
background: hsla(46, 83%, 60%, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user