Make WordPress Core

Changeset 39340


Ignore:
Timestamp:
11/22/2016 08:46:04 PM (8 years ago)
Author:
joemcgill
Message:

Twenty Seventeen: CSS coding standards fixes.

This makes a few adjustments to CSS to bring them inline with WordPress
CSS coding standards including:

  • Font weights should be defined using numeric values
  • Do not pad parentheses with spaces

This also fixes a couple of typos to inline comments.

Props netweb for initial patch.
Fixes #38901.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/ie8.css

    r39124 r39340  
    9393.site-title {
    9494    font-size: 36px;
    95     font-weight: bolder;
     95    font-weight: 700;
    9696}
    9797
     
    189189.entry-meta + .entry-title {
    190190    font-size: 26px;
    191     font-weight: normal;
     191    font-weight: 400;
    192192    letter-spacing: normal;
    193193    padding-top: 0;
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r39339 r39340  
    122122b,
    123123strong {
    124     font-weight: bolder;
     124    font-weight: 700;
    125125}
    126126
     
    16811681}
    16821682
    1683 .wp-custom-header .wp-custom-header-video-button { /* Speficity prevents .color-dark button overrides */
    1684     background-color: rgba( 34, 34, 34, 0.5 );
    1685     border: 1px solid rgba( 255, 255, 255, 0.6 );
    1686     color: rgba( 255, 255, 255, 0.6 );
     1683.wp-custom-header .wp-custom-header-video-button { /* Specificity prevents .color-dark button overrides */
     1684    background-color: rgba(34, 34, 34, 0.5);
     1685    border: 1px solid rgba(255, 255, 255, 0.6);
     1686    color: rgba(255, 255, 255, 0.6);
    16871687    height: 45px;
    16881688    overflow: hidden;
     
    16971697
    16981698.wp-custom-header .wp-custom-header-video-button:hover,
    1699 .wp-custom-header .wp-custom-header-video-button:focus { /* SSpeficity prevents .color-dark button overrides */
    1700     border-color: rgba( 255, 255, 255, 0.8 );
    1701     background-color: rgba( 34, 34, 34, 0.8 );
     1699.wp-custom-header .wp-custom-header-video-button:focus { /* Specificity prevents .color-dark button overrides */
     1700    border-color: rgba(255, 255, 255, 0.8);
     1701    background-color: rgba(34, 34, 34, 0.8);
    17021702    color: #fff;
    17031703}
     
    30363036    font-size: 20px;
    30373037    font-size: 1.25rem;
    3038     font-weight: normal;
     3038    font-weight: 400;
    30393039    line-height: 1;
    30403040    -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
     
    30833083/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
    30843084@media screen and (min-width: 20em) {
     3085
    30853086    body.customize-partial-edit-shortcuts-shown .site-header .site-title {
    30863087        padding-left: 0;
Note: See TracChangeset for help on using the changeset viewer.