Make WordPress Core

Changeset 23557


Ignore:
Timestamp:
03/01/2013 04:40:29 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: CSS fixes to change single to double quotes, proper quoting around font-family names, and add a missing escape to a background image in custom-header.php. Props markmcwilliams, fixes #23653.

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r23492 r23557  
    8686    ?>
    8787        .site-header {
    88             background: url("<?php header_image(); ?>") no-repeat scroll top;
     88            background: url(<?php esc_url( header_image() ); ?>) no-repeat scroll top;
    8989            background-size: 1600px auto;
    9090        }
     
    138138        <?php
    139139        if ( ! empty( $header_image ) ) {
    140             echo 'background: url("' . esc_url( $header_image ) . '") no-repeat scroll top; background-size: 1600px auto;';
     140            echo 'background: url(' . esc_url( $header_image ) . ') no-repeat scroll top; background-size: 1600px auto;';
    141141        } ?>
    142142        padding: 0 20px;
     
    163163    <?php endif; ?>
    164164    #headimg h1 {
    165         font: bold 60px/1 'Bitter', Georgia, serif;
     165        font: bold 60px/1 Bitter, Georgia, serif;
    166166        margin: 0;
    167167        padding: 58px 0 10px;
     
    174174    }
    175175    #headimg h2 {
    176         font: 200 italic 24px 'Source Sans Pro', Helvetica, sans-serif;
     176        font: 200 italic 24px "Source Sans Pro", Helvetica, sans-serif;
    177177        margin: 0;
    178178        text-shadow: none;
     
    194194function twentythirteen_admin_header_image() {
    195195    ?>
    196     <div id="headimg" style="background: url('<?php esc_url( header_image() ); ?>') no-repeat scroll top; background-size: 1600px auto;">
     196    <div id="headimg" style="background: url(<?php esc_url( header_image() ); ?>) no-repeat scroll top; background-size: 1600px auto;">
    197197        <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
    198198        <div class="hgroup">
  • trunk/wp-content/themes/twentythirteen/style.css

    r23549 r23557  
    150150h6 {
    151151    clear: both;
    152     font-family: 'Bitter', Georgia, serif;
     152    font-family: Bitter, Georgia, serif;
    153153    line-height: 1.3;
    154154}
     
    216216samp {
    217217    font-family: monospace, serif;
    218     _font-family: 'courier new', monospace;
     218    _font-family: "Courier New", monospace;
    219219    font-size: 14px;
    220220    -webkit-hyphens: none;
     
    250250q:before,
    251251q:after {
    252     content: '';
     252    content: "";
    253253    content: none;
    254254}
     
    459459
    460460hr {
    461     background: url("images/dotted-line.png") repeat center top;
     461    background: url(images/dotted-line.png) repeat center top;
    462462    background-size: 4px 4px;
    463463    border: 0;
     
    480480 */
    481481@font-face {
    482     font-family: 'Genericons';
    483     src: url('fonts/genericons-regular-webfont.eot');
    484     src: url('fonts/genericons-regular-webfont.eot?#iefix') format('embedded-opentype'),
    485          url('fonts/genericons-regular-webfont.woff') format('woff'),
    486          url('fonts/genericons-regular-webfont.ttf') format('truetype'),
    487          url('fonts/genericons-regular-webfont.svg#genericonsregular') format('svg');
     482    font-family: Genericons;
     483    src: url(fonts/genericons-regular-webfont.eot);
     484    src: url(fonts/genericons-regular-webfont.eot?#iefix) format("embedded-opentype"),
     485         url(fonts/genericons-regular-webfont.woff) format("woff"),
     486         url(fonts/genericons-regular-webfont.ttf) format("truetype"),
     487         url(fonts/genericons-regular-webfont.svg#genericonsregular) format("svg");
    488488    font-weight: normal;
    489489    font-style: normal;
     
    509509.error404 .page-title:before {
    510510    -webkit-font-smoothing: antialiased;
    511     font: normal 16px/1 'Genericons';
     511    font: normal 16px/1 Genericons;
    512512    vertical-align: text-bottom;
    513513}
     
    945945.site-header .searchform .field {
    946946    background-color: transparent;
    947     background-image: url("images/search-icon.png");
     947    background-image: url(images/search-icon.png);
    948948    background-position: 5px center;
    949949    background-repeat: no-repeat;
     
    11091109
    11101110.featured-post:before {
    1111     content: '\f308';
     1111    content: "\f308";
    11121112    margin-right: 2px;
    11131113}
    11141114
    11151115.entry-meta .date a:before {
    1116     content: '\f303';
     1116    content: "\f303";
    11171117}
    11181118
    11191119.comments-link a:before {
    1120     content: '\f300';
     1120    content: "\f300";
    11211121    margin-right: 2px;
    11221122    top: -1px;
     
    11251125
    11261126.entry-meta .author a:before {
    1127     content: '\f304';
     1127    content: "\f304";
    11281128    top: -1px;
    11291129    position: relative;
     
    11311131
    11321132.categories-links a:first-child:before {
    1133     content: '\f301';
     1133    content: "\f301";
    11341134}
    11351135
    11361136.tags-links a:first-child:before {
    1137     content: '\f302';
     1137    content: "\f302";
    11381138    top: -1px;
    11391139    position: relative;
     
    11411141
    11421142.edit-link a:before {
    1143     content: '\f411';
     1143    content: "\f411";
    11441144    top: -1px;
    11451145    position: relative;
     
    13671367
    13681368.format-aside .entry-content .date a:before {
    1369     content: '\f303';
     1369    content: "\f303";
    13701370}
    13711371
     
    13851385
    13861386.format-aside cite:before {
    1387     content: '\2014';
     1387    content: "\2014";
    13881388    margin-right: 5px;
    13891389}
     
    14091409.format-audio .entry-content:before {
    14101410    float: left;
    1411     content: '\f109';
     1411    content: "\f109";
    14121412    font-size: 64px;
    14131413}
     
    14331433
    14341434.format-audio .audio-content {
    1435     background: url("images/dotted-line.png") repeat-y left top;
     1435    background: url(images/dotted-line.png) repeat-y left top;
    14361436    background-size: 4px 4px;
    14371437    float: right;
     
    14641464
    14651465.format-chat .entry-meta .date a:before {
    1466     content: '\f108';
     1466    content: "\f108";
    14671467    margin-right: 2px;
    14681468}
     
    16881688.format-status .entry-content:before,
    16891689.format-status .entry-meta:before {
    1690     background: url("images/dotted-line.png") repeat-y left bottom;
     1690    background: url(images/dotted-line.png) repeat-y left bottom;
    16911691    background-size: 4px 4px;
    1692     content: '';
     1692    content: "";
    16931693    display: block;
    16941694    height: 100%;
     
    17261726.format-status .entry-content p:first-child:before {
    17271727    background-color: rgba(0, 0, 0, 0.65);
    1728     content: '';
     1728    content: "";
    17291729    height: 3px;
    17301730    margin-top: 13px;
     
    17481748
    17491749.format-status .entry-meta .date a:before {
    1750     content: '\f105';
     1750    content: "\f105";
    17511751}
    17521752
     
    18021802
    18031803.attachment .entry-title:before {
    1804     content: '\f416';
     1804    content: "\f416";
    18051805    font-size: 32px;
    18061806    margin-right: 10px;
     
    18261826
    18271827.attachment-meta:before {
    1828     content: '\f307';
     1828    content: "\f307";
    18291829}
    18301830
    18311831.full-size-link a:before {
    1832     content: '\f402';
     1832    content: "\f402";
    18331833}
    18341834
     
    21392139
    21402140.error404 .page-title:before {
    2141     content: '\f423';
     2141    content: "\f423";
    21422142    color: #e8e5ce;
    21432143    font-size: 964px;
     
    22052205.comment-list > li:after,
    22062206.comment-list .children > li:before {
    2207     background: url("images/dotted-line.png") repeat left top;
     2207    background: url(images/dotted-line.png) repeat left top;
    22082208    background-size: 4px 4px;
    2209     content: '';
     2209    content: "";
    22102210    display: block;
    22112211    height: 1px;
     
    22522252
    22532253.bypostauthor .fn:before {
    2254     content: '\f408';
     2254    content: "\f408";
    22552255}
    22562256
     
    22902290
    22912291.comment-awaiting-moderation:before {
    2292     content: '\f414';
     2292    content: "\f414";
    22932293    margin-right: 5px;
    22942294    position: relative;
     
    22972297
    22982298.comment-reply-link:before {
    2299     content: '\f412';
     2299    content: "\f412";
    23002300    margin-right: 3px;
    23012301}
     
    23312331
    23322332#reply-title small a:before {
    2333     content: '\f406';
     2333    content: "\f406";
    23342334    vertical-align: top;
    23352335}
     
    26452645
    26462646    .site-header .searchform .field {
    2647         background-image: url("images/search-icon-2x.png");
     2647        background-image: url(images/search-icon-2x.png);
    26482648    }
    26492649
     
    26532653    .comment-list > li:after,
    26542654    .comment-list .children > li:before {
    2655         background-image: url("images/dotted-line-2x.png");
     2655        background-image: url(images/dotted-line-2x.png);
    26562656    }
    26572657}
     
    28972897
    28982898    .menu-toggle:after {
    2899         content: '\f502';
     2899        content: "\f502";
    29002900        font-size: 12px;
    29012901        padding-left: 8px;
     
    29052905
    29062906    .toggled-on .menu-toggle:after {
    2907         content: '\f500';
     2907        content: "\f500";
    29082908        vertical-align: -webkit-calc(2px);
    29092909        vertical-align:         calc(2px);
     
    29882988
    29892989    .error404 .page-title:before {
    2990         content: '';
     2990        content: "";
    29912991    }
    29922992
Note: See TracChangeset for help on using the changeset viewer.