mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
migration(bs5): update to new color functions
This commit is contained in:
parent
6241ba4382
commit
9eb4b29cb8
4 changed files with 8 additions and 7 deletions
|
@ -78,7 +78,7 @@ export default {
|
|||
@each $color, $value in $theme-colors {
|
||||
&-#{$color} {
|
||||
background-color: $value;
|
||||
color: color-yiq($value);
|
||||
color: color-contrast($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ export default {
|
|||
@each $color, $value in $theme-colors {
|
||||
&.#{$color} {
|
||||
background-color: $value;
|
||||
color: color-yiq($value);
|
||||
color: color-contrast($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue