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: https://develop.svn.wordpress.org/trunk@20064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-03-01 23:55:09 +00:00
parent 339251c75c
commit f2dfcad422
2 changed files with 8 additions and 9 deletions

View File

@ -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;
}

View File

@ -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() ) : ?>