Make WordPress Core

Ticket #25640: 25640.diff

File 25640.diff, 9.3 KB (added by iamtakashi, 12 years ago)
  • wp-content/themes/twentyfourteen/editor-style.css

     
    278278
    279279a:active,
    280280a:hover {
    281         color: #5ff23d;
     281        color: #55d737;
    282282        outline: 0;
    283283}
    284284
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    5555function twentyfourteen_generate_accent_colors( $color ) {
    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;
    6262}
     
    115115        $accent_much_lighter = get_theme_mod( 'accent_much_lighter' );
    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 . ';
    137122                }
    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 . ';
    151136                }
     
    158143                        background: ' . $accent_color . ';
    159144                }
    160145
    161                 .page-links a:hover,
    162146                .paging-navigation .page-numbers.current {
    163147                        border-color: ' .  $accent_color . ';
    164148                }
    165149
    166150                /* Generated variant of custom accent color: slightly lighter. */
    167                 .search-toggle:hover,
    168                 .search-toggle.active,
    169                 .search-box,
    170151                button:hover,
    171                 html input[type="button"]:hover,
     152                button:focus,
     153                .contributor-posts-link:hover,
     154                input[type="button"]:hover,
     155                input[type="button"]:focus,
    172156                input[type="reset"]:hover,
     157                input[type="reset"]:focus,
    173158                input[type="submit"]:hover,
    174                 button:focus,
    175                 html input[type="button"]:focus,
    176                 input[type="reset"]:focus,
    177159                input[type="submit"]:focus,
     160                .search-toggle:hover,
     161                .search-toggle.active,
     162                .search-box,
    178163                .widget_calendar tbody a:hover {
    179164                        background-color: ' . $accent_lighter . ';
    180165                }
    181166
    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                }
    189176
    190177                a:hover,
    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
    204203        wp_add_inline_style( 'twentyfourteen-style', $css );
  • wp-content/themes/twentyfourteen/style.css

     
    129129a:hover,
    130130a:focus,
    131131a:active {
    132         color: #5ff23d;
     132        color: #55d737;
    133133}
    134134
    135135h1,
     
    404404input[type="radio"],
    405405input[type="reset"],
    406406input[type="search"],
    407 input[type="submit"]
     407input[type="submit"],
    408408input[type="text"],
    409409input[type="url"],
    410410textarea {
     
    478478input[type="reset"]:focus,
    479479input[type="submit"]:hover,
    480480input[type="submit"]:focus {
    481         background-color: #35921f;
     481        background-color: #41a62a;
    482482        color: #fff;
    483483}
    484484
     
    487487input[type="button"]:active,
    488488input[type="reset"]:active,
    489489input[type="submit"]:active {
    490         background-color: #5ff23d;
     490        background-color: #55d737;
    491491}
    492492
    493493/* Input Fields */
     
    830830
    831831.search-toggle:hover,
    832832.search-toggle.active {
    833         background-color: #35921f;
     833        background-color: #41a62a;
    834834}
    835835
    836836.search-toggle:before {
     
    857857}
    858858
    859859.search-box {
    860         background-color: #35921f;
     860        background-color: #41a62a;
    861861}
    862862
    863863.search-box .search-field {
     
    898898
    899899.site-navigation .current_page_item > a,
    900900.site-navigation .current-menu-item > a {
    901         color: #5ff23d;
     901        color: #55d737;
    902902}
    903903
    904904.site-navigation ul {
     
    997997}
    998998
    999999.secondary-navigation a:hover {
    1000         color: #5ff23d;
     1000        color: #55d737;
    10011001}
    10021002
    10031003.secondary-navigation ul {
     
    11871187}
    11881188
    11891189.entry-title a:hover {
    1190         color: #24890d;
     1190        color: #55d737;
    11911191}
    11921192
    11931193
     
    12331233}
    12341234
    12351235.cat-links a:hover {
    1236         color: #24890d;
     1236        color: #55d737;
    12371237}
    12381238
    12391239.byline {
     
    14401440}
    14411441
    14421442.page-links a:hover {
    1443         background: #24890d;
    1444         border: 1px solid #24890d;
     1443        background: #55d737;
     1444        border: 1px solid #55d737;
    14451445        color: #fff;
    14461446}
    14471447
     
    16861686
    16871687.post-navigation a:hover,
    16881688.image-navigation a:hover {
    1689         color: #24890d;
     1689        color: #55d737;
    16901690}
    16911691
    16921692/* Paging Navigation */
     
    17221722
    17231723.paging-navigation a:hover {
    17241724        background-color: #f5f5f5;
    1725         border-top: 5px solid #24890d;
     1725        border-top: 5px solid #55d737;
    17261726        color: #2b2b2b;
    17271727}
    17281728
     
    19101910.comment-list .pingback a:hover,
    19111911.comment-list .trackback a:hover,
    19121912.comment-metadata a:hover {
    1913         color: #24890d;
     1913        color: #55d737;
    19141914        text-decoration: none;
    19151915}
    19161916
     
    19641964        padding-left: 36px;
    19651965}
    19661966
    1967 
    1968 
    19691967.comment-edit-link {
    19701968        margin-left: 10px;
    19711969}
     
    20322030        display: block;
    20332031}
    20342032
    2035 .comment-form input[type=text] {
     2033.comment-form input[type="text"],
     2034.comment-form input[type="email"],
     2035.comment-form input[type="url"] {
    20362036        width: 100%;
    20372037}
    20382038
     
    20712071 * -----------------------------------------------------------------------------
    20722072 */
    20732073
    2074 /* Primary Sidebar */
     2074/* Primary Sidebar, Footer Sidebar */
    20752075
    20762076#secondary {
    20772077        background-color: #000;
     
    20962096        padding-top: 48px;
    20972097}
    20982098
    2099 .widget-area p {
    2100         margin-bottom: 18px;
    2101 }
    2102 
    2103 .widget-area a {
     2099.footer-sidebar a,
     2100.primary-sidebar a {
    21042101        color: rgba(255, 255, 255, 0.75);
    21052102}
    21062103
    2107 .widget-area a:hover {
    2108         color: #5ff23d;
     2104.footer-sidebar a:hover,
     2105.primary-sidebar a:hover {
     2106        color: #55d737;
    21092107}
    21102108
    2111 .widget-area .widget-title,
    2112 .widget-area .widget-title a,
    2113 .widget-area .widget-title a:hover {
     2109.footer-sidebar .widget-title,
     2110.footer-sidebar .widget-title a,
     2111.footer-sidebar .widget-title a:hover,
     2112.primary-sidebar .widget-title,
     2113.primary-sidebar .widget-title a,
     2114.primary-sidebar .widget-title a:hover {
    21142115        color: #fff;
    21152116}
    21162117
     
    21302131        position: relative;
    21312132}
    21322133
    2133 .content-sidebar.widget-area a {
    2134         color: #2b2b2b;
    2135 }
    21362134
    2137 .content-sidebar.widget-area a:hover {
    2138         color: #24890d;
    2139 }
    2140 
    2141 
    21422135/**
    21432136 * 7.1 Widgets
    21442137 * -----------------------------------------------------------------------------
     
    21502143        overflow: hidden;
    21512144}
    21522145
     2146.widget p {
     2147        margin-bottom: 18px;
     2148}
     2149
    21532150.widget ul,
    21542151.widget ol {
    21552152        list-style: none;
     
    22342231}
    22352232
    22362233.widget_calendar tbody a:hover {
    2237         background-color: #35921f;
     2234        background-color: #41a62a;
    22382235}
    22392236
    2240 .widget-area .widget_calendar tbody a:hover {
    2241         color: #fff; /* Override custom accent color with more specific selector. */
    2242 }
    2243 
    22442237.widget_calendar #prev {
    22452238        padding-left: 5px;
    22462239}
     
    24452438        background-color: rgba(0, 0, 0, 0.02);
    24462439}
    24472440
    2448 .content-sidebar .widget_calendar tbody a,
    2449 .content-sidebar.widget-area .widget_calendar tbody a:hover {
    2450         color: #fff; /* Override custom accent color with more specific selector. */
    2451 }
     2441/* Ephemera widget*/
    24522442
    2453 /* Ephemera widget*/
    24542443.content-sidebar .widget_twentyfourteen_ephemera .widget-title {
    24552444        line-height: 1.2857142857;
    24562445        padding-top: 1px;
     
    25262515}
    25272516
    25282517.content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link:hover {
    2529         color: #5ff23d;
     2518        color: #55d737;
    25302519}
    25312520
    25322521
     
    26152604}
    26162605
    26172606.featured-content a:hover {
    2618         color: #5ff23d;
     2607        color: #55d737;
    26192608}
    26202609
    26212610.featured-content .entry-meta {