Skip to content

Commit ad49361

Browse files
authored
Merge branch 'trunk' into add/context-for-scale
2 parents d51e4f4 + bd4e3c9 commit ad49361

5 files changed

Lines changed: 12 additions & 14 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ body {
7070

7171
#customize-save-button-wrapper {
7272
float: right;
73-
margin-top: 3px; /* Vertically center 40px button in 45px header */
73+
margin-top: 7px; /* Vertically center 32px button in 45px header */
7474
}
7575

7676
body:not(.ready) #customize-save-button-wrapper .save {
@@ -3000,9 +3000,8 @@ body.adding-widget .add-new-widget:before,
30003000
}
30013001

30023002
.wp-core-ui.wp-customizer .button {
3003-
min-height: 30px;
30043003
padding: 0 14px;
3005-
line-height: 2;
3004+
line-height: 2.14285714; /* 30px */
30063005
font-size: 14px;
30073006
vertical-align: middle;
30083007
}

src/wp-admin/css/list-tables.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ tr.inline-edit-row td {
11041104
}
11051105

11061106
.inline-edit-row select {
1107+
line-height: 2.14285714; /* 30px for 32px height with 14px font */
11071108
padding-right: 24px;
11081109
}
11091110

src/wp-admin/css/themes.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ body.full-overlay-active {
19671967

19681968
.theme-install-overlay .wp-full-overlay-header .button {
19691969
float: right;
1970-
margin: 3px 10px 0 0; /* Vertically center 40px button in 45px header */
1970+
margin: 7px 10px 0 0; /* Vertically center 32px button in 45px header */
19711971
}
19721972

19731973
.theme-install-overlay .wp-full-overlay-sidebar {
@@ -2053,8 +2053,6 @@ body.full-overlay-active {
20532053

20542054
.theme-install-overlay .wp-full-overlay-header .button {
20552055
font-size: 13px;
2056-
line-height: 2.15384615;
2057-
min-height: 30px;
20582056
}
20592057

20602058
.theme-browser .theme .theme-actions .button {

src/wp-admin/customize.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@
198198
<?php if ( $compatible_wp && $compatible_php ) : ?>
199199
<?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate &amp; Publish' ); ?>
200200
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
201-
<?php submit_button( $save_text, 'primary save', 'save', false ); ?>
202-
<button id="publish-settings" class="publish-settings button-primary button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button>
201+
<?php submit_button( $save_text, 'primary button-compact save', 'save', false ); ?>
202+
<button id="publish-settings" class="publish-settings button-primary button-compact button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button>
203203
</div>
204204
<?php else : ?>
205205
<?php $save_text = _x( 'Cannot Activate', 'theme' ); ?>
206206
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper disabled" >
207-
<button class="button button-primary disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
207+
<button class="button button-primary button-compact disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
208208
</div>
209209
<?php endif; ?>
210210
<span class="spinner"></span>

src/wp-admin/theme-install.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,18 @@
487487
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
488488
?>
489489
<# if ( ! data.active ) { #>
490-
<a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
490+
<a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
491491
<# } else { #>
492-
<button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
492+
<button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
493493
<# } #>
494494
<# } else { #>
495-
<a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
495+
<a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
496496
<# } #>
497497
<# } else { #>
498498
<# if ( data.compatible_wp && data.compatible_php ) { #>
499-
<a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
499+
<a href="{{ data.install_url }}" class="button button-primary button-compact theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
500500
<# } else { #>
501-
<a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
501+
<a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
502502
<# } #>
503503
<# } #>
504504
</div>

0 commit comments

Comments
 (0)