From 0c1769e5ba2dea46bda5bf6476fa17db73a469be Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 19 Dec 2018 03:25:48 +0000 Subject: [PATCH] Twenty Seventeen: Bug Fixes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unnecessary `ol` styles from editor. Twenty Seventeen was designed with bolded numbers for its ordered list styles. This was removed from the theme prior to launch, but it was left in the editor styles, so it needed to be removed there, too. - To improve accessibility, the cookies content checkbox in the comment form needed some visible indication when it’s in focus. - Twenty Seventeen’s editor styles contained an Internet Explorer 8 specific fix that stopped images from being scalable in the editor in other browsers. Since the editor no longer supports IE8, this fix can safely be removed. - Fix the `font-family` used for Simplified Chinese (zh_CN) in the block editor CSS. Props mmaumio, edpittol, pratikthink, afercia, audrasjb, mihaivalentin, subrataemfluence, vaishalipanchal, ze3kr, laurelfulford. Merges [44203-44205] and [44235] into trunk. Fixes #44775, #44699, #39738, #45408. Built from https://develop.svn.wordpress.org/trunk@44307 git-svn-id: http://core.svn.wordpress.org/trunk@44137 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../assets/css/editor-blocks.css | 7 +++++-- .../assets/css/editor-style.css | 18 ------------------ wp-content/themes/twentyseventeen/style.css | 5 +++++ wp-includes/version.php | 2 +- 4 files changed, 11 insertions(+), 21 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css index 32cabe1b15..e2c360cc70 100644 --- a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css @@ -155,11 +155,14 @@ html[lang="ur"] .edit-post-visual-editor h6 { /* Typography for Chinese Font */ -html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block, -html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block { +html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block { font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif; } +html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block { + font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-Light, Arial, sans-serif; +} + html[lang^="zh-"] .edit-post-visual-editor h1, html[lang^="zh-"] .edit-post-visual-editor h2, html[lang^="zh-"] .edit-post-visual-editor h3, diff --git a/wp-content/themes/twentyseventeen/assets/css/editor-style.css b/wp-content/themes/twentyseventeen/assets/css/editor-style.css index dd929f867b..82dc7067d6 100644 --- a/wp-content/themes/twentyseventeen/assets/css/editor-style.css +++ b/wp-content/themes/twentyseventeen/assets/css/editor-style.css @@ -232,23 +232,10 @@ ul { list-style: disc; } -ol { - counter-reset: item; -} - ol > li { - display: block; position: relative; } -ol > li:before { - content: counter(item); - counter-increment: item; - font-weight: 800; - left: -1.5em; - position: absolute; -} - li > ul, li > ol { margin-bottom: 0; @@ -333,7 +320,6 @@ a img { img { height: auto; /* Make sure images are scaled correctly. */ - width: inherit; /* Make images fill their parent's space. Solves IE8. */ max-width: 100%; /* Adhere to container width. */ } @@ -580,10 +566,6 @@ object { text-align: right; } -.rtl ol { - counter-reset: item; -} - .rtl ol > li:before { left: auto; right: -1.5em; diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index a34976628b..df9f5b8d23 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -982,6 +982,11 @@ select { max-width: 100%; } +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: thin dotted #333; +} + input[type="radio"], input[type="checkbox"] { margin-right: 0.5em; diff --git a/wp-includes/version.php b/wp-includes/version.php index db2295a95c..965420878e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44306'; +$wp_version = '5.1-alpha-44307'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.