Make WordPress Core

Changeset 18385


Ignore:
Timestamp:
06/30/2011 09:57:50 PM (14 years ago)
Author:
ryan
Message:

twentyeleven code tidy up. Props dd32, lancewillett. fixes #17748

Location:
trunk/wp-content/themes/twentyeleven
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/colors/dark.css

    r18360 r18385  
    323323/* Featured Slider */
    324324.featured-posts {
    325     border-color: #222; 
     325    border-color: #222;
    326326}
    327327.featured-posts section.featured-post {
     
    595595    .commentlist > li.comment {
    596596    }
    597    
     597
    598598    /* Post author highlighting */
    599599    .commentlist > li.bypostauthor {
  • trunk/wp-content/themes/twentyeleven/content-page.php

    r18312 r18385  
    1717        <?php the_content(); ?>
    1818        <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
     19    </div><!-- .entry-content -->
     20    <footer class="entry-meta">
    1921        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    20     </div><!-- .entry-content -->
     22    </footer><!-- .entry-meta -->
    2123</article><!-- #post-<?php the_ID(); ?> -->
  • trunk/wp-content/themes/twentyeleven/content-single.php

    r18312 r18385  
    2828        <?php
    2929            /* translators: used between list items, there is a space after the comma */
     30            $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
     31
     32            /* translators: used between list items, there is a space after the comma */
    3033            $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    3134            if ( '' != $tag_list ) {
    3235                $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
     36            } elseif ( '' != $categories_list ) {
     37                $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    3338            } else {
    34                 $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
     39                $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    3540            }
     41
    3642            printf(
    3743                $utility_text,
    38                 /* translators: used between list items, there is a space after the comma */
    39                 get_the_category_list( __( ', ', 'twentyeleven' ) ),
     44                $categories_list,
    4045                $tag_list,
    4146                esc_url( get_permalink() ),
  • trunk/wp-content/themes/twentyeleven/editor-style-rtl.css

    r18121 r18385  
    55Used to style the TinyMCE editor.
    66*/
    7 html .mceContentBody{
    8     direction:rtl;
    9     unicode-bidi:embed;
    10     float:right;
     7html .mceContentBody {
     8    direction: rtl;
     9    unicode-bidi: embed;
     10    float: right;
    1111    max-width: 584px;
    1212}
  • trunk/wp-content/themes/twentyeleven/functions.php

    r18360 r18385  
    501501    ?>
    502502    <li class="post pingback">
    503         <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyeleven' ), ' ' ); ?></p>
     503        <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
    504504    <?php
    505505            break;
     
    529529                    ?>
    530530
    531                     <?php edit_comment_link( __( '[Edit]', 'twentyeleven' ), ' ' ); ?>
     531                    <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    532532                </div><!-- .comment-author .vcard -->
    533533
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r18342 r18385  
    166166    );
    167167
    168     if ( is_rtl() ) 
     168    if ( is_rtl() )
    169169        $default_theme_options['theme_layout'] = 'sidebar-content';
    170170
  • trunk/wp-content/themes/twentyeleven/rtl.css

    r18384 r18385  
    8686}
    8787.ltr ul, ol {
    88     margin: 0 0 1.625em  2.5em; 
     88    margin: 0 0 1.625em  2.5em;
    8989}
    9090blockquote {
  • trunk/wp-content/themes/twentyeleven/style.css

    r18383 r18385  
    266266.one-column.singular .entry-meta .edit-link a {
    267267    position: absolute;
    268     left: 0px;
     268    left: 0;
    269269    top: 40px;
    270270}
    271271.one-column.singular #author-info {
    272     margin: 2.2em -8.8% 0px;
     272    margin: 2.2em -8.8% 0;
    273273    padding: 20px 8.8%;
    274274}
     
    823823    margin-right: 6px;
    824824}
    825 .entry-meta .edit-link a {
     825.entry-meta .edit-link a,
     826.commentlist .edit-link a {
    826827    background: #eee;
    827828    -moz-border-radius: 3px;
     
    830831    float: right;
    831832    font-size: 12px;
     833    line-height: 1.5em;
    832834    font-weight: 300;
    833835    text-decoration: none;
    834     padding: 0px 8px;
    835 }
    836 .entry-meta .edit-link a:hover {
     836    padding: 0 8px;
     837}
     838.entry-meta .edit-link a:hover,
     839.commentlist .edit-link a:hover {
    837840    background: #888;
    838841    color: #fff;
     
    891894.wp-caption .wp-caption-text {
    892895    margin-bottom: 0.6em;
    893     padding: 10px 0px 5px 40px;
     896    padding: 10px 0 5px 40px;
    894897    position: relative;
    895898}
     
    909912}
    910913#content .gallery a img {
    911     border: none;
     914    border: none;
    912915}
    913916img#wpstats {
    914     display: block;
    915     margin: 0 auto 1.625em;
     917    display: block;
     918    margin: 0 auto 1.625em;
    916919}
    917920#content .gallery-columns-4 .gallery-item {
    918     width:23%;
    919     padding-right:2%;
     921    width: 23%;
     922    padding-right: 2%;
    920923}
    921924#content .gallery-columns-4 .gallery-item img {
    922     width:100%;
    923     height:auto;
     925    width: 100%;
     926    height: auto;
    924927}
    925928
     
    927930img[class*="align"],
    928931img[class*="wp-image-"],
    929 #content .gallery .gallery-icon img { /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
     932#content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
    930933    border: 1px solid #ddd;
    931934    padding: 6px;
     
    942945#content .gallery .gallery-icon a:focus img,
    943946#content .gallery .gallery-icon a:hover img,
    944 #content .gallery .gallery-icon a:active img { /* Add some useful style to those fancy borders for linked images ... */
     947#content .gallery .gallery-icon a:active img {/* Add some useful style to those fancy borders for linked images ... */
    945948    background: #eee;
    946949    border-color: #bbb;
     
    948951.wp-caption a:focus img,
    949952.wp-caption a:active img,
    950 .wp-caption a:hover img { /* ... including captioned images! */
     953.wp-caption a:hover img {/* ... including captioned images! */
    951954    background: #fff;
    952955    border-color: #ddd;
     
    10301033}
    10311034.entry-header .comments-link .leave-reply {
    1032      visibility: hidden;
     1035    visibility: hidden;
    10331036}
    10341037
    10351038/*
    1036     Post Formats Headings
    1037     To hide the headings, display: none the ".entry-header .entry-format" selector,
    1038     and remove the padding rules below.
     1039Post Formats Headings
     1040To hide the headings, display: none the ".entry-header .entry-format" selector,
     1041and remove the padding rules below.
    10391042*/
    10401043.entry-header .entry-format {
     
    12241227}
    12251228.indexed.format-image footer.entry-meta {
    1226     background: #e0e6e8;
     1229    background: #ddd;
    12271230    margin-top: -7px;
    12281231    padding: 20px 30px;
     
    12451248.indexed.format-image footer.entry-meta a {
    12461249    color: #444;
     1250}
     1251.indexed.format-image footer.entry-meta a:hover {
     1252    color: #fff;
    12471253}
    12481254#content .indexed.format-image img {
     
    13291335    color: #111;
    13301336    font-size: 16px;
    1331     padding: 1.625em 0px 0.625em;
     1337    padding: 1.625em 0 0.625em;
    13321338}
    13331339article.intro .edit-link a {
     
    13371343    color: #fff;
    13381344    font-size: 12px;
    1339     padding: 0px 8px;
     1345    padding: 0 8px;
    13401346    position: absolute;
    13411347    top: 30px;
     
    15121518    background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */
    15131519    width: 100%;
    1514     height: 45px;
    1515     position: absolute;
     1520    height: 45px;
     1521    position: absolute;
    15161522    top: 230px;
    15171523}
     
    19671973    display: inline-block;
    19681974    font-size: 12px;
    1969     padding: 0px 8px;
     1975    padding: 0 8px;
    19701976    text-decoration: none;
    19711977}
     
    21052111    cursor: pointer;
    21062112    font-size: 15px;
    2107     left: 30px;
    21082113    margin: 20px 0;
    21092114    padding: 5px 42px 5px 22px;
    21102115    position: relative;
     2116    left: 30px;
    21112117    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    21122118}
     
    23092315    }
    23102316    .singular .entry-meta .edit-link a {
    2311         left: 0px;
     2317        left: 0;
    23122318        position: absolute;
    23132319        top: 40px;
    23142320    }
    23152321    .singular #author-info {
    2316         margin: 2.2em -8.8% 0px;
     2322        margin: 2.2em -8.8% 0;
    23172323        padding: 20px 8.8%;
    23182324    }
     
    23472353        max-width: 100%;
    23482354    }
     2355
    23492356}
    23502357@media (max-width: 650px) {
     
    24112418    }
    24122419    .singular.page .hentry {
    2413         padding: 1.625em 0 0;
     2420        padding: 1.625em 0 0;
    24142421    }
    24152422    /* Talking avatars take up too much room at this size */
     
    24332440    /* Use the available space in the smaller comment form */
    24342441    #respond input[type="text"] {
    2435         width: 95%;
     2442        width: 95%;
    24362443    }
    24372444    #respond .comment-form-author .required,
    24382445    #respond .comment-form-email .required {
    2439         left: 95%;
     2446        left: 95%;
    24402447    }
    24412448    #content .gallery-columns-3 .gallery-item {
    2442         width:31%;
    2443         padding-right:2%;
     2449        width: 31%;
     2450        padding-right: 2%;
    24442451    }
    24452452    #content .gallery-columns-3 .gallery-item img {
    2446         width:100%;
    2447         height:auto;
    2448     }
     2453        width: 100%;
     2454        height: auto;
     2455    }
     2456
    24492457}
    24502458@media (max-width: 450px) {
    24512459    #content .gallery-columns-2 .gallery-item {
    2452         width:45%;
    2453         padding-right:4%;
     2460        width: 45%;
     2461        padding-right: 4%;
    24542462    }
    24552463    #content .gallery-columns-2 .gallery-item img {
    2456         width:100%;
    2457         height:auto;
    2458     }
     2464        width: 100%;
     2465        height: auto;
     2466    }
     2467
    24592468}
    24602469@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
     
    24682477        border-top: none;
    24692478    }
     2479
    24702480}
    24712481
     
    24812491    footer.entry-meta a[rel=bookmark]:link:after,
    24822492    footer.entry-meta a[rel=bookmark]:visited:after {
    2483         content:" [" attr(href) "] "; /* Show URLs */
     2493        content: " [" attr(href) "] "; /* Show URLs */
    24842494    }
    24852495    #page {
     
    24952505    }
    24962506    #branding hgroup {
    2497         margin: 0;
     2507        margin: 0;
    24982508    }
    24992509    #site-title a {
     
    25172527    }
    25182528    #primary {
    2519         float: left;
    2520         margin: 0;
    2521         width: 100%;
     2529        float: left;
     2530        margin: 0;
     2531        width: 100%;
    25222532    }
    25232533    #content {
    2524         margin: 0;
    2525         width: auto;
     2534        margin: 0;
     2535        width: auto;
    25262536    }
    25272537    .singular #content {
    2528         margin: 0;
     2538        margin: 0;
    25292539        width: 100%;
    25302540    }
    25312541    .singular .entry-header .entry-meta {
    2532         position: static;
     2542        position: static;
    25332543    }
    25342544    .entry-meta .edit-link a {
     
    25432553    .singular #comments-title {
    25442554        margin: 0;
    2545         width: 100%;
     2555        width: 100%;
    25462556    }
    25472557    .singular .hentry {
     
    25622572    }
    25632573    .singular #author-info {
    2564         background: none;
    2565         border-bottom: none;
    2566         border-top: none;
    2567         margin: 2.2em 0 0;
    2568         padding: 0;
     2574        background: none;
     2575        border-bottom: none;
     2576        border-top: none;
     2577        margin: 2.2em 0 0;
     2578        padding: 0;
    25692579    }
    25702580    #respond {
     
    25802590    /* Comments */
    25812591    .commentlist > li.comment {
    2582         background: none;
    2583         border: 1px solid #ddd;
    2584         -moz-border-radius: 3px 3px 3px 3px;
    2585         border-radius: 3px 3px 3px 3px;
    2586         margin: 0 auto 1.625em;
    2587         padding: 1.625em;
    2588         position: relative;
    2589         width: auto;
     2592        background: none;
     2593        border: 1px solid #ddd;
     2594        -moz-border-radius: 3px 3px 3px 3px;
     2595        border-radius: 3px 3px 3px 3px;
     2596        margin: 0 auto 1.625em;
     2597        padding: 1.625em;
     2598        position: relative;
     2599        width: auto;
    25902600    }
    25912601    .commentlist .avatar {
    25922602        height: 39px;
    2593         left: 2.2em;
    2594         top: 2.2em;
     2603        left: 2.2em;
     2604        top: 2.2em;
    25952605        width: 39px;
    25962606    }
    25972607    .commentlist li.comment .comment-meta {
    2598         line-height: 1.625em;
    2599         margin-left: 50px;
     2608        line-height: 1.625em;
     2609        margin-left: 50px;
    26002610    }
    26012611    .commentlist li.comment .fn {
    2602         display: block;
     2612        display: block;
    26032613    }
    26042614    .commentlist li.comment .comment-content {
    2605         margin: 1.625em 0 0;
     2615        margin: 1.625em 0 0;
    26062616    }
    26072617    .commentlist .comment-edit-link {
     
    26362646        color: #666;
    26372647    }
     2648
    26382649}
    26392650
Note: See TracChangeset for help on using the changeset viewer.