Themes: Clear floated theme cards on Themes page.

Also maintains visual separation for Broken Themes table on searches that
return no results.

See [36171] for `.wp-clearfix`.

Props 5um17, obenland, valendesigns, afercia.
Fixes #26646.


Built from https://develop.svn.wordpress.org/trunk@36270


git-svn-id: http://core.svn.wordpress.org/trunk@36237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2016-01-12 17:13:29 +00:00
parent d0c1f44d21
commit c0e903a040
9 changed files with 12 additions and 13 deletions

View File

@ -9,7 +9,6 @@
.theme-browser .themes { .theme-browser .themes {
clear: both; clear: both;
padding: 0 0 100px;
} }
.themes-php .wrap h1 { .themes-php .wrap h1 {
@ -1124,13 +1123,15 @@ p.no-themes {
font-size: 18px; font-size: 18px;
font-style: normal; font-style: normal;
margin: 0; margin: 0;
padding: 0; padding: 100px 0;
text-align: center; text-align: center;
display: none; display: none;
} }
body.no-results p.no-themes { body.no-results p.no-themes {
display: block; display: block;
} }
body.show-upload-theme p.no-themes { body.show-upload-theme p.no-themes {
display: none !important; display: none !important;
} }

View File

@ -9,7 +9,6 @@
.theme-browser .themes { .theme-browser .themes {
clear: both; clear: both;
padding: 0 0 100px;
} }
.themes-php .wrap h1 { .themes-php .wrap h1 {
@ -1124,13 +1123,15 @@ p.no-themes {
font-size: 18px; font-size: 18px;
font-style: normal; font-style: normal;
margin: 0; margin: 0;
padding: 0; padding: 100px 0;
text-align: center; text-align: center;
display: none; display: none;
} }
body.no-results p.no-themes { body.no-results p.no-themes {
display: block; display: block;
} }
body.show-upload-theme p.no-themes { body.show-upload-theme p.no-themes {
display: none !important; display: none !important;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,6 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append // Render and append
this.view.render(); this.view.render();
this.$el.empty().append( this.view.el ).addClass( 'rendered' ); this.$el.empty().append( this.view.el ).addClass( 'rendered' );
this.$el.append( '<br class="clear"/>' );
}, },
// Defines search element container // Defines search element container
@ -838,7 +837,7 @@ themes.view.Preview = themes.view.Details.extend({
// a wrapper that will hold all the theme elements // a wrapper that will hold all the theme elements
themes.view.Themes = wp.Backbone.View.extend({ themes.view.Themes = wp.Backbone.View.extend({
className: 'themes', className: 'themes wp-clearfix',
$overlay: $( 'div.theme-overlay' ), $overlay: $( 'div.theme-overlay' ),
// Number to keep track of scroll position // Number to keep track of scroll position

File diff suppressed because one or more lines are too long

View File

@ -195,7 +195,6 @@ include(ABSPATH . 'wp-admin/admin-header.php');
<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p> <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
<span class="spinner"></span> <span class="spinner"></span>
<br class="clear" />
<?php <?php
if ( $tab ) { if ( $tab ) {
/** /**

View File

@ -229,7 +229,7 @@ if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() )
?> ?>
<div class="theme-browser"> <div class="theme-browser">
<div class="themes"> <div class="themes wp-clearfix">
<?php <?php
/* /*
@ -282,7 +282,6 @@ foreach ( $themes as $theme ) :
<?php } ?> <?php } ?>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<br class="clear" />
</div> </div>
</div> </div>
<div class="theme-overlay"></div> <div class="theme-overlay"></div>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36269'; $wp_version = '4.5-alpha-36270';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.