mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-21 13:24:08 +03:00
feat(utilitites): try to ensure decent contrasts
This commit is contained in:
@@ -50,6 +50,12 @@
|
||||
.#{$property-class + $infix + $property-class-modifier} {
|
||||
@each $property in $properties {
|
||||
#{$property}: $value if($enable-important-utilities, !important, null);
|
||||
// Ensures decent contrast where possible
|
||||
@if "background-color" == $property and "transparent" != inspect($value) {
|
||||
color: color-contrast($value);
|
||||
} @else if "color" == $property and "inherit" != inspect($value) and $accessible-orange != $value {
|
||||
background-color: color-contrast($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user