Twenty Seventeen: Bug Fixes.
- 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. git-svn-id: https://develop.svn.wordpress.org/trunk@44307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e3acb8848
commit
ce5655139f
@ -155,11 +155,14 @@ html[lang="ur"] .edit-post-visual-editor h6 {
|
|||||||
|
|
||||||
/* Typography for Chinese Font */
|
/* Typography for Chinese Font */
|
||||||
|
|
||||||
html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block,
|
html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block {
|
||||||
html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block {
|
|
||||||
font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
|
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 h1,
|
||||||
html[lang^="zh-"] .edit-post-visual-editor h2,
|
html[lang^="zh-"] .edit-post-visual-editor h2,
|
||||||
html[lang^="zh-"] .edit-post-visual-editor h3,
|
html[lang^="zh-"] .edit-post-visual-editor h3,
|
||||||
|
@ -232,23 +232,10 @@ ul {
|
|||||||
list-style: disc;
|
list-style: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol {
|
|
||||||
counter-reset: item;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol > li {
|
ol > li {
|
||||||
display: block;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol > li:before {
|
|
||||||
content: counter(item);
|
|
||||||
counter-increment: item;
|
|
||||||
font-weight: 800;
|
|
||||||
left: -1.5em;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
li > ul,
|
li > ul,
|
||||||
li > ol {
|
li > ol {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@ -333,7 +320,6 @@ a img {
|
|||||||
|
|
||||||
img {
|
img {
|
||||||
height: auto; /* Make sure images are scaled correctly. */
|
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. */
|
max-width: 100%; /* Adhere to container width. */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -580,10 +566,6 @@ object {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtl ol {
|
|
||||||
counter-reset: item;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rtl ol > li:before {
|
.rtl ol > li:before {
|
||||||
left: auto;
|
left: auto;
|
||||||
right: -1.5em;
|
right: -1.5em;
|
||||||
|
@ -982,6 +982,11 @@ select {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="radio"]:focus,
|
||||||
|
input[type="checkbox"]:focus {
|
||||||
|
outline: thin dotted #333;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="radio"],
|
input[type="radio"],
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
Loading…
Reference in New Issue
Block a user