Make WordPress Core

Changeset 58725


Ignore:
Timestamp:
07/15/2024 06:10:03 PM (3 months ago)
Author:
karmatosed
Message:

Twenty Sixteen: Fixes button block letter spacing control.

The button block had issues with font styling not applying. This not only brings letter-spacing but also line-height, text-transform and font-weight to wp-button-block-buttons. [57300] fixed the separator issue. This fix also added box-shadow none for consistency.

Props darshitrajyaguru97, harshgajipara, shailu25, sabernhardt, alvitazwar052.
Fixes #58609.

Location:
trunk/src/wp-content/themes/twentysixteen/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/css/blocks.css

    r58689 r58725  
    251251/* Buttons */
    252252
     253.wp-block-buttons {
     254    font-weight: 700;
     255    letter-spacing: 0.046875em;
     256    line-height: 1;
     257    text-transform: uppercase;
     258}
     259
    253260.wp-block-button .wp-block-button__link {
    254261    box-shadow: none;
    255262    font-family: Montserrat, "Helvetica Neue", sans-serif;
    256     font-weight: 700;
    257     letter-spacing: 0.046875em;
    258     line-height: 1;
    259263    padding: 0.84375em 1.3125em 0.78125em;
    260     text-transform: uppercase;
    261 }
    262 
    263 .wp-block-buttons[style*="text-transform"] .wp-block-button__link,
    264 .wp-block-button[style*="text-transform"] .wp-block-button__link {
    265     text-transform: inherit;
    266264}
    267265
  • trunk/src/wp-content/themes/twentysixteen/css/editor-blocks.css

    r58689 r58725  
    561561/* Buttons */
    562562
    563 .wp-block-button .wp-block-button__link {
    564     font-family: Montserrat, "Helvetica Neue", sans-serif;
     563.wp-block-buttons {
    565564    font-weight: 700;
    566565    letter-spacing: 0.046875em;
    567566    line-height: 1;
     567    text-transform: uppercase;
     568}
     569
     570.wp-block-button .wp-block-button__link {
     571    box-shadow: none;
     572    font-family: Montserrat, "Helvetica Neue", sans-serif;
    568573    padding: 0.84375em 1.3125em 0.78125em;
    569     text-transform: uppercase;
    570 }
    571 
    572 .wp-block-buttons[style*="text-transform"] .wp-block-button__link,
    573 .wp-block-button[style*="text-transform"] .wp-block-button__link {
    574     text-transform: inherit;
    575574}
    576575
Note: See TracChangeset for help on using the changeset viewer.