Extract code to define brand background

Setting the color to `$white` or `#fff` while setting the background to
`$brand` is a pattern we were using in many places. Since we're going to
edit it in order to fix the `::selection` behavior, we're defining the
pattern in one place.
This commit is contained in:
Javi Martín
2021-03-12 19:32:13 +01:00
parent 8ec7f0efc0
commit e2d540d203
5 changed files with 18 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
@mixin brand-background {
background-color: $brand;
color: $white;
}
%brand-background {
@include brand-background;
}