-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global Styles: Re-add styles that were removed, for classic themes (#…
…44334) * Global Styles: Readd styles that were removed, for classic themes * change the action on which to run the hook * Add an explanatory comments * update comment
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// These rules are needed for backwards compatibility. | ||
.wp-block-button__link { | ||
color: $white; | ||
background-color: #32373c; | ||
border-radius: 9999px; // 100% causes an oval, but any explicit but really high value retains the pill shape. | ||
|
||
// This needs a low specificity so it won't override the rules from the button element if defined in theme.json. | ||
box-shadow: none; | ||
text-decoration: none; | ||
|
||
// The extra 2px are added to size solids the same as the outline versions. | ||
padding: calc(0.667em + 2px) calc(1.333em + 2px); | ||
|
||
font-size: 1.125em; | ||
} |