diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css
index 4bd63832f9..3548f12e9c 100644
a
|
b
|
p.customize-section-description { |
2317 | 2317 | |
2318 | 2318 | .wp-customizer .theme-overlay .theme-actions { |
2319 | 2319 | text-align: right; /* Because there're only one or two actions, match the UI pattern of media modals and right-align the action. */ |
2320 | | padding: 10px 25px; |
| 2320 | padding: 10px 25px 5px; |
2321 | 2321 | background: #f0f0f1; |
2322 | 2322 | border-top: 1px solid #dcdcde; |
2323 | 2323 | } |
… |
… |
p.customize-section-description { |
2326 | 2326 | margin-left: 8px; |
2327 | 2327 | } |
2328 | 2328 | |
2329 | | .control-panel-themes .theme-actions .delete-theme { |
2330 | | left: 15px; /* these override themes.css on mobile */ |
2331 | | right: auto; |
2332 | | bottom: auto; |
2333 | | position: absolute; |
2334 | | } |
2335 | | |
2336 | 2329 | .modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { |
2337 | 2330 | overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */ |
2338 | 2331 | } |
diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
index c1a1eb22dd..207f885417 100644
a
|
b
|
body.folded .theme-browser ~ .theme-overlay .theme-wrap { |
506 | 506 | z-index: 30; |
507 | 507 | box-sizing: border-box; |
508 | 508 | border-top: 1px solid #f0f0f1; |
| 509 | display: flex; |
| 510 | justify-content: center; |
| 511 | gap: 5px; |
509 | 512 | } |
510 | 513 | |
511 | | .theme-overlay .theme-actions a { |
| 514 | .theme-overlay .theme-actions .button { |
512 | 515 | margin-right: 5px; |
513 | 516 | margin-bottom: 5px; |
514 | 517 | } |
… |
… |
body.folded .theme-browser ~ .theme-overlay .theme-wrap { |
521 | 524 | |
522 | 525 | .broken-themes a.delete-theme, |
523 | 526 | .theme-overlay .theme-actions .delete-theme { |
524 | | color: #d63638; |
| 527 | color: #b32d2e; |
525 | 528 | text-decoration: none; |
526 | 529 | border-color: transparent; |
527 | 530 | box-shadow: none; |
528 | 531 | background: transparent; |
529 | 532 | } |
530 | 533 | |
531 | | .theme-overlay .theme-actions .delete-theme { |
532 | | position: absolute; |
533 | | right: 10px; |
534 | | bottom: 5px; |
535 | | } |
536 | | |
537 | 534 | .broken-themes a.delete-theme:hover, |
538 | 535 | .broken-themes a.delete-theme:focus, |
539 | 536 | .theme-overlay .theme-actions .delete-theme:hover, |
540 | 537 | .theme-overlay .theme-actions .delete-theme:focus { |
541 | | background: #d63638; |
| 538 | background: #b32d2e; |
542 | 539 | color: #fff; |
543 | | border-color: #d63638; |
| 540 | border-color: #b32d2e; |
| 541 | box-shadow: 0 0 0 1px #b32d2e; |
544 | 542 | } |
545 | 543 | |
546 | 544 | .theme-overlay .theme-actions .active-theme, |
diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php
index 6bb450ee1b..ef3aad5bbe 100644
a
|
b
|
function customize_themes_print_templates() { |
1058 | 1058 | <# if ( data.active ) { #> |
1059 | 1059 | <button type="button" class="button button-primary customize-theme"><?php _e( 'Customize' ); ?></button> |
1060 | 1060 | <# } else if ( 'installed' === data.type ) { #> |
1061 | | <?php if ( current_user_can( 'delete_themes' ) ) { ?> |
1062 | | <# if ( data.actions && data.actions['delete'] ) { #> |
1063 | | <a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a> |
1064 | | <# } #> |
1065 | | <?php } ?> |
1066 | | |
| 1061 | <div class="theme-inactive-actions"> |
1067 | 1062 | <# if ( data.blockTheme ) { #> |
1068 | 1063 | <?php |
1069 | 1064 | /* translators: %s: Theme name. */ |
… |
… |
function customize_themes_print_templates() { |
1079 | 1074 | <button class="button button-primary disabled"><?php _e( 'Live Preview' ); ?></button> |
1080 | 1075 | <# } #> |
1081 | 1076 | <# } #> |
| 1077 | </div> |
| 1078 | <?php if ( current_user_can( 'delete_themes' ) ) { ?> |
| 1079 | <# if ( data.actions && data.actions['delete'] ) { #> |
| 1080 | <a href="{{{ data.actions['delete'] }}}" data-slug="{{ data.id }}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a> |
| 1081 | <# } #> |
| 1082 | <?php } ?> |
1082 | 1083 | <# } else { #> |
1083 | 1084 | <# if ( data.compatibleWP && data.compatiblePHP ) { #> |
1084 | 1085 | <button type="button" class="button theme-install" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></button> |
diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
index d5d8c150e3..80486748f4 100644
a
|
b
|
function wp_theme_auto_update_setting_template() { |
1221 | 1221 | /* translators: %s: Theme name. */ |
1222 | 1222 | $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); |
1223 | 1223 | ?> |
1224 | | <# if ( data.actions.activate ) { #> |
1225 | | <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
1226 | | <# } #> |
1227 | 1224 | <# if ( ! data.blockTheme ) { #> |
1228 | 1225 | <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a> |
1229 | 1226 | <# } #> |
| 1227 | <# if ( data.actions.activate ) { #> |
| 1228 | <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
| 1229 | <# } #> |
1230 | 1230 | <# } else { #> |
1231 | 1231 | <?php |
1232 | 1232 | /* translators: %s: Theme name. */ |
1233 | 1233 | $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); |
1234 | 1234 | ?> |
1235 | | <# if ( data.actions.activate ) { #> |
1236 | | <a class="button disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a> |
1237 | | <# } #> |
1238 | 1235 | <# if ( ! data.blockTheme ) { #> |
1239 | 1236 | <a class="button button-primary hide-if-no-customize disabled"><?php _e( 'Live Preview' ); ?></a> |
1240 | 1237 | <# } #> |
| 1238 | <# if ( data.actions.activate ) { #> |
| 1239 | <a class="button disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a> |
| 1240 | <# } #> |
1241 | 1241 | <# } #> |
1242 | 1242 | </div> |
1243 | 1243 | |
diff --git a/src/wp-includes/css/buttons.css b/src/wp-includes/css/buttons.css
index 6da6da51e0..787efacab6 100644
a
|
b
|
TABLE OF CONTENTS: |
385 | 385 | vertical-align: inherit; |
386 | 386 | } |
387 | 387 | |
| 388 | .wp-customizer .theme-overlay .theme-actions .button { |
| 389 | margin-bottom: 5px; |
| 390 | } |
| 391 | |
388 | 392 | .media-modal-content .media-toolbar-primary .media-button { |
389 | 393 | margin-top: 10px; |
390 | 394 | margin-left: 5px; |