mirror of https://github.com/ColorlibHQ/AdminLTE
fix: ignore warnings for deprecation and add TODO for removing dependency (#2852)
parent
50a8489e10
commit
2458663439
|
@ -33,7 +33,9 @@
|
||||||
// Background Gradient Variant
|
// Background Gradient Variant
|
||||||
@mixin background-gradient-variant($name, $color) {
|
@mixin background-gradient-variant($name, $color) {
|
||||||
.bg-gradient-#{$name} {
|
.bg-gradient-#{$name} {
|
||||||
@include bg-gradient-variant("&", $color);
|
// Ignore warning for Bootstrap 4 deprecation
|
||||||
|
// TODO: remove bg-gradient-variant dependencies
|
||||||
|
@include bg-gradient-variant("&", $color, true);
|
||||||
color: color-yiq($color);
|
color: color-yiq($color);
|
||||||
|
|
||||||
&.btn {
|
&.btn {
|
||||||
|
@ -46,7 +48,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include bg-gradient-variant("&", darken($color, 7.5%));
|
// Ignore warning for Bootstrap 4 deprecation
|
||||||
|
// TODO: remove bg-gradient-variant dependencies
|
||||||
|
@include bg-gradient-variant("&", darken($color, 7.5%), true);
|
||||||
border-color: darken($color, 10%);
|
border-color: darken($color, 10%);
|
||||||
color: darken(color-yiq($color), 7.5%);
|
color: darken(color-yiq($color), 7.5%);
|
||||||
}
|
}
|
||||||
|
@ -55,7 +59,9 @@
|
||||||
&:not(:disabled):not(.disabled).active,
|
&:not(:disabled):not(.disabled).active,
|
||||||
&:active,
|
&:active,
|
||||||
&.active {
|
&.active {
|
||||||
@include bg-gradient-variant("&", darken($color, 10%));
|
// Ignore warning for Bootstrap 4 deprecation
|
||||||
|
// TODO: remove bg-gradient-variant dependencies
|
||||||
|
@include bg-gradient-variant("&", darken($color, 10%), true);
|
||||||
border-color: darken($color, 12.5%);
|
border-color: darken($color, 12.5%);
|
||||||
color: color-yiq(darken($color, 10%));
|
color: color-yiq(darken($color, 10%));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue