-
Notifications
You must be signed in to change notification settings - Fork 357
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
a6178d7
commit 37427bf
Showing
6 changed files
with
86 additions
and
159 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,42 +1 @@ | ||
@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; | ||
text-decoration: none; | ||
} | ||
|
||
&.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; | ||
} | ||
} | ||
// Leaving the file to avoid import issues |
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,35 +1,15 @@ | ||
@import 'button-mixins'; | ||
.wp-block-button { | ||
&.wp-block-button__link, | ||
.wp-block-button__link { | ||
&:not(.has-background):not(.has-text-color) { | ||
@include button-outline-hover-styles; | ||
} | ||
} | ||
} | ||
@import "button-mixins"; | ||
|
||
.wp-block-file .wp-block-file__button { | ||
@include button-outline-hover-styles; | ||
} | ||
|
||
.wp-block-search { | ||
&.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button, | ||
.wp-block-search__button { | ||
@include button-outline-hover-styles; | ||
} | ||
@include button-outline-hover-styles; | ||
} | ||
|
||
//NOTE: Double-classed to raise specificity above parent theme's outline hover styles | ||
//as an alternative to !important. Only needed for the editor. | ||
.wp-block-button.wp-block-button.is-style-outline { | ||
&.wp-block-button__link, | ||
.wp-block-button__link { | ||
&:not(.has-background):not(.has-text-color) { | ||
&:hover, | ||
&:focus, | ||
&.has-focus { | ||
color: var(--wp--custom--button--color--background); | ||
background-color: var(--wp--custom--button--color--text); | ||
} | ||
} | ||
} | ||
.wp-block-search { | ||
|
||
&.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button, | ||
.wp-block-search__button { | ||
|
||
@include button-outline-hover-styles; | ||
} | ||
} |
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