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,20 +1,22 @@
|
|||
@use "sass:map";
|
||||
|
||||
@mixin addDefaultColors() {
|
||||
@if map-has-key($color_palette, alpha) {
|
||||
$alpha_color: map-get($color_palette, alpha) !global;
|
||||
@if map.has-key($color_palette, alpha) {
|
||||
$alpha_color: map.get($color_palette, alpha) !global;
|
||||
}
|
||||
@if map-has-key($color_palette, bravo) {
|
||||
$bravo_color: map-get($color_palette, bravo) !global;
|
||||
@if map.has-key($color_palette, bravo) {
|
||||
$bravo_color: map.get($color_palette, bravo) !global;
|
||||
}
|
||||
@if map-has-key($color_palette, charlie) {
|
||||
$charlie_color: map-get($color_palette, charlie) !global;
|
||||
@if map.has-key($color_palette, charlie) {
|
||||
$charlie_color: map.get($color_palette, charlie) !global;
|
||||
}
|
||||
@if map-has-key($color_palette, delta) {
|
||||
$delta_color: map-get($color_palette, delta) !global;
|
||||
@if map.has-key($color_palette, delta) {
|
||||
$delta_color: map.get($color_palette, delta) !global;
|
||||
}
|
||||
@if map-has-key($color_palette, echo) {
|
||||
$echo_color: map-get($color_palette, echo) !global;
|
||||
@if map.has-key($color_palette, echo) {
|
||||
$echo_color: map.get($color_palette, echo) !global;
|
||||
}
|
||||
@if map-has-key($color_palette, foxtrot) {
|
||||
$foxtrot_color: map-get($color_palette, foxtrot) !global;
|
||||
@if map.has-key($color_palette, foxtrot) {
|
||||
$foxtrot_color: map.get($color_palette, foxtrot) !global;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue