Skip to content

Commit d392944

Browse files
committed
Themes: Remove background on active theme actions.
The background behind theme actions for the active theme was still visible when no actions were available, such as with a disabled customizer. Removing the background on this container improves the design of the active theme card by simplifying the layout and prevents the appearance of an error if no actions are available. Remove background and inset box shadow for the `.theme.active .theme-actions` container on the active theme. Props awetz583, huzaifaalmesbah, noruzzaman, shailu25, joedolson. Fixes #64720. git-svn-id: https://develop.svn.wordpress.org/trunk@61831 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e2dd6ec commit d392944

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/wp-admin/css/customize-controls.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,9 @@ p.customize-section-description {
17471747
.theme-browser .theme.active .theme-actions,
17481748
.wp-customizer .theme-browser .theme .theme-actions {
17491749
padding: 9px 15px;
1750+
}
1751+
1752+
.theme-browser .theme:not(.active) .theme-actions {
17501753
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
17511754
}
17521755

src/wp-admin/css/themes.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,15 @@ body.js .theme-browser.search-loading {
253253
}
254254

255255
.theme-browser .theme.active .theme-actions {
256-
background: rgba(44, 51, 56, 0.7);
256+
background: transparent;
257257
border-left: none;
258258
opacity: 1;
259259
}
260260

261+
.theme-browser .theme.active .theme-actions .button-primary {
262+
border-color: #fff;
263+
}
264+
261265
.theme-id-container {
262266
position: relative;
263267
}
@@ -269,6 +273,9 @@ body.js .theme-browser.search-loading {
269273
transform: translateY(-50%);
270274
right: 0;
271275
padding: 9px 12px;
276+
}
277+
278+
.theme-browser .theme:not(.active) .theme-actions {
272279
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
273280
}
274281

0 commit comments

Comments
 (0)