Make WordPress Core

Ticket #56360: 56360.any.diff

File 56360.any.diff, 1.5 KB (added by sabernhardt, 13 months ago)

applies default box-sizing to any elements in the editor, to reflect the front end

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

     
    55
    66.editor-styles-wrapper {
    77        background: #f5efe0;
     8        box-sizing: border-box;
    89        color: #000;
    910        letter-spacing: -0.015em;
    1011        -moz-font-smoothing: antialiased;
     
    1112        -webkit-font-smoothing: antialiased;
    1213}
    1314
     15:where(.editor-styles-wrapper) * {
     16        box-sizing: inherit;
     17}
     18
    1419.editor-styles-wrapper > * {
    1520        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    1621        font-size: 18px;
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    55
    66.editor-styles-wrapper {
    77        background: #f5efe0;
     8        box-sizing: border-box;
    89        color: #000;
    910        letter-spacing: -0.015em;
    1011        -moz-font-smoothing: antialiased;
     
    1112        -webkit-font-smoothing: antialiased;
    1213}
    1314
     15:where(.editor-styles-wrapper) * {
     16        box-sizing: inherit;
     17}
     18
    1419.editor-styles-wrapper > * {
    1520        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    1621        font-size: 18px;