WordPress.org

Make WordPress Core

Changeset 20064


Ignore:
Timestamp:
03/01/2012 11:55:09 PM (6 years ago)
Author:
nacin
Message:

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.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r19982 r20064  
    44764476}
    44774477
     4478h3.available-themes {
     4479    margin: 0 0 1em;
     4480    float: left;
     4481}
     4482
    44784483.available-theme {
    44794484    display: inline-block;
     
    45054510
    45064511#current-theme {
    4507     margin: 1em 0 1.5em;
     4512    padding: 0 0 .5em;
    45084513}
    45094514
    45104515#current-theme a {
    45114516    border-bottom: none;
    4512 }
    4513 
    4514 #current-theme h3 {
    4515     font-size: 17px;
    4516     font-weight: normal;
    4517     margin: 0;
    45184517}
    45194518
  • trunk/wp-admin/themes.php

    r20043 r20064  
    9898</h2>
    9999<?php $ct = wp_get_theme(); ?>
     100<div id="current-theme">
    100101<h3><?php _e( 'Current Theme' ); ?></h3>
    101 <div id="current-theme">
    102102<?php if ( $screenshot = $ct->get_screenshot() ) : ?>
    103103<img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
     
    155155?>
    156156
    157 <h3><?php _e('Available Themes'); ?></h3>
     157<h3 class="available-themes"><?php _e('Available Themes'); ?></h3>
    158158
    159159<?php if ( !empty( $_REQUEST['s'] ) || !empty( $_REQUEST['filter'] ) || $wp_list_table->has_items() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.