diff --git a/src/wp-content/themes/twentynineteen/print.css b/src/wp-content/themes/twentynineteen/print.css index ffc481cba6562..b05276d8d9ac2 100644 --- a/src/wp-content/themes/twentynineteen/print.css +++ b/src/wp-content/themes/twentynineteen/print.css @@ -34,6 +34,9 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272 h1 { font-size: 24pt; } + .has-large-font-size { + --wp--preset--font-size--large: 14pt; + } h2, h3, h4, diff --git a/src/wp-content/themes/twentynineteen/print.scss b/src/wp-content/themes/twentynineteen/print.scss index 47976da65fa04..0159c051d9b37 100644 --- a/src/wp-content/themes/twentynineteen/print.scss +++ b/src/wp-content/themes/twentynineteen/print.scss @@ -44,11 +44,15 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272 font-size: 24pt; } + .has-large-font-size { + --wp--preset--font-size--large: 14pt; + } + h2, h3, h4, - .has-regular-font-size, - .has-large-font-size, + .has-regular-font-size, + .has-large-font-size, h2.author-title, p.author-bio, .comments-title, h3 { diff --git a/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index 806df3a760585..da3661760e3c9 100644 --- a/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -446,6 +446,10 @@ margin-left: $size__spacing-unit; margin-right: $size__spacing-unit; + &.has-white-color { + --wp--preset--color--white: inherit; + } + &.has-text-color p, &.has-text-color a, &.has-primary-color, @@ -930,18 +934,22 @@ //! Font Sizes .has-small-font-size { + --wp--preset--font-size--small: 0.88889em; font-size: $font__size-sm; } .has-normal-font-size { + --wp--preset--font-size--normal: 1.125em; font-size: $font__size-md; } .has-large-font-size { + --wp--preset--font-size--large: 1.6875em; font-size: $font__size-lg; } .has-huge-font-size { + --wp--preset--font-size--huge: 2.25em; font-size: $font__size-xl; } @@ -1004,6 +1012,7 @@ .has-white-background-color, .wp-block-pullquote.is-style-solid-color.has-white-background-color { + --wp--preset--color--white: #FFF; background-color: #FFF; } @@ -1038,6 +1047,7 @@ .has-white-color, .wp-block-pullquote blockquote.has-white-color, .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { + --wp--preset--color--white: #FFF; color: #FFF; } } diff --git a/src/wp-content/themes/twentynineteen/sass/typography/_headings.scss b/src/wp-content/themes/twentynineteen/sass/typography/_headings.scss index 21ea2e44711f9..5d1bf562b83b5 100644 --- a/src/wp-content/themes/twentynineteen/sass/typography/_headings.scss +++ b/src/wp-content/themes/twentynineteen/sass/typography/_headings.scss @@ -83,6 +83,10 @@ h2 { } } +.has-large-font-size { + --wp--preset--font-size--large: 1.6875em; +} + .has-regular-font-size, .has-large-font-size, .comments-title, @@ -110,6 +114,10 @@ h5 { font-size: $font__size-sm; } +.has-small-font-size { + --wp--preset--font-size--small: 0.71111em; +} + .entry-meta, .entry-footer, .discussion-meta-info, diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index ea254956dd842..473361e36253d 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -581,6 +581,26 @@ h6:lang(vi), figcaption:lang(vi), } /** === Editor Frame === */ +.has-small-font-size { + --wp--preset--font-size--small: 0.88889em; + font-size: 0.88889em; +} + +.has-normal-font-size { + --wp--preset--font-size--normal: 1.125em; + font-size: 1.125em; +} + +.has-large-font-size { + --wp--preset--font-size--large: 1.6875em; + font-size: 1.6875em; +} + +.has-huge-font-size { + --wp--preset--font-size--huge: 2.25em; + font-size: 2.25em; +} + body .wp-block[data-align="full"], body .wp-block.alignfull { max-width: calc(100% + 16px); diff --git a/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss index ed06791612782..eebd52e6a3ccc 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.scss +++ b/src/wp-content/themes/twentynineteen/style-editor.scss @@ -9,6 +9,26 @@ Twenty Nineteen Editor Styles /** === Editor Frame === */ +.has-small-font-size { + --wp--preset--font-size--small: 0.88889em; + font-size: $font__size-sm; +} + +.has-normal-font-size { + --wp--preset--font-size--normal: 1.125em; + font-size: $font__size-md; +} + +.has-large-font-size { + --wp--preset--font-size--large: 1.6875em; + font-size: $font__size-lg; +} + +.has-huge-font-size { + --wp--preset--font-size--huge: 2.25em; + font-size: $font__size-xl; +} + body { .wp-block[data-align="full"], diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 7046be4e65d9d..2a996ddcea3ed 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -2333,6 +2333,10 @@ h2 { } } +.has-large-font-size { + --wp--preset--font-size--large: 1.6875em; +} + .has-regular-font-size, .has-large-font-size, .comments-title, @@ -2360,6 +2364,10 @@ h5 { font-size: 0.88889em; } +.has-small-font-size { + --wp--preset--font-size--small: 0.71111em; +} + .entry-meta, .entry-footer, .discussion-meta-info, @@ -5760,6 +5768,10 @@ body.page .main-navigation { margin-left: 1rem; } +.entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { + --wp--preset--color--white: inherit; +} + .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-text-color p, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-text-color a, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { color: inherit; @@ -6283,18 +6295,22 @@ body.page .main-navigation { } .entry .entry-content .has-small-font-size { + --wp--preset--font-size--small: 0.88889em; font-size: 0.88889em; } .entry .entry-content .has-normal-font-size { + --wp--preset--font-size--normal: 1.125em; font-size: 1.125em; } .entry .entry-content .has-large-font-size { + --wp--preset--font-size--large: 1.6875em; font-size: 1.6875em; } .entry .entry-content .has-huge-font-size { + --wp--preset--font-size--huge: 2.25em; font-size: 2.25em; } @@ -6377,6 +6393,7 @@ body.page .main-navigation { .entry .entry-content .has-white-background-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color.has-white-background-color { + --wp--preset--color--white: #FFF; background-color: #FFF; } @@ -6410,6 +6427,7 @@ body.page .main-navigation { .entry .entry-content .has-white-color, .entry .entry-content .wp-block-pullquote blockquote.has-white-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { + --wp--preset--color--white: #FFF; color: #FFF; } diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 16e80ce84e54b..eca7bd4c7d4d8 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -2333,6 +2333,10 @@ h2 { } } +.has-large-font-size { + --wp--preset--font-size--large: 1.6875em; +} + .has-regular-font-size, .has-large-font-size, .comments-title, @@ -2360,6 +2364,10 @@ h5 { font-size: 0.88889em; } +.has-small-font-size { + --wp--preset--font-size--small: 0.71111em; +} + .entry-meta, .entry-footer, .discussion-meta-info, @@ -5772,6 +5780,10 @@ body.page .main-navigation { margin-right: 1rem; } +.entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { + --wp--preset--color--white: inherit; +} + .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-text-color p, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-text-color a, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { color: inherit; @@ -6295,18 +6307,22 @@ body.page .main-navigation { } .entry .entry-content .has-small-font-size { + --wp--preset--font-size--small: 0.88889em; font-size: 0.88889em; } .entry .entry-content .has-normal-font-size { + --wp--preset--font-size--normal: 1.125em; font-size: 1.125em; } .entry .entry-content .has-large-font-size { + --wp--preset--font-size--large: 1.6875em; font-size: 1.6875em; } .entry .entry-content .has-huge-font-size { + --wp--preset--font-size--huge: 2.25em; font-size: 2.25em; } @@ -6389,6 +6405,7 @@ body.page .main-navigation { .entry .entry-content .has-white-background-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color.has-white-background-color { + --wp--preset--color--white: #FFF; background-color: #FFF; } @@ -6422,6 +6439,7 @@ body.page .main-navigation { .entry .entry-content .has-white-color, .entry .entry-content .wp-block-pullquote blockquote.has-white-color, .entry .entry-content .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { + --wp--preset--color--white: #FFF; color: #FFF; } diff --git a/src/wp-content/themes/twentynineteen/style.scss b/src/wp-content/themes/twentynineteen/style.scss index 668f4c6a74873..4df60bf38e9f7 100644 --- a/src/wp-content/themes/twentynineteen/style.scss +++ b/src/wp-content/themes/twentynineteen/style.scss @@ -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 Requires at least: 4.9.6 Requires PHP: 5.2.4 Version: 2.1