Make WordPress Core

Changeset 48047


Ignore:
Timestamp:
06/15/2020 03:11:01 PM (6 years ago)
Author:
ianbelanger
Message:

Bundled Themes: Twenty Nineteen dropcap appears higher than expected in Firefox.

Fixes the issue by adding moz specific top margin for the dropcap.

Props kjellr, joseph.dickson, maxpertici, samful.
Fixes #45876.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r47339 r48047  
    340340                        font-weight: bold;
    341341                        margin: 0 0.25em 0 0;
     342
     343                        @-moz-document url-prefix()  {
     344                                & {
     345                                        margin-top: 0.2em;
     346                                }
     347                        }
    342348                }
    343349        }
  • trunk/src/wp-content/themes/twentynineteen/style-editor.css

    r47591 r48047  
    837837}
    838838
     839@-moz-document url-prefix() {
     840  .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
     841    margin-top: 0.2em;
     842  }
     843}
     844
    839845/** === Table === */
    840846.wp-block-table {
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r47587 r48047  
    237237                font-weight: bold;
    238238                margin: 0 0.25em 0 0;
     239
     240                @-moz-document url-prefix()  {
     241                        & {
     242                                margin-top: 0.2em;
     243                        }
     244                }
    239245        }
    240246}
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r48032 r48047  
    56525652}
    56535653
     5654@-moz-document url-prefix() {
     5655  .entry .entry-content .has-drop-cap:not(:focus)::first-letter {
     5656    margin-top: 0.2em;
     5657  }
     5658}
     5659
    56545660.entry .entry-content .wp-block-pullquote {
    56555661  border-color: transparent;
Note: See TracChangeset for help on using the changeset viewer.