WordPress.org

Make WordPress Core

Changeset 17755


Ignore:
Timestamp:
04/28/2011 10:04:39 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Eleven: make sure that link color options set in theme-options.php will override showcase.php recent posts and ephemera widget link colors; See #17198

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

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r17754 r17755  
    293293        /* Link color */
    294294        a,
    295         .entry-title a:hover {
     295        .entry-title a:hover,
     296        .widget_twentyeleven_ephemera .comments-link a:hover,
     297        section.recent-posts .other-recent-posts a[rel="bookmark"]:hover,
     298        section.recent-posts .other-recent-posts .comments-link a:hover {
    296299            color: <?php echo $link_color; ?>;
    297300        }
     301        section.recent-posts .other-recent-posts .comments-link a:hover {
     302            border-color: <?php echo $link_color; ?>;
     303        }       
    298304    </style>
    299305<?php
  • trunk/wp-content/themes/twentyeleven/inc/widgets.php

    r17738 r17755  
    8585            <?php if ( 'link' != get_post_format() ) : ?>
    8686
    87             <li class="entry-title">
     87            <li class="widget-entry-title">
    8888                <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    8989                <span class="comments-link">
     
    9494            <?php else : ?>
    9595
    96             <li class="entry-title">
     96            <li class="widget-entry-title">
    9797                <?php
    9898                    $link_url = get_permalink();
  • trunk/wp-content/themes/twentyeleven/style.css

    r17752 r17755  
    299299body, input, textarea {
    300300    color: #333;
    301     font: 15px "Helvetica Neue", Helvetica, Arial, serif;
     301    font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
    302302    font-weight: 300;
    303303    line-height: 1.625;
     
    436436/* Links */
    437437a {
    438     color: #1B8BE0;
     438    color: #1b8be0;
    439439    text-decoration: none;
    440440}
     
    446446    text-decoration: underline;
    447447}
    448 
    449448
    450449/* Assitive text */
     
    492491
    493492#access {
    494     background: #222;
     493    background: #222; /* Show a solid color for older browsers */
    495494    background: -moz-linear-gradient(#252525, #0a0a0a);
    496     background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a));
     495    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
    497496    background: -webkit-linear-gradient(#252525, #0a0a0a);
    498497    -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
     
    555554}
    556555#access li:hover > a {
    557     background: #f9f9f9;
     556    background: #f9f9f9; /* Show a solid color for older browsers */
    558557    background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
    559     background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5));
     558    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5)); /* Older webkit syntax */
    560559    background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
    561560    color: #333;
     
    12171216}
    12181217section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
    1219     color: #1b8be0;
    12201218}
    12211219section.recent-posts .other-recent-posts .comments-link a,
     
    14471445    margin: 5px 0 0;
    14481446}
    1449 section.ephemera .entry-title,
    1450 .widget_twentyeleven_ephemera .entry-title {
     1447.widget_twentyeleven_ephemera .widget-entry-title {
    14511448    font-size: 15px;
    14521449    font-weight: bold;
    14531450    padding: 0;
    14541451}
    1455 section.ephemera .entry-title a,
    14561452.widget_twentyeleven_ephemera .entry-title a {
    1457     color: #1b8be0;
    1458 }
    1459 section.ephemera .entry-title a:hover,
     1453}
    14601454.widget_twentyeleven_ephemera .entry-title a:hover {
    1461     color: #ff4b33;
    1462 }
    1463 section.ephemera .entry-title .comments-link a,
    1464 .widget_twentyeleven_ephemera .entry-title .comments-link a,
    1465 .widget_twentyeleven_ephemera .entry-title .comments-link {
     1455}
     1456.widget_twentyeleven_ephemera .comments-link a {
    14661457    color: #666;
    14671458    display: block;
     
    14731464section.ephemera .entry-title .comments-link a:hover,
    14741465.widget_twentyeleven_ephemera .entry-title .comments-link a:hover {
    1475     color: #1b8be0;
    14761466}
    14771467section.ephemera .entry-title a span {
Note: See TracChangeset for help on using the changeset viewer.