Make WordPress Core


Ignore:
Timestamp:
10/21/2013 04:39:53 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: revise link colors. Props iamtakashi, see #25640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r25802 r25857  
    5656    $color = sanitize_hex_color( $color );
    5757
    58     set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 14 ) );
    59     set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 71 ) );
     58    set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 29 ) );
     59    set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 49 ) );
    6060
    6161    return $color;
     
    116116
    117117    $css = '/* Custom accent color. */
    118         h1 a:hover,
    119         h2 a:hover,
    120         h3 a:hover,
    121         h4 a:hover,
    122         h5 a:hover,
    123         h6 a:hover,
    124118        a,
    125         .entry-title a:hover,
    126         .cat-links a:hover,
    127         .site-content .post-navigation a:hover,
    128         .site-content .image-navigation a:hover,
    129         .comment-author a:hover,
    130         .comment-metadata a:hover,
    131         .comment-list .trackback a:hover,
    132         .comment-list .pingback a:hover,
    133119        .paging-navigation .page-numbers.current,
    134         .content-sidebar.widget-area a:hover,
    135120        .content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link {
    136121            color: ' . $accent_color . ';
     
    138123
    139124        button,
    140         html input[type="button"],
     125        .contributor-posts-link,
     126        input[type="button"],
    141127        input[type="reset"],
    142128        input[type="submit"],
    143         .hentry .mejs-controls .mejs-time-rail .mejs-time-current,
    144129        .header-extra,
    145130        .search-toggle,
    146131        .primary-navigation ul ul,
    147132        .primary-navigation li:hover > a,
    148         .page-links a:hover,
     133        .hentry .mejs-controls .mejs-time-rail .mejs-time-current,
    149134        .widget_calendar tbody a {
    150135            background-color: ' . $accent_color . ';
     
    159144        }
    160145
    161         .page-links a:hover,
    162146        .paging-navigation .page-numbers.current {
    163147            border-color: ' .  $accent_color . ';
     
    165149
    166150        /* Generated variant of custom accent color: slightly lighter. */
     151        button:hover,
     152        button:focus,
     153        .contributor-posts-link:hover,
     154        input[type="button"]:hover,
     155        input[type="button"]:focus,
     156        input[type="reset"]:hover,
     157        input[type="reset"]:focus,
     158        input[type="submit"]:hover,
     159        input[type="submit"]:focus,
    167160        .search-toggle:hover,
    168161        .search-toggle.active,
    169162        .search-box,
    170         button:hover,
    171         html input[type="button"]:hover,
    172         input[type="reset"]:hover,
    173         input[type="submit"]:hover,
    174         button:focus,
    175         html input[type="button"]:focus,
    176         input[type="reset"]:focus,
    177         input[type="submit"]:focus,
    178163        .widget_calendar tbody a:hover {
    179164            background-color: ' . $accent_lighter . ';
     
    182167        /* Generated variant of custom accent color: much lighter. */
    183168        button:active,
    184         html input[type="button"]:active,
     169        .contributor-posts-link:active,
     170        input[type="button"]:active,
    185171        input[type="reset"]:active,
    186         input[type="submit"]:active {
     172        input[type="submit"]:active,
     173        .page-links a:hover {
    187174            background-color: ' . $accent_much_lighter . ';
    188175        }
     
    191178        a:focus,
    192179        a:active,
    193         .primary-navigation li.current_page_item > a,
    194         .primary-navigation li.current-menu-item > a,
     180        .site-navigation .current_page_item > a,
     181        .site-navigation .current-menu-item > a,
    195182        .secondary-navigation a:hover,
    196         #secondary .current_page_item > a,
    197         #secondary .current-menu-item > a,
    198         .featured-content a:hover,
    199         .featured-content .more-link,
    200         .widget-area a:hover {
     183        .entry-title a:hover,
     184        .cat-links a:hover,
     185        .post-navigation a:hover,
     186        .image-navigation a:hover,
     187        .comment-author a:hover,
     188        .comment-list .pingback a:hover,
     189        .comment-list .trackback a:hover,
     190        .comment-metadata a:hover,
     191        .footer-sidebar a:hover,
     192        .primary-sidebar a:hover,
     193        .content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link:hover,
     194        .featured-content a:hover {
    201195            color: ' . $accent_much_lighter . ';
     196        }
     197
     198        .page-links a:hover,
     199        .paging-navigation a:hover {
     200            border-color: ' . $accent_much_lighter . ';
    202201        }';
    203202
Note: See TracChangeset for help on using the changeset viewer.