Make WordPress Core

Changeset 18072


Ignore:
Timestamp:
05/30/2011 01:29:55 AM (15 years ago)
Author:
iandstewart
Message:

Twenty Eleven: bug fixes and enhancements ...

  • Improvements to the dark color scheme; Props matveb
  • Remove link colors from the dark color scheme and let the default link color cascade
  • Check for multiple authors before showing author information on single posts
  • Remove the span before the edit link on the image template
  • Add a comment icon; Props hugobaeta
  • Replace the default reply text with an icon to prevent i18n issues with the design; Props matveb
  • Don't output sidebar on the no sidebar layout
  • Use the search form styling from the header for all search forms
  • Style fixes for no search results page
  • Fixes for fancy blockquote styles
  • Style fixes for the showcase slider
  • Margin for galleries
  • Only showing the top post navigation on paged results
  • Remove floats from images for the smallest screen sizes
Location:
trunk/wp-content/themes/twentyeleven
Files:
1 added
6 edited

Legend:

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

    r18057 r18072  
    4242textarea:focus {
    4343}
     44input#s {
     45        background-color: #ddd;
     46}
    4447
    4548/* Links */
    4649a {
    47         color: #e4741f;
    4850}
    4951
    … …  
    5355
    5456#branding {
    55         border-top: 2px solid #444;
     57        border-top: 2px solid #0a0a0a;
    5658}
    5759#site-title a {
    … …  
    6163#site-title a:focus,
    6264#site-title a:active {
    63         color: #e4741f;
    6465}
    6566#site-description {
    … …  
    101102.entry-title a:focus,
    102103.entry-title a:active {
    103         color: #e4741f;
    104104}
    105105.entry-meta {
    … …  
    167167/* Comments link */
    168168.entry-header .comments-link a {
    169         background: #111;
     169        background: #1a1a1a;
    170170        border-color: #222;
    171171        color: #888;
    172172}
    173 .entry-header .comments-link a:hover,
    174 .entry-header .comments-link a:focus,
    175 .entry-header .comments-link a:active {
    176         background: #888;
    177         border-color: #aaa;
    178         color: #000;
     173.entry-header .comments-link a .leave-reply {
     174        background-position-y: -24px;
    179175}
    180176
    … …  
    206202
    207203
     204/* =Image
     205----------------------------------------------- */
     206
     207.format-image .entry-meta .edit-link a {
     208        color: #ddd;
     209}
     210.format-image .entry-meta .edit-link a:hover {
     211        color: #fff;
     212}
     213
     214
    208215/* =error404
    209216----------------------------------------------- */
    … …  
    256263}
    257264article.feature-image.small .entry-summary p a:hover {
    258         background: #e4741f;
    259265        color: #40220c;
    260266}
    … …  
    309315}
    310316section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
    311         color: #e4741f;
    312317}
    313318section.recent-posts .other-recent-posts .comments-link a,
    … …  
    321326}
    322327section.recent-posts .other-recent-posts .comments-link a:hover {
    323         color: #e4741f;
    324         border-color: #e4741f;
    325328}
    326329
    … …  
    369372}
    370373.widget_search #searchsubmit:active {
    371         background: #e4741f;
    372         border-color: #f79e5a;
    373374        -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
    374375        -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
    … …  
    485486}
    486487#respond input#submit:active {
    487         background: #e4741f;
    488488        color: #40220c;
    489489}
    … …  
    514514#site-generator {
    515515        background: #060606;
    516         border-color: #222;
     516        border-color: #000;
    517517}
    518518
  • trunk/wp-content/themes/twentyeleven/content-single.php

    r18029 r18072  
    5454                <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    5555
    56                 <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
     56                <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
    5757                <div id="author-info">
    5858                        <div id="author-avatar">
  • trunk/wp-content/themes/twentyeleven/image.php

    r17959 r18072  
    3737                                                                );
    3838                                                        ?>
    39                                                         <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
     39                                                        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    4040                                                </div><!-- .entry-meta -->
    4141
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r18057 r18072  
    328328                        border-color: <?php echo $link_color; ?>;
    329329                }       
    330                 article.feature-image.small .entry-summary p a:hover {
     330                article.feature-image.small .entry-summary p a:hover,
     331                .entry-header .comments-link a:hover,
     332                .entry-header .comments-link a:focus,
     333                .entry-header .comments-link a:active {
    331334                        background: <?php echo $link_color; ?>;
    332                 }       
     335                }
    333336        </style>
    334337<?php
  • trunk/wp-content/themes/twentyeleven/sidebar.php

    r17959 r18072  
    77 * @since Twenty Eleven 1.0
    88 */
     9
     10$options = twentyeleven_get_theme_options();
     11$current_layout = $options['theme_layout'];
     12
     13if ( 'content' != $current_layout ) :
    914?>
    1015                <div id="secondary" class="widget-area" role="complementary">
    … …  
    2934                        <?php endif; // end sidebar widget area ?>
    3035                </div><!-- #secondary .widget-area -->
     36<?php endif; ?>
  • trunk/wp-content/themes/twentyeleven/style.css

    r18060 r18072  
    425425        top: .5ex;
    426426}
     427
     428/* Forms */
    427429input[type=text],
    428430textarea {
    … …  
    444446input[type=text] {
    445447        padding: 3px;
     448}
     449input#s {
     450        background: url(images/search.png) no-repeat 5px 6px;
     451        -moz-border-radius: 2px;
     452        border-radius: 2px;
     453        font-size: 14px;
     454        height: 22px;
     455        line-height: 1.2em;
     456        padding: 4px 10px 4px 28px;
     457}
     458input#searchsubmit {
     459        display: none;
    446460}
    447461
    … …  
    596610}
    597611#branding #s {
    598         background: url(images/search.png) no-repeat 5px 6px;
    599         -moz-border-radius: 2px;
    600         border-radius: 2px;
    601612        float: right;
    602         font-size: 14px;
    603         height: 22px;
    604         line-height: 1.2em;
    605         padding: 4px 10px 4px 28px;
    606613        -webkit-transition-duration: 400ms;
    607614        -webkit-transition-property: width, background;
    … …  
    666673        text-transform: none;
    667674}
    668 .hentry {
     675.hentry,
     676.no-results {
    669677        border-bottom: 1px solid #ddd;
    670678        margin: 0 0 1.625em;
    … …  
    672680        position: relative;
    673681}
    674 .hentry:last-child {
     682.hentry:last-child,
     683.no-results {
    675684        border-bottom: none;
    676685}
    … …  
    750759        border-top: 1px solid #ddd;
    751760        padding: 6px 10px 6px 0;
     761}
     762.entry-content #s {
     763        width: 75%;
    752764}
    753765.comment-content ul,
    … …  
    864876        text-align: center;
    865877        text-decoration: none;
    866         top: 0;
     878        top: .5em;
    867879        right: 0;
    868880        width: 48px;
    … …  
    872884.entry-header .comments-link a:focus,
    873885.entry-header .comments-link a:active {
    874         background: #777;
    875         border-color: #555;
     886        background: #1b8be0;
     887        border-color: #1573bb;
     888        border-color: rgba(0,0,0,0.2);
    876889        color: #fff;
     890        color: rgba(255,255,255,0.8);
    877891}
    878892.entry-header .comments-link .leave-reply {
    879         font-size: 14px;
    880         font-weight: bold;
     893        background: url(images/icon-comment.png) no-repeat;
     894        color: transparent;
     895        display: inline-block;
     896        font-family: "Arial Unicode MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
     897        font-size: 26px;
     898        height: 24px;
     899        line-height: 12px;
     900        opacity: 0.25;
    881901        position: relative;
    882         text-transform: lowercase;
    883         top: -1px;
     902        width: 24px;
     903}
     904.entry-header .comments-link a:hover .leave-reply {
     905        background-position-y: -24px;
     906        opacity: 0.5;
    884907}
    885908/*
    … …  
    937960        left: 0;
    938961}
    939 .singular blockquote.pull {
     962blockquote.pull {
    940963        font-size: 21px;
    941964        font-weight: bold;
    942965        line-height: 1.6125em;
     966        margin: 0 0 1.625em;
     967        text-align: center;
     968}
     969.singular blockquote.pull {
    943970        margin: 0 -22.25% 1.625em;
     971}
     972.pull.alignleft {
     973        margin: 0 1.625em 0 0;
     974        text-align: right;
     975        width: 33%;
    944976}
    945977.singular .pull.alignleft {
    946978        margin: 0 1.625em 0 -22.25%;
     979}
     980.pull.alignright {
     981        margin: 0 0 0 1.625em;
     982        text-align: left;
     983        width: 33%;
    947984}
    948985.singular .pull.alignright {
    … …  
    12471284section.feature-image.large {
    12481285        border: none;
    1249         max-height: 300px;
     1286        max-height: 288px;
    12501287        padding: 0;
    12511288        width: 100%;
    … …  
    12911328        border-bottom: 1px solid #e8e8e8;
    12921329        display: block;
    1293         height: 340px;
     1330        height: 328px;
    12941331        margin: 1.625em -8.9% 20px;
    12951332        max-width: 1000px;
    … …  
    13021339.featured-posts section.featured-post {
    13031340        background: #fff;
    1304         height: 300px;
     1341        height: 288px;
    13051342        left: 0;
    13061343        margin: 0;
    … …  
    13101347}
    13111348.featured-posts section.featured-post.large {
     1349        max-width: 100%;
    13121350        overflow: hidden;
    13131351}
    … …  
    15041542        top: 7px;
    15051543}
     1544.gallery {
     1545        margin: 0 auto 1.625em !important;
     1546}
    15061547.gallery-caption {
    15071548}
    … …  
    15271568#nav-above {
    15281569        padding: 0 0 1.625em;
     1570}
     1571#nav-above {
     1572        display: none;
     1573}
     1574.paged #nav-above {
     1575        display: block;
    15291576}
    15301577.nav-previous {
    … …  
    15991646}
    16001647.widget_search #s {
    1601         width: 58%;
     1648        width: 77%;
    16021649}
    16031650.widget_search #searchsubmit {
    … …  
    20772124        /* Simplify the showcase template */
    20782125        .page-template-showcase-php .featured-posts {
    2079                 height: 280px;
     2126                min-height: 280px;
     2127        }
     2128        .featured-posts section.featured-post {
     2129                height: auto;
    20802130        }
    20812131        .page-template-showcase-php section.recent-posts {
    … …  
    21862236        #branding #searchform {
    21872237                top: 1.625em !important;
     2238        }
     2239        /* Floated content doesn't work well at this size */
     2240        .alignleft,
     2241        .alignright {
     2242                float: none;
     2243                margin-left: 0;
     2244                margin-right: 0;
    21882245        }
    21892246        /* Make sure the post-post navigation doesn't collide with anything */
Note: See TracChangeset for help on using the changeset viewer.