migration(bs5): update to new color functions

This commit is contained in:
axolotle 2024-03-14 20:15:38 +01:00
parent 6241ba4382
commit 9eb4b29cb8
4 changed files with 8 additions and 7 deletions

View file

@ -78,7 +78,7 @@ export default {
@each $color, $value in $theme-colors {
&-#{$color} {
background-color: $value;
color: color-yiq($value);
color: color-contrast($value);
}
}
}

View file

@ -112,8 +112,9 @@ export default {
text-decoration: none;
background-color: $list-group-hover-bg;
@include hover-focus() {
background-color: darken($list-group-hover-bg, 3%);
&:hover,
&:focus {
background-color: shade-color($gray-100, 3%);
}
}
}

View file

@ -48,7 +48,7 @@ export default {
@each $color, $value in $theme-colors {
&.#{$color} {
background-color: $value;
color: color-yiq($value);
color: color-contrast($value);
}
}
}

View file

@ -61,15 +61,15 @@ export default {
@each $color, $value in $theme-colors {
&-#{$color} {
color: theme-color-level($color, 6);
color: tint-color($value, 50%);
[data-bs-theme='light'] & {
color: theme-color-level($color, -6);
color: shade-color($value, 60%);
}
.yuno-list-group-item-status {
background-color: $value;
color: color-yiq($value);
color: color-contrast($value);
}
}
}