List tables: Ensure the no items message appears on narrow screens.

fixes #32900. see #32395.

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


git-svn-id: http://core.svn.wordpress.org/trunk@33069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-07-06 23:30:24 +00:00
parent 3faebf40a6
commit 6fff730706
5 changed files with 19 additions and 11 deletions

View File

@ -1733,10 +1733,14 @@ div.action-links,
.wp-list-table th:not(.column-primary),
.wp-list-table th:not(.column-primary),
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary):not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
display: none;
}
.wp-list-table thead th.column-primary {
width: 100%;
}
/* Checkboxes need to show */
.wp-list-table tr th.check-column {
display: table-cell;
@ -1747,7 +1751,7 @@ div.action-links,
display: block;
}
.wp-list-table tr:not(.inline-edit-row) td:not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
position: relative;
clear: both;
display: block;
@ -1758,11 +1762,11 @@ div.action-links,
padding-left: 50px; /* space for toggle button */
}
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary):not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
padding: 3px 35% 3px 8px;
}
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary)::before {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
position: absolute;
right: 10px; /* match padding of regular table cell */
display: block;

View File

@ -1733,10 +1733,14 @@ div.action-links,
.wp-list-table th:not(.column-primary),
.wp-list-table th:not(.column-primary),
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary):not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
display: none;
}
.wp-list-table thead th.column-primary {
width: 100%;
}
/* Checkboxes need to show */
.wp-list-table tr th.check-column {
display: table-cell;
@ -1747,7 +1751,7 @@ div.action-links,
display: block;
}
.wp-list-table tr:not(.inline-edit-row) td:not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
position: relative;
clear: both;
display: block;
@ -1758,11 +1762,11 @@ div.action-links,
padding-right: 50px; /* space for toggle button */
}
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary):not(.check-column) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
padding: 3px 8px 3px 35%;
}
.wp-list-table tr:not(.inline-edit-row) td:not(.column-primary)::before {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
position: absolute;
left: 10px; /* match padding of regular table cell */
display: block;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta1-33097';
$wp_version = '4.3-beta1-33098';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.