-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
511e29d
commit 87a0be4
Showing
3 changed files
with
3 additions
and
155 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,3 @@ | ||
@import "button-mixins"; | ||
|
||
/** | ||
* Button | ||
*/ | ||
|
||
/** | ||
* Block Options | ||
*/ | ||
.wp-block-button, | ||
.wp-block-button__link { | ||
|
||
&.wp-block-button__link, | ||
.wp-block-button__link { | ||
|
||
@include button-hover-styles; | ||
border-width: 0; | ||
text-decoration: none; | ||
font-weight: var(--wp--custom--button--typography--font-weight); | ||
} | ||
|
||
&.is-style-outline { | ||
|
||
&.wp-block-button__link, | ||
.wp-block-button__link { | ||
--wp--custom--button--color--text: var(--wp--custom--button--border--color); | ||
--wp--custom--button--color--background: transparent; | ||
|
||
@include button-border-styles; | ||
@include button-hover-styles; | ||
@include button-color-styles; | ||
} | ||
} | ||
} | ||
|
||
// TODO: I'm not sure what the end goal should be here, but since we are unable to use | ||
// a button block OUTSIDE of the context of the button collection block (grrrrrrrrr) | ||
// then there are undesired margins to be dealt with somehow. | ||
.wp-block-buttons { | ||
|
||
.wp-block-button:last-child { | ||
margin-bottom: 0; | ||
} | ||
.wp-block-button:not(.is-style-outline) > a.has-background { | ||
border-style: none; | ||
} |