Make WordPress Core

Ticket #25812: 25812.diff

File 25812.diff, 16.6 KB (added by iamtakashi, 13 years ago)
  • wp-content/themes/twentyfourteen/functions.php

     
    224224        wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
    225225
    226226        // Add Genericons font, used in the main stylesheet.
    227         wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '3.0' );
     227        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '3.0.2' );
    228228
    229229        // Loads our main stylesheet.
    230230        wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    139139
    140140        $css = '/* Custom accent color. */
    141141                a,
    142                 .paging-navigation .page-numbers.current,
    143142                .content-sidebar .widget a {
    144143                        color: ' . $accent_color . ';
    145144                }
     
    156155                .widget input[type="reset"],
    157156                .widget input[type="submit"],
    158157                .widget_calendar tbody a,
    159                 .slider-control-paging a:hover:before,
     158                .content-sidebar .widget input[type="button"],
     159                .content-sidebar .widget input[type="reset"],
     160                .content-sidebar .widget input[type="submit"],
     161                .slider-control-paging .slider-active:before,
     162                .slider-control-paging .slider-active:hover:before,
    160163                .slider-direction-nav a:hover {
    161164                        background-color: ' . $accent_color . ';
    162165                }
     
    174177                }
    175178
    176179                @media screen and (min-width: 782px) {
    177                         .primary-navigation ul ul,
    178                         .primary-navigation li:hover > a {
     180                        .primary-navigation li:hover > a,
     181                        .primary-navigation li.focus > a,
     182                        .primary-navigation ul ul {
    179183                                background-color: ' . $accent_color . ';
    180184                        }
    181185                }
    182186
    183187                @media screen and (min-width: 1008px) {
    184188                        .secondary-navigation li:hover > a,
     189                        .secondary-navigation li.focus > a,
    185190                        .secondary-navigation ul ul {
    186191                                background-color: ' . $accent_color . ';
    187192                        }
     
    200205                .search-toggle:hover,
    201206                .search-toggle.active,
    202207                .search-box,
     208                .entry-meta .tag-links a:hover,
     209                .widget input[type="button"]:hover,
     210                .widget input[type="button"]:focus,
     211                .widget input[type="reset"]:hover,
     212                .widget input[type="reset"]:focus,
     213                .widget input[type="submit"]:hover,
     214                .widget input[type="submit"]:focus,
    203215                .widget_calendar tbody a:hover,
    204                 .slider-control-paging .slider-active:before {
     216                .content-sidebar .widget input[type="button"]:hover,
     217                .content-sidebar .widget input[type="button"]:focus,
     218                .content-sidebar .widget input[type="reset"]:hover,
     219                .content-sidebar .widget input[type="reset"]:focus,
     220                .content-sidebar .widget input[type="submit"]:hover,
     221                .content-sidebar .widget input[type="submit"]:focus,
     222                .slider-control-paging a:hover:before {
    205223                        background-color: ' . $accent_lighter . ';
    206224                }
    207225
    208                 @media screen and (min-width: 782px) {
    209                         .primary-navigation ul ul a:hover,
    210                         .secondary-navigation ul ul a:hover {
    211                                 background-color: ' . $accent_lighter . ';
    212                         }
    213                 }
    214 
    215                 /* Generated variant of custom accent color: much lighter. */
    216                 button:active,
    217                 .contributor-posts-link:active,
    218                 input[type="button"]:active,
    219                 input[type="reset"]:active,
    220                 input[type="submit"]:active,
    221                 .page-links a:hover {
    222                         background-color: ' . $accent_much_lighter . ';
    223                 }
    224 
     226                a:active,
    225227                a:hover,
    226                 a:focus,
    227                 a:active,
    228                 .site-navigation .current_page_item > a,
    229                 .site-navigation .current_page_ancestor > a,
    230                 .site-navigation .current-menu-item > a,
    231                 .site-navigation .current-menu-ancestor > a,
     228                .site-navigation a:hover,
    232229                .entry-title a:hover,
    233230                .entry-meta a:hover,
    234231                .cat-links a:hover,
    235232                .entry-content .edit-link a:hover,
     233                .page-links a:hover,
    236234                .post-navigation a:hover,
    237235                .image-navigation a:hover,
    238236                .comment-author a:hover,
     
    241239                .comment-metadata a:hover,
    242240                .comment-reply-title small a:hover,
    243241                .widget a:hover,
    244                 .widget a:focus,
    245                 .widget a:active,
     242                .widget-title a:hover,
    246243                .content-sidebar .widget a:hover,
    247                 .content-sidebar .widget a:focus,
    248                 .content-sidebar .widget a:active,
    249244                .content-sidebar .widget .widget-title a:hover,
    250                 .content-sidebar .widget .widget-title a:focus,
    251                 .content-sidebar .widget .widget-title a:active,
    252245                .content-sidebar .widget_twentyfourteen_ephemera .entry-meta a:hover,
     246                .site-info a:hover,
    253247                .featured-content a:hover {
    254                         color: ' . $accent_much_lighter . ';
     248                        color: ' . $accent_lighter . ';
    255249                }
    256250
    257251                .page-links a:hover,
    258252                .paging-navigation a:hover {
    259                         border-color: ' . $accent_much_lighter . ';
     253                        border-color: ' . $accent_lighter . ';
     254                }
     255
     256                .tag-links a:hover:before {
     257                        border-right-color: ' . $accent_lighter . ';
     258                }
     259
     260                @media screen and (min-width: 782px) {
     261                        .primary-navigation ul ul a:hover,
     262                        .primary-navigation ul ul li.focus > a {
     263                                background-color: ' . $accent_lighter . ';
     264                        }
     265                }
     266
     267                @media screen and (min-width: 1008px) {
     268                        .secondary-navigation ul ul a:hover,
     269                        .secondary-navigation ul ul li.focus > a {
     270                                background-color: ' . $accent_lighter . ';
     271                        }
     272                }
     273
     274                /* Generated variant of custom accent color: much lighter. */
     275                button:active,
     276                .contributor-posts-link:active,
     277                input[type="button"]:active,
     278                input[type="reset"]:active,
     279                input[type="submit"]:active,
     280                .widget input[type="button"]:active,
     281                .widget input[type="reset"]:active,
     282                .widget input[type="submit"]:active,
     283                .content-sidebar .widget input[type="button"]:active,
     284                .content-sidebar .widget input[type="reset"]:active,
     285                .content-sidebar .widget input[type="submit"]:active {
     286                        background-color: ' . $accent_much_lighter . ';
     287                }
     288
     289                .site-navigation .current_page_item > a,
     290                .site-navigation .current_page_ancestor > a,
     291                .site-navigation .current-menu-item > a,
     292                .site-navigation .current-menu-ancestor > a {
     293                        color: ' . $accent_much_lighter . ';
    260294                }';
    261295
     296
    262297        wp_add_inline_style( 'twentyfourteen-style', $css );
    263298}
    264299add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' );
  • wp-content/themes/twentyfourteen/rtl.css

     
    255255        left: auto;
    256256}
    257257
     258.bypostauthor > article .fn:before {
     259        margin: 3px -2px 0 2px;
     260}
     261
    258262.comment-content,
    259263.comment-list .reply,
    260264.comment-metadata {
  • wp-content/themes/twentyfourteen/style.css

     
    125125        outline: 0;
    126126}
    127127
    128 a:hover,
    129 a:focus,
    130 a:active {
    131         color: #55d737;
     128a:active,
     129a:hover {
     130        color: #41a62a;
    132131}
    133132
    134133h1,
     
    758757
    759758/* Genericons */
    760759
     760.bypostauthor > article .fn:before,
    761761.comment-edit-link:before,
    762762.comment-reply-link:before,
    763763.comment-reply-login:before,
     
    834834        margin: 0;
    835835}
    836836
    837 .site-title a {
     837.site-title a,
     838.site-title a:hover {
    838839        color: #fff;
    839840}
    840841
     
    868869        box-sizing:         border-box;
    869870        position: absolute;
    870871        top: 48px;
     872        right: 0;
    871873        width: 100%;
    872874        z-index: 2;
    873875}
    874876
    875877.search-box {
    876878        background-color: #41a62a;
     879        padding: 12px 10px;
    877880}
    878881
    879882.search-box .search-field {
    880883        background-color: #fff;
     884        border: 0;
    881885        float: right;
    882886        font-size: 16px;
    883         margin: 12px 10px;
    884         padding: 1px 2px 2px 6px;
    885         width: 300px;
     887        padding: 2px 2px 3px 6px;
     888        width: 100%;
    886889}
    887890
    888891.search-toggle .screen-reader-text {
     
    914917        text-transform: uppercase;
    915918}
    916919
     920.site-navigation a:hover {
     921        color: #41a62a;
     922}
     923
    917924.site-navigation .current_page_item > a,
    918925.site-navigation .current_page_ancestor > a,
    919926.site-navigation .current-menu-item > a,
     
    921928        color: #55d737;
    922929}
    923930
    924 .site-navigation a:hover {
    925         color: rgba(255, 255, 255, 0.7);
    926 }
    927 
    928931/* Primary Navigation */
    929932
    930933.primary-navigation {
     
    10631066}
    10641067
    10651068.entry-title a:hover {
    1066         color: #55d737;
     1069        color: #41a62a;
    10671070}
    10681071
    10691072.site-content .entry-header {
     
    10991102}
    11001103
    11011104.entry-meta a:hover {
    1102         color: #55d737;
     1105        color: #41a62a;
    11031106}
    11041107
    11051108.sticky .entry-date {
     
    11161119}
    11171120
    11181121.cat-links a:hover {
    1119         color: #55d737;
     1122        color: #41a62a;
    11201123}
    11211124
    11221125.byline {
     
    11611164        text-transform: uppercase;
    11621165}
    11631166
    1164 .entry-meta .tag-links a:hover,
    1165 .entry-meta .tag-links a:focus {
    1166         background-color: #2b2b2b;
     1167.entry-meta .tag-links a:hover {
     1168        background-color: #41a62a;
    11671169        color: #fff;
    1168         text-decoration: none;
    11691170}
    11701171
    11711172.tag-links a:before {
     
    11801181        width: 0;
    11811182}
    11821183
    1183 .tag-links a:hover:before,
    1184 .tag-links a:focus:before {
    1185         border-right-color: #2b2b2b;
     1184.tag-links a:hover:before {
     1185        border-right-color: #41a62a;
    11861186}
    11871187
    11881188.tag-links a:after {
     
    12701270}
    12711271
    12721272.entry-content .edit-link a:hover {
    1273         color: #55d737;
     1273        color: #41a62a;
    12741274}
    12751275
    12761276/* Mediaelements */
     
    13421342}
    13431343
    13441344.page-links a:hover {
    1345         background: #55d737;
    1346         border: 1px solid #55d737;
     1345        background: #41a62a;
     1346        border: 1px solid #41a62a;
    13471347        color: #fff;
    13481348}
    13491349
     
    15701570
    15711571.post-navigation a:hover,
    15721572.image-navigation a:hover {
    1573         color: #55d737;
     1573        color: #41a62a;
    15741574}
    15751575
    15761576/* Paging Navigation */
     
    15951595        text-transform: uppercase;
    15961596}
    15971597
     1598.paging-navigation a {
     1599        color: #2b2b2b;
     1600}
     1601
    15981602.paging-navigation .page-numbers.current {
    15991603        border-top: 5px solid #24890d;
    1600         color: #24890d;
    16011604}
    16021605
    1603 .paging-navigation a {
    1604         color: #2b2b2b;
    1605 }
    1606 
    16071606.paging-navigation a:hover {
    1608         border-top: 5px solid #55d737;
     1607        border-top: 5px solid #41a62a;
    16091608        color: #2b2b2b;
    16101609}
    16111610
     
    18131812.comment-list .pingback a:hover,
    18141813.comment-list .trackback a:hover,
    18151814.comment-metadata a:hover {
    1816         color: #55d737;
     1815        color: #41a62a;
    18171816}
    18181817
    18191818.comment-list article,
     
    18391838        width: 18px;
    18401839}
    18411840
    1842 .bypostauthor .avatar {
    1843         background-color: #000;
     1841.bypostauthor > article .fn:before {
     1842        content: "\f408";
     1843        margin: 3px 2px 0 -2px;
    18441844}
    18451845
    18461846.says {
     
    19091909        margin-bottom: 24px;
    19101910}
    19111911
     1912.logged-in-as {
     1913        color: #767676;
     1914}
     1915
    19121916.no-comments {
    19131917        color: #767676;
    19141918        font-size: 16px;
     
    19301934
    19311935.form-allowed-tags,
    19321936.form-allowed-tags code {
     1937        color: #767676;
    19331938        font-size: 12px;
    19341939        line-height: 1.5;
    19351940}
     
    19431948}
    19441949
    19451950.comment-reply-title small a:hover {
    1946         color: #55d737;
     1951        color: #41a62a;
    19471952}
    19481953
    19491954.comment-reply-title small a:before {
     
    20462051        color: rgba(255, 255, 255, 0.75);
    20472052}
    20482053
    2049 .widget a:hover,
    2050 .widget a:focus,
    2051 .widget a:active {
    2052         color: #55d737;
     2054.widget a:hover {
     2055        color: #41a62a;
    20532056}
    20542057
    20552058.widget h1,
     
    21772180.widget input,
    21782181.widget textarea {
    21792182        background-color: rgba(255, 255, 255, 0.1);
    2180         border: 1px solid rgba(255, 255, 255, 0.2);
     2183        border: 1px solid rgba(255, 255, 255, 0.15);
    21812184        color: #fff;
    21822185        font-size: 16px;
    21832186        padding: 1px 2px 2px 4px;
     
    21852188
    21862189.widget input:focus,
    21872190.widget textarea:focus {
    2188         border: 1px solid rgba(255, 255, 255, 0.3);
     2191        border: 1px solid rgba(255, 255, 255, 0.2);
    21892192}
    21902193
    21912194.widget button,
     
    21932196.widget input[type="reset"],
    21942197.widget input[type="submit"] {
    21952198        background-color: #24890d;
     2199        border: 0;
    21962200        font-size: 12px;
    21972201        padding: 5px 15px 4px;
    21982202}
    21992203
     2204.widget input[type="button"]:hover,
     2205.widget input[type="button"]:focus,
     2206.widget input[type="reset"]:hover,
     2207.widget input[type="reset"]:focus,
     2208.widget input[type="submit"]:hover,
     2209.widget input[type="submit"]:focus {
     2210        background-color: #41a62a;
     2211}
     2212
     2213.widget input[type="button"]:active,
     2214.widget input[type="reset"]:active,
     2215.widget input[type="submit"]:active {
     2216        background-color: #55d737;
     2217}
     2218
    22002219.widget .wp-caption {
    22012220        color: rgba(255, 255, 255, 0.45);
    22022221        margin-bottom: 18px;
     
    22112230}
    22122231
    22132232.widget-title,
    2214 .widget-title a,
    2215 .widget-title a:hover,
    2216 .widget-title a:focus,
    2217 .widget-title a:active {
     2233.widget-title a {
    22182234        color: #fff;
    22192235}
    22202236
     2237.widget-title a:hover {
     2238        color: #41a62a;
     2239}
     2240
    22212241/* Calendar Widget*/
    22222242
    22232243.widget_calendar table {
     
    22532273        background-color: #41a62a;
    22542274}
    22552275
    2256 .footer-sidebar .widget_calendar tbody a,
    2257 .footer-sidebar .widget_calendar tbody a:hover,
    2258 .primary-sidebar .widget_calendar tbody a,
    2259 .primary-sidebar .widget_calendar tbody a:hover {
     2276.widget_calendar tbody a:hover {
    22602277        color: #fff;
    22612278}
    22622279
     
    24012418        color: #24890d;
    24022419}
    24032420
    2404 .content-sidebar .widget a:hover,
    2405 .content-sidebar .widget a:focus,
    2406 .content-sidebar .widget a:active {
    2407         color: #55d737;
     2421.content-sidebar .widget a:hover {
     2422        color: #41a62a;
    24082423}
    24092424
    24102425.content-sidebar .widget pre {
     
    24612476
    24622477.content-sidebar .widget input:focus,
    24632478.content-sidebar .widget textarea:focus {
    2464         border: 1px solid rgba(0, 0, 0, 0.);
     2479        border: 1px solid rgba(0, 0, 0, 0.3);
    24652480}
    24662481
     2482.content-sidebar .widget input[type="button"],
     2483.content-sidebar .widget input[type="reset"],
     2484.content-sidebar .widget input[type="submit"] {
     2485        background-color: #24890d;
     2486        border: 0;
     2487        color: #fff;
     2488}
     2489
     2490.content-sidebar .widget input[type="button"]:hover,
     2491.content-sidebar .widget input[type="button"]:focus,
     2492.content-sidebar .widget input[type="reset"]:hover,
     2493.content-sidebar .widget input[type="reset"]:focus,
     2494.content-sidebar .widget input[type="submit"]:hover,
     2495.content-sidebar .widget input[type="submit"]:focus {
     2496        background-color: #41a62a;
     2497}
     2498
     2499.content-sidebar .widget input[type="button"]:active,
     2500.content-sidebar .widget input[type="reset"]:active,
     2501.content-sidebar .widget input[type="submit"]:active {
     2502        background-color: #55d737;
     2503}
     2504
    24672505.content-sidebar .widget .wp-caption {
    24682506        color: #767676;
    24692507}
     
    24782516        text-transform: uppercase;
    24792517}
    24802518
    2481 .content-sidebar .widget .widget-title a,
    2482 .content-sidebar .widget .widget-title a:hover,
    2483 .content-sidebar .widget .widget-title a:focus,
    2484 .content-sidebar .widget .widget-title a:active {
     2519.content-sidebar .widget .widget-title a {
    24852520        color: #2b2b2b;
    24862521}
    24872522
     2523.content-sidebar .widget .widget-title a:hover {
     2524        color: #41a62a;
     2525}
     2526
    24882527/* List Style Widgets*/
    24892528
    24902529.content-sidebar .widget_archive li,
     
    25242563.content-sidebar .widget_twentyfourteen_ephemera .widget-title:before {
    25252564        background-color: #000;
    25262565        color: #fff;
    2527         margin: -1px 18px 0 0;
     2566        margin: -1px 9px 0 0;
    25282567        padding: 6px 0 9px;
    25292568        text-align: center;
    25302569        vertical-align: middle;
     
    25362575}
    25372576
    25382577.content-sidebar .widget_twentyfourteen_ephemera .image.widget-title:before {
    2539         content: "\f102";
     2578        content: "\f473";
    25402579}
    25412580
    25422581.content-sidebar .widget_twentyfourteen_ephemera .gallery.widget-title:before {
     
    25682607}
    25692608
    25702609.content-sidebar .widget_twentyfourteen_ephemera .entry-meta a:hover {
    2571         color: #55d737;
     2610        color: #41a62a;
    25722611}
    25732612
    25742613.content-sidebar.widget_twentyfourteen_ephemera blockquote cite {
     
    26162655}
    26172656
    26182657.site-info a:hover {
    2619         color: #fff;
     2658        color: #41a62a;
    26202659}
    26212660
    26222661
     
    26782717}
    26792718
    26802719.featured-content a:hover {
    2681         color: #55d737;
     2720        color: #41a62a;
    26822721}
    26832722
    26842723.featured-content .entry-meta {
     
    27552794}
    27562795
    27572796.slider-control-paging a:hover:before {
    2758         background-color: #24890d;
     2797        background-color: #41a62a;
    27592798}
    27602799
    2761 .slider-control-paging .slider-active:before {
    2762         background-color: #41a62a;
     2800.slider-control-paging .slider-active:before,
     2801.slider-control-paging .slider-active:hover:before {
     2802        background-color: #24890d;
    27632803}
    27642804
    27652805.slider-direction-nav {
     
    29312971        }
    29322972
    29332973        .site-content .format-image .post-format a:before {
    2934                 content: "\f102";
     2974                content: "\f473";
    29352975                margin: -1px 3px 0 0;
    29362976        }
    29372977
     
    29522992
    29532993        .site-content .format-link .post-format a:before {
    29542994                content: "\f107";
    2955                 margin: -1px 3px 0 0;
    29562995        }
    29572996
    29582997        .site-content .featured-post:before {
     
    30383077                margin-right: 18px;
    30393078        }
    30403079
     3080        .search-box .search-field {
     3081                width: 50%
     3082        }
     3083
    30413084        .content-area {
    30423085                float: left;
    30433086                padding-top: 36px;
     
    32853328        .primary-navigation li.focus > a {
    32863329                background-color: #24890d;
    32873330                color: #fff;
    3288                 opacity: 1.0;
    32893331        }
    32903332
    32913333        .primary-navigation ul ul a:hover,
     
    35823624                line-height: 1.6363636363;
    35833625        }
    35843626
     3627        .footer-sidebar .widget input,
     3628        .footer-sidebar .widget textarea,
     3629        .primary-sidebar .widget input,
     3630        .primary-sidebar .widget textarea {
     3631                font-size: 12px;
     3632                padding: 3px 2px 4px 4px;
     3633        }
     3634
     3635        .footer-sidebar .widget input[type="button"],
     3636        .footer-sidebar .widget input[type="reset"],
     3637        .footer-sidebar .widget input[type="submit"],
     3638        .primary-sidebar .widget input[type="button"],
     3639        .primary-sidebar .widget input[type="reset"],
     3640        .primary-sidebar .widget input[type="submit"] {
     3641                padding: 5px 15px 4px;
     3642        }
     3643
    35853644        .footer-sidebar .widget .widget-title,
    35863645        .primary-sidebar .widget .widget-title {
    35873646                font-size: 11px;
     
    36963755}
    36973756
    36983757@media screen and (min-width: 1080px) {
     3758        .search-box .search-field {
     3759                width: 324px;
     3760        }
     3761
    36993762        .site-content {
    37003763                margin-left: 222px;
    37013764        }