Line up elements on themes.php. Line up 'Available Themes' header and search/feature form. Switch to padding instead of margin for #current-theme to prevent margin-uncollapse jitters when animating the feature filter. Move 'Current Theme' inside #current-theme so it is hidden by the feature filter. see #20147.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db15a20fb1
commit
d4005958ec
|
@ -4475,6 +4475,11 @@ span.imgedit-scale-warn {
|
|||
height:auto;
|
||||
}
|
||||
|
||||
h3.available-themes {
|
||||
margin: 0 0 1em;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.available-theme {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
|
@ -4504,19 +4509,13 @@ span.imgedit-scale-warn {
|
|||
}
|
||||
|
||||
#current-theme {
|
||||
margin: 1em 0 1.5em;
|
||||
padding: 0 0 .5em;
|
||||
}
|
||||
|
||||
#current-theme a {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#current-theme h3 {
|
||||
font-size: 17px;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#current-theme .theme-description {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
|
|
@ -97,8 +97,8 @@ if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
|||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php $ct = wp_get_theme(); ?>
|
||||
<h3><?php _e( 'Current Theme' ); ?></h3>
|
||||
<div id="current-theme">
|
||||
<h3><?php _e( 'Current Theme' ); ?></h3>
|
||||
<?php if ( $screenshot = $ct->get_screenshot() ) : ?>
|
||||
<img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -154,7 +154,7 @@ if ( ! current_user_can( 'switch_themes' ) ) {
|
|||
}
|
||||
?>
|
||||
|
||||
<h3><?php _e('Available Themes'); ?></h3>
|
||||
<h3 class="available-themes"><?php _e('Available Themes'); ?></h3>
|
||||
|
||||
<?php if ( !empty( $_REQUEST['s'] ) || !empty( $_REQUEST['filter'] ) || $wp_list_table->has_items() ) : ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue