Make WordPress Core

Ticket #29976: 29976.1.diff

File 29976.1.diff, 2.8 KB (added by iamtakashi, 9 years ago)

Fix color scheme specific styles in widget areas and main navigation.

  • wp-content/themes/twentyfifteen/inc/customizer.php

     
    314314                .pagination .next,
    315315                .pagination .prev:before,
    316316                .pagination .next:before,
     317                .widget_calendar tbody a,
     318                .widget_calendar tbody a:hover,
     319                .widget_calendar tbody a:focus,
    317320                .entry-content .page-links a,
    318321                .entry-content .page-links a:hover,
    319322                .entry-content .page-links a:focus,
     
    328331                input[type="submit"],
    329332                .pagination .prev,
    330333                .pagination .next,
     334                .widget_calendar tbody a,
    331335                .page-links a,
    332336                .sticky-post {
    333337                        background-color: %4$s;
     
    338342                blockquote cite,
    339343                blockquote small,
    340344                a,
     345                .dropdown-toggle:after,
    341346                .image-navigation a:hover,
    342347                .image-navigation a:focus,
    343348                .comment-navigation a:hover,
    344349                .comment-navigation a:focus,
     350                .widget-title,
    345351                .entry-footer a:hover,
    346352                .entry-footer a:focus,
    347353                .comment-metadata a:hover,
     
    379385                .pagination .prev:focus,
    380386                .pagination .next:hover,
    381387                .pagination .next:focus,
     388                .widget_calendar tbody a:hover,
     389                .widget_calendar tbody a:focus,
    382390                .page-links a:hover,
    383391                .page-links a:focus {
    384392                        background-color: %4$s; /* Fallback for IE7 and IE8 */
     
    387395
    388396                /* Secondary Text Color */
    389397                blockquote,
    390                 input[type="text"],
    391                 input[type="email"],
    392                 input[type="url"],
    393                 input[type="password"],
    394                 input[type="search"],
    395                 textarea,
    396398                a:hover,
    397399                a:focus,
     400                .main-navigation .menu-item-description,
    398401                .post-navigation .meta-nav,
    399402                .post-navigation a:hover .post-title,
    400403                .post-navigation a:focus .post-title,
     
    402405                .image-navigation a,
    403406                .comment-navigation,
    404407                .comment-navigation a,
     408                .widget,
    405409                .author-heading,
    406410                .entry-footer,
    407411                .entry-footer a,
     
    444448                }
    445449
    446450                /* Border Color */
    447                 hr {
     451                hr,
     452                .dropdown-toggle:hover,
     453                .dropdown-toggle:focus {
    448454                        background-color: %4$s; /* Fallback for IE7 and IE8 */
    449455                        background-color: %6$s;
    450456                }
     
    457463                td,
    458464                input,
    459465                textarea,
     466                .main-navigation ul,
     467                .main-navigation li,
    460468                .post-navigation,
    461469                .post-navigation .nav-previous:not(.has-post-thumbnail) + .nav-next:not(.has-post-thumbnail),
    462470                .pagination,
    463471                .comment-navigation,
     472                .widget li,
     473                .widget_categories .children,
     474                .widget_nav_menu .sub-menu,
     475                .widget_pages .children,
    464476                .site-header,
    465477                .site-footer,
    466478                .hentry + .hentry,
     
    574586                        /* Sidebar Text Color */
    575587                        .secondary a:hover,
    576588                        .secondary a:focus,
     589                        .main-navigation .menu-item-description,
    577590                        .widget,
    578                         .main-navigation .menu-item-description,
    579591                        .widget blockquote,
    580592                        .widget .wp-caption-text,
    581593                        .widget .gallery-caption {