WordPress.org

Make WordPress Core

Changeset 44307


Ignore:
Timestamp:
12/18/2018 10:56:53 PM (12 months ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

    r44152 r44307  
    156156/* Typography for Chinese Font */
    157157
    158 html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block,
     158html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block {
     159    font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
     160}
     161
    159162html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block {
    160     font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
     163    font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-Light, Arial, sans-serif;
    161164}
    162165
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-style.css

    r43493 r44307  
    233233}
    234234
    235 ol {
    236     counter-reset: item;
    237 }
    238 
    239235ol > li {
    240     display: block;
    241236    position: relative;
    242 }
    243 
    244 ol > li:before {
    245     content: counter(item);
    246     counter-increment: item;
    247     font-weight: 800;
    248     left: -1.5em;
    249     position: absolute;
    250237}
    251238
     
    334321img {
    335322    height: auto; /* Make sure images are scaled correctly. */
    336     width: inherit;  /* Make images fill their parent's space. Solves IE8. */
    337323    max-width: 100%; /* Adhere to container width. */
    338324}
     
    581567}
    582568
    583 .rtl ol {
    584     counter-reset: item;
    585 }
    586 
    587569.rtl ol > li:before {
    588570    left: auto;
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r44279 r44307  
    981981    height: 3em;
    982982    max-width: 100%;
     983}
     984
     985input[type="radio"]:focus,
     986input[type="checkbox"]:focus {
     987    outline: thin dotted #333;
    983988}
    984989
Note: See TracChangeset for help on using the changeset viewer.