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.



git-svn-id: https://develop.svn.wordpress.org/trunk@36270 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2016-01-12 17:12:17 +00:00
parent 13896125d5
commit 12ac7b2998
4 changed files with 5 additions and 7 deletions

View File

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

View File

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

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>
<span class="spinner"></span>
<br class="clear" />
<?php
if ( $tab ) {
/**

View File

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