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 {
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

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

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
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

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>
<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>

View File

@ -4,7 +4,7 @@
*
* @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.