Created
February 6, 2019 15:46
-
-
Save mwhiteley16/cd5d037e8e0bc9be152d1d4e6dc404ec to your computer and use it in GitHub Desktop.
Inverse Blocks CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.button--inverse .wp-block-button__link { | |
@each $name, $color in $colors { | |
&.has-#{$name}-color, | |
&.has-#{$name}-color { | |
color: $color; | |
&:hover, | |
&:focus { | |
color: $white; | |
} | |
} | |
&.has-#{$name}-background-color, | |
&.has-#{$name}-background-color { | |
background-color: transparent !important; // need important to override gutenberg inline styles | |
border: 2px solid $color; | |
&:hover, | |
&:focus { | |
background-color: $color; | |
border: 2px solid $color; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment