Make WordPress Core


Ignore:
Timestamp:
11/03/2014 05:00:06 PM (12 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: make it clear that a link is a link in post and comment meta by underlining it on hover or focus

Props morganestes, iamtakashi, fixes #30108

File:
1 edited

Legend:

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

    r30081 r30208  
    183183
    184184                @media screen and (min-width: 59.6875em) {
    185                         .site-header {
     185                        .site-header,
     186                        .secondary {
    186187                                background-color: transparent;
    187188                        }
     
    228229                }
    229230
     231                .secondary-toggle {
     232                        border-color: %1$s; /* Fallback for IE7 and IE8 */
     233                        border-color: %3$s;
     234                }
     235
     236                .secondary-toggle:hover,
    230237                .secondary-toggle:focus {
    231                         outline-color: %1$s;
    232                 }
    233 
    234                 .secondary-toggle:hover {
     238                        border-color: %1$s; /* Fallback for IE7 and IE8 */
    235239                        border-color: %4$s;
    236240                }
    237241
     242                .site-title a {
     243                        outline-color: %1$s; /* Fallback for IE7 and IE8 */
     244                        outline-color: %4$s;
     245                }
     246
    238247                @media screen and (min-width: 59.6875em) {
     248                        .secondary a,
    239249                        .dropdown-toggle:after,
    240                         .main-navigation a,
    241                         .social-navigation a,
    242250                        .widget-title,
    243                         .widget a {
     251                        .widget blockquote cite,
     252                        .widget blockquote small {
    244253                                color: %1$s;
    245                         }
    246 
    247                         .dropdown-toggle:focus {
    248                                 outline-color: %1$s;
    249254                        }
    250255
     
    257262                        }
    258263
     264                        .textwidget a {
     265                                border-color: %1$s;
     266                        }
     267
     268                        .secondary a:hover,
     269                        .secondary a:focus,
    259270                        .main-navigation .menu-item-description,
    260                         .main-navigation a:hover,
    261                         .main-navigation a:focus,
    262                         .social-navigation a:hover:before,
    263                         .social-navigation a:focus:before,
    264271                        .widget,
    265                         .widget a:hover,
    266                         .widget a:focus,
    267272                        .widget blockquote,
    268                         .widget blockquote cite,
    269                         .widget blockquote small,
    270273                        .widget .wp-caption-text,
    271274                        .widget .gallery-caption {
    272                                 color: %1$s; /* Fallback for IE7 and IE8 */
    273275                                color: %2$s;
    274276                        }
    275277
     278                        .widget button:hover,
     279                        .widget button:focus,
     280                        .widget input[type="button"]:hover,
     281                        .widget input[type="button"]:focus,
     282                        .widget input[type="reset"]:hover,
     283                        .widget input[type="reset"]:focus,
     284                        .widget input[type="submit"]:hover,
     285                        .widget input[type="submit"]:focus,
    276286                        .widget_calendar tbody a:hover,
    277287                        .widget_calendar tbody a:focus {
    278                                 background-color: %1$s; /* Fallback for IE7 and IE8 */
    279288                                background-color: %2$s;
    280289                        }
     
    287296                        .main-navigation li,
    288297                        .secondary-toggle,
     298                        .widget input,
     299                        .widget textarea,
     300                        .widget table,
     301                        .widget th,
     302                        .widget td,
     303                        .widget pre,
     304                        .widget li,
    289305                        .widget_categories .children,
    290306                        .widget_nav_menu .sub-menu,
    291307                        .widget_pages .children,
    292                         .widget table,
    293                         .widget th,
    294                         .widget td,
    295                         .widget input,
    296                         .widget textarea,
    297                         .widget pre,
    298                         .widget li,
    299308                        .widget abbr[title] {
    300                                 border-color: %1$s; /* Fallback for IE7 and IE8 */
    301309                                border-color: %3$s;
    302310                        }
     
    305313                        .dropdown-toggle:focus,
    306314                        .widget hr {
    307                                 background-color: %1$s; /* Fallback for IE7 and IE8 */
    308315                                background-color: %3$s;
    309316                        }
     
    311318                        .widget input:focus,
    312319                        .widget textarea:focus {
    313                                 border-color: %1$s; /* Fallback for IE7 and IE8 */
    314320                                border-color: %4$s;
     321                        }
     322
     323                        .sidebar a:focus,
     324                        .dropdown-toggle:focus {
     325                                outline-color: %4$s;
    315326                        }
    316327                }
Note: See TracChangeset for help on using the changeset viewer.