Make WordPress Core

Ticket #62678: 62678.changing-selectors.patch

File 62678.changing-selectors.patch, 2.8 KB (added by sabernhardt, 11 months ago)

assigning fonts, sizes and letter spacing to different selectors

  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    66.editor-styles-wrapper {
    77        background: #f5efe0;
    88        color: #000;
     9        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
     10        font-size: 18px;
    911        letter-spacing: -0.015em;
    1012        -moz-font-smoothing: antialiased;
    1113        -webkit-font-smoothing: antialiased;
    1214}
    1315
    14 .editor-styles-wrapper > * {
    15         font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    16         font-size: 18px;
    17 }
    18 
    1916@supports ( font-variation-settings: normal ) {
    2017
    21         .editor-styles-wrapper > * {
     18        .editor-styles-wrapper {
    2219                font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    2320        }
    2421
     
    8885
    8986/* Font Families ------------------------------ */
    9087
    91 .editor-styles-wrapper p,
    92 .editor-styles-wrapper ol,
    93 .editor-styles-wrapper ul,
    94 .editor-styles-wrapper dl,
    95 .editor-styles-wrapper dt {
     88.wp-block-post-content,
     89.edit-post-visual-editor,
     90.block-editor-block-list__layout > p {
    9691        font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif;
    9792        letter-spacing: normal;
    9893}
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    66.editor-styles-wrapper {
    77        background: #f5efe0;
    88        color: #000;
     9        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
     10        font-size: 18px;
    911        letter-spacing: -0.015em;
    1012        -moz-font-smoothing: antialiased;
    1113        -webkit-font-smoothing: antialiased;
    1214}
    1315
    14 .editor-styles-wrapper > * {
    15         font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    16         font-size: 18px;
    17 }
    18 
    1916@supports ( font-variation-settings: normal ) {
    2017
    21         .editor-styles-wrapper > * {
     18        .editor-styles-wrapper {
    2219                font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    2320        }
    2421
     
    8885
    8986/* Font Families ------------------------------ */
    9087
    91 .editor-styles-wrapper p,
    92 .editor-styles-wrapper ol,
    93 .editor-styles-wrapper ul,
    94 .editor-styles-wrapper dl,
    95 .editor-styles-wrapper dt {
     88.wp-block-post-content,
     89.edit-post-visual-editor,
     90.block-editor-block-list__layout > p {
    9691        font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif;
    9792        letter-spacing: normal;
    9893}