Skip to content

Commit c125357

Browse files
committed
Admin: Use admin color scheme variable for bar, highlight, and contextual help styles.
This changeset ensures the styles for bar, highlight and contextual help always take into account the admin color scheme settings. Reviewed by joedolson. Props fabiankaegy, audrasjb, ozgursar, noruzzaman, shailu25, sandipsinh007, tusharaddweb, hbhalodia, amesplant, joedolson. Fixes #64744. See #64308. git-svn-id: https://develop.svn.wordpress.org/trunk@62145 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4318f22 commit c125357

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/wp-admin/css/common.css

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,13 @@ ul.striped > :nth-child(odd),
709709

710710
.bar {
711711
background-color: #f0f0f1;
712-
border-right-color: #4f94d4;
712+
border-right-color: var(--wp-admin-theme-color);
713713
}
714714

715715
/* Helper classes for plugins to leverage the active WordPress color scheme */
716716

717717
.highlight {
718-
background-color: #f0f6fc;
718+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
719719
color: #3c434a;
720720
}
721721

@@ -2029,7 +2029,7 @@ p.auto-update-status {
20292029
border: 1px solid #c3c4c7;
20302030
border-top: none;
20312031
border-bottom: none;
2032-
background: #f0f6fc;
2032+
background: rgba(var(--wp-admin-theme-color--rgb), 0.08);
20332033
}
20342034

20352035
#contextual-help-wrap.no-sidebar #contextual-help-back {
@@ -2073,11 +2073,22 @@ p.auto-update-status {
20732073
.contextual-help-tabs .active {
20742074
padding: 0;
20752075
margin: 0 -1px 0 0;
2076-
border-left: 2px solid #72aee6;
2077-
background: #f0f6fc;
2076+
border-left: 2px solid var(--wp-admin-theme-color);
2077+
background: color-mix(in srgb, var(--wp-admin-theme-color) 8%, white);
20782078
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 1px 0 rgba(0, 0, 0, 0.02);
20792079
}
20802080

2081+
.contextual-help-tabs .active::after {
2082+
content: "";
2083+
position: absolute;
2084+
top: 0;
2085+
right: -1px;
2086+
width: 2px;
2087+
height: 100%;
2088+
background: inherit;
2089+
z-index: 2;
2090+
}
2091+
20812092
.contextual-help-tabs .active a {
20822093
border-color: #c3c4c7;
20832094
color: #2c3338;

0 commit comments

Comments
 (0)