Skip to content

Instantly share code, notes, and snippets.

@mwhiteley16
Created February 6, 2019 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwhiteley16/cd5d037e8e0bc9be152d1d4e6dc404ec to your computer and use it in GitHub Desktop.
Save mwhiteley16/cd5d037e8e0bc9be152d1d4e6dc404ec to your computer and use it in GitHub Desktop.
Inverse Blocks CSS
.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