Extract mixin to use body background and text color
This way we reduce the usages of the `$body-background` and `$text` variables, making it easier to replace them with CSS variables in the future.
This commit is contained in:
@@ -637,8 +637,7 @@ body > header,
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.is-dropdown-submenu {
|
&.is-dropdown-submenu {
|
||||||
background: $body-background;
|
@extend %body-colors;
|
||||||
color: $text;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: rem-calc(-12);
|
margin-top: rem-calc(-12);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -2614,9 +2613,8 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
background: $body-background;
|
@extend %body-colors;
|
||||||
border-radius: rem-calc(4);
|
border-radius: rem-calc(4);
|
||||||
color: $text;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
@@ -44,8 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
option {
|
option {
|
||||||
background: $body-background;
|
@extend %body-colors;
|
||||||
color: $text;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,11 @@
|
|||||||
color: $brand;
|
color: $brand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin body-colors {
|
||||||
|
background-color: $body-background;
|
||||||
|
color: $text;
|
||||||
|
}
|
||||||
|
|
||||||
@mixin normal-selection {
|
@mixin normal-selection {
|
||||||
|
|
||||||
&::selection,
|
&::selection,
|
||||||
@@ -36,3 +41,7 @@
|
|||||||
%brand-text {
|
%brand-text {
|
||||||
@include brand-text;
|
@include brand-text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%body-colors {
|
||||||
|
@include body-colors;
|
||||||
|
}
|
||||||
|
|||||||
@@ -932,8 +932,7 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $body-background;
|
@extend %body-colors;
|
||||||
color: $text;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1473,9 +1472,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.zoom-link {
|
.zoom-link {
|
||||||
background: $body-background;
|
@extend %body-colors;
|
||||||
border-radius: rem-calc(48);
|
border-radius: rem-calc(48);
|
||||||
color: $text;
|
|
||||||
font-size: rem-calc(24);
|
font-size: rem-calc(24);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
height: rem-calc(48);
|
height: rem-calc(48);
|
||||||
|
|||||||
Reference in New Issue
Block a user