Make WordPress Core

Changeset 61860


Ignore:
Timestamp:
03/06/2026 11:21:37 PM (9 months ago)
Author:
joedolson
Message:

Customizer: Set more colors to inherit from admin theme.

Remove color overrides in customizer CSS that are already set in admin theme colors. Set colors to admin theme colors where currently hard coded.

Props madhavishah01, noruzzaman, shailu25, joedolson.
Fixes #64731.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r61835 r61860  
    8484}
    8585
    86 #customize-save-button-wrapper .save:focus, #publish-settings:focus {
    87         box-shadow: 0 1px 0 #2271b1, 0 0 2px 1px #72aee6; /* This is default box shadow for focus */
    88 }
    89 
    9086#customize-save-button-wrapper .save.has-next-sibling {
    9187        border-radius: 3px 0 0 3px;
    … …  
    500496}
    501497
    502 #customize-controls .customize-info.open .customize-help-toggle,
    503 #customize-controls .customize-info .customize-help-toggle:focus,
    504 #customize-controls .customize-info .customize-help-toggle:hover {
    505         color: #2271b1;
    506 }
    507 
    508498#customize-controls .customize-info .customize-panel-description,
    509499#customize-controls .customize-info .customize-section-description,
    … …  
    610600}
    611601
    612 #customize-controls .control-section:hover > .accordion-section-title,
    613 #customize-controls .control-section .accordion-section-title button:hover,
    614 #customize-controls .control-section.open .accordion-section-title,
    615 #customize-controls .control-section .accordion-section-title button:focus {
    616         color: var(--wp-admin-theme-color, #3858e9);
    617         background: #f6f7f7;
    618         border-left-color: var(--wp-admin-theme-color, #3858e9);
    619 }
    620 
    621602#accordion-section-themes + .control-section {
    622603        border-top: 1px solid #dcdcde;
    … …  
    628609.js .control-section .accordion-section-title:focus {
    629610        background: #f6f7f7;
    630 }
    631 
    632 #customize-theme-controls .control-section:hover > .accordion-section-title:after,
    633 #customize-theme-controls .control-section .accordion-section-title:hover:after,
    634 #customize-theme-controls .control-section.open .accordion-section-title:after,
    635 #customize-theme-controls .control-section .accordion-section-title:focus:after,
    636 #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after,
    637 #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,
    638 #customize-outer-theme-controls .control-section.open .accordion-section-title:after,
    639 #customize-outer-theme-controls .control-section .accordion-section-title:focus:after {
    640         color: #2271b1;
    641611}
    642612
    … …  
    908878.customize-controls-preview-toggle:hover {
    909879        background: #fff;
    910         color: #2271b1;
    911         border-top-color: #2271b1;
    912880        box-shadow: none;
    913881        /* Only visible in Windows High Contrast mode */
    … …  
    925893.customize-section-back:hover,
    926894.customize-section-back:focus {
    927         color: #2271b1;
    928895        background: #f6f7f7;
    929         border-left-color: #2271b1;
    930896        box-shadow: none;
    931897        /* Only visible in Windows High Contrast mode */
    … …  
    20342000.control-panel-themes .customize-themes-section-title:focus,
    20352001.control-panel-themes .customize-themes-section-title:hover {
    2036         border-left-color: #2271b1;
    2037         color: #2271b1;
    20382002        background: #f6f7f7;
    20392003}
    … …  
    20642028        top: 9px;
    20652029        right: 15px;
    2066         background: #2271b1;
    20672030        color: #fff;
    2068 }
    2069 
    2070 .control-panel-themes .customize-themes-section-title.selected {
    2071         color: #2271b1;
    20722031}
    20732032
    … …  
    23742333        .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover,
    23752334        .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus {
    2376                 color: #2271b1;
    23772335                background: #f6f7f7;
    2378                 border-left-color: #2271b1;
    23792336                box-shadow: none;
    23802337                /* Only visible in Windows High Contrast mode */
    … …  
    24722429.wp-customizer .theme-overlay .theme-header .left:hover {
    24732430        background: #fff;
    2474         border-bottom: 4px solid #2271b1;
    2475         color: #2271b1;
    24762431}
    24772432
    24782433.wp-customizer .theme-overlay .theme-header .close:focus:before,
    24792434.wp-customizer .theme-overlay .theme-header .close:hover:before {
    2480         color: #2271b1;
     2435        color: var(--wp-admin-theme-color);
    24812436}
    24822437
  • trunk/src/wp-admin/css/customize-nav-menus.css

    r61652 r61860  
    269269#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
    270270#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
    271         color: #2271b1;
     271        color: var(--wp-admin-theme-color);
    272272}
    273273
    … …  
    837837        position: relative;
    838838        z-index: 10;
    839         color: #2271b1;
     839        color: var(--wp-admin-theme-color);
    840840}
    841841
    … …  
    843843.menu-item-handle:hover .item-edit,
    844844#available-menu-items .menu-item-handle:hover .item-add {
    845         color: #2271b1;
     845        color: var(--wp-admin-theme-color);
    846846}
    847847
  • trunk/src/wp-admin/css/customize-widgets.css

    r61480 r61860  
    188188#customize-theme-controls .widget-area-select .selected {
    189189        color: #fff;
    190         background: #2271b1;
     190        background: var(--wp-admin-theme-color);
    191191}
    192192
    … …  
    246246        background: #f6f7f7;
    247247        border-bottom-color: #c3c4c7;
    248         color: #2271b1;
    249         border-left: 4px solid #2271b1;
     248        color: var(--wp-admin-theme-color);;
     249        border-left: 4px solid var(--wp-admin-theme-color);
    250250}
    251251
  • trunk/src/wp-includes/css/customize-preview.css

    r61682 r61860  
    4545        font-size: 18px;
    4646        z-index: 5;
    47         background: #3858e9;
     47        background: var( --wp-admin-theme-color, #3858e9 );
    4848        border-radius: 50%;
    4949        border: 2px solid #fff;
    … …  
    7777
    7878.customize-partial-edit-shortcut button:hover {
    79         background: #2145e6 !important; /* matches primary buttons */
     79        background: var( --wp-admin-theme-color-darker-10, #2145e6 ) !important; /* matches primary buttons */
    8080}
    8181
    8282.customize-partial-edit-shortcut button:focus {
    83         box-shadow: 0 0 0 1.5px #3858e9;
     83        box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px ) var(--wp-admin-theme-color, #3858e9);
    8484}
    8585
Note: See TracChangeset for help on using the changeset viewer.