-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: first pass at base fonts, colours (#11)
- Loading branch information
1 parent
9d53a26
commit bf6b91b
Showing
5 changed files
with
107 additions
and
56 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,20 @@ | ||
// Apply the custom CSS variables defined in theme.json. | ||
.has-x-small-font-size { | ||
line-height: var( --wp--custom--line-height--x-small ); | ||
} | ||
|
||
.has-small-font-size { | ||
line-height: var( --wp--custom--line-height--small ); | ||
} | ||
|
||
.has-large-font-size { | ||
line-height: var( --wp--custom--line-height--large ); | ||
} | ||
|
||
.has-x-large-font-size { | ||
line-height: var( --wp--custom--line-height--x-large ); | ||
} | ||
|
||
.has-xx-large-font-size { | ||
line-height: var( --wp--custom--line-height--xx-large ); | ||
} |
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,25 @@ | ||
// Add CSS for theme.json options that don't exist yet. | ||
|
||
/* | ||
* Control the hover stylings of outline block style. | ||
* Unnecessary once block styles are configurable via theme.json | ||
* https://github.com/WordPress/gutenberg/issues/42794 | ||
*/ | ||
.wp-block-button { | ||
&.is-style-outline { | ||
> .wp-block-button__link:not(.has-background):hover { | ||
background-color: var(--wp--preset--color--secondary); | ||
color: var(--wp--preset--color--base); | ||
border-color: var(--wp--preset--color--secondary); | ||
} | ||
} | ||
} | ||
|
||
/* | ||
* Link styles | ||
* https://github.com/WordPress/gutenberg/issues/42319 | ||
*/ | ||
a { | ||
text-decoration-thickness: .0625em !important; | ||
text-underline-offset: .15em; | ||
} |
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,3 +1,5 @@ | ||
@import url( './_theme-description.scss' ); | ||
@import url( './_css-variables.scss' ); | ||
@import url( './_base.scss' ); | ||
@import url( './_gutenberg-shim.scss' ); | ||
@import url( './_header.scss' ); |
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