Extract mixin to get a background with text contrast
This way we simplify the code a bit. Note we're only using this function when variables for background colors are already defined, since that means customizing the variable using the background color will automatically change the color of the text. Customization isn't easier when using raw colors.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
.admin .machine-learning-setting {
|
||||
|
||||
.card-divider {
|
||||
background: $primary-color;
|
||||
color: color-pick-contrast($primary-color);
|
||||
@include background-with-text-contrast($primary-color);
|
||||
|
||||
h3 {
|
||||
margin-top: 0;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
.admin-sidebar {
|
||||
background: $sidebar;
|
||||
@include background-with-text-contrast($sidebar);
|
||||
background: linear-gradient(to bottom, $sidebar 0%, #488fb5 100%);
|
||||
border-right: 1px solid $border;
|
||||
color: color-pick-contrast($sidebar);
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
|
||||
Reference in New Issue
Block a user