mirror of https://github.com/ColorlibHQ/AdminLTE
toast dark-mode bug fix
parent
0e71358c78
commit
6bf0643fca
|
@ -1,6 +1,7 @@
|
||||||
//
|
//
|
||||||
// Toast
|
// Toast
|
||||||
//
|
//
|
||||||
|
|
||||||
@each $name, $color in $theme-colors {
|
@each $name, $color in $theme-colors {
|
||||||
.toast-#{$name} {
|
.toast-#{$name} {
|
||||||
--#{$prefix}toast-header-color: #{color-contrast($color)};
|
--#{$prefix}toast-header-color: #{color-contrast($color)};
|
||||||
|
@ -16,3 +17,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if $enable-dark-mode {
|
||||||
|
@include color-mode(dark) {
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.toast-#{$name} {
|
||||||
|
@if color-contrast($color) == $color-contrast-dark {
|
||||||
|
.btn-close {
|
||||||
|
--#{$prefix}btn-close-white-filter: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue