Extract placeholder selector for button styles

So we can reuse it.
This commit is contained in:
Javi Martín
2021-01-08 12:56:03 +01:00
parent 1e7517d1f6
commit 739236d585
2 changed files with 9 additions and 9 deletions

View File

@@ -91,12 +91,8 @@ a {
}
.button {
@extend %button;
background: $brand;
font-size: $base-font-size;
&:hover {
text-decoration: none !important;
}
&.warning,
&.warning:hover {

View File

@@ -199,17 +199,21 @@
}
}
@mixin hollow-button($color: $link) {
@include button($style: hollow, $background: $color);
%button {
font-size: $base-font-size;
margin-bottom: 0;
&:focus,
&:hover {
text-decoration: none;
text-decoration: none !important;
}
}
@mixin hollow-button($color: $link) {
@include button($style: hollow, $background: $color);
@extend %button;
margin-bottom: 0;
}
@mixin header-font-size($heading-tag) {
@each $size, $headers in $header-styles {
@include breakpoint($size) {