-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TwentyNineteen: fix default presets in 5.9 #2140
Changes from 8 commits
6d4670a
15f8fb2
6a63797
1b6319f
ca59412
54d062c
23aa13e
a407770
ec772f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,26 @@ Twenty Nineteen Editor Styles | |
|
||
/** === Editor Frame === */ | ||
|
||
.has-small-font-size { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ported the font sizes here. This was a bug on its own that this PR also fixes: the theme needs to enqueue the font size classes, which TwentyNineteen didn't do, forcing Gutenberg to add inline styles to the blocks to make it work. |
||
--wp--preset--font-size--small: 19.5px; | ||
font-size: $font__size-sm; | ||
} | ||
|
||
.has-normal-font-size { | ||
--wp--preset--font-size--normal: 22px; | ||
font-size: $font__size-md; | ||
} | ||
|
||
.has-large-font-size { | ||
--wp--preset--font-size--large: 36.5px; | ||
font-size: $font__size-lg; | ||
} | ||
|
||
.has-huge-font-size { | ||
--wp--preset--font-size--huge: 49.5px; | ||
font-size: $font__size-xl; | ||
} | ||
|
||
body { | ||
|
||
.wp-block[data-align="full"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ Theme URI: https://wordpress.org/themes/twentynineteen/ | |
Author: the WordPress team | ||
Author URI: https://wordpress.org/ | ||
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. | ||
Tested up to: 5.9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In 2a04054#diff-43320bbf5db05687019f349593821f99e7827c259d03e05867b4cd3f2a81f74d this live was added to the CSS file but should have been added here instead (and build to CSS after). |
||
Requires at least: 4.9.6 | ||
Requires PHP: 5.2.4 | ||
Version: 2.1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current setup doesn't allow for using
--wp--preset--font-size--small: $font__size-sm
. I've tried to upgrade to a newer setup but ran into a few issues and couldn't. This is the raw value after compiling SCSS into CSS.