mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
List Tables: Arrange action items into a grid with extra space.
On small screens, list table actions were cramped. This makes it easy to press the wrong action by mistake. The items are now arranged into a grid and given extra room to create a larger tap-target. The plugins list table was excluded because it's current layout doesn't match the others, and we should add more space to this in a future commit. Props jobthomas, ryelle. Fixes #45024. Built from https://develop.svn.wordpress.org/trunk@43670 git-svn-id: http://core.svn.wordpress.org/trunk@43499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8617817fb4
commit
7081f6c8fa
@ -1864,6 +1864,30 @@ div.action-links,
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
/* Make row actions more easy to select on mobile */
|
||||
body:not(.plugins-php) .row-actions {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-columns: auto auto auto;
|
||||
grid-template-columns: auto auto auto;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.row-actions span {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.row-actions span a,
|
||||
.row-actions span .button-link {
|
||||
display: inline-block;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.row-actions span.approve:before,
|
||||
.row-actions span.unapprove:before {
|
||||
content: "| ";
|
||||
}
|
||||
|
||||
/* Quick Edit and Bulk Edit */
|
||||
#wpbody-content .quick-edit-row-post .inline-edit-col-left,
|
||||
#wpbody-content .quick-edit-row-post .inline-edit-col-right,
|
||||
@ -2102,6 +2126,12 @@ div.action-links,
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Drop row actions to two columns on a small screen */
|
||||
.row-actions:not(.plugins-php) {
|
||||
-ms-grid-columns: auto auto;
|
||||
grid-template-columns: auto auto;
|
||||
}
|
||||
|
||||
.tablenav-pages .tablenav-paging-text {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
2
wp-admin/css/list-tables-rtl.min.css
vendored
2
wp-admin/css/list-tables-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1864,6 +1864,30 @@ div.action-links,
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
/* Make row actions more easy to select on mobile */
|
||||
body:not(.plugins-php) .row-actions {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-columns: auto auto auto;
|
||||
grid-template-columns: auto auto auto;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.row-actions span {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.row-actions span a,
|
||||
.row-actions span .button-link {
|
||||
display: inline-block;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.row-actions span.approve:before,
|
||||
.row-actions span.unapprove:before {
|
||||
content: "| ";
|
||||
}
|
||||
|
||||
/* Quick Edit and Bulk Edit */
|
||||
#wpbody-content .quick-edit-row-post .inline-edit-col-left,
|
||||
#wpbody-content .quick-edit-row-post .inline-edit-col-right,
|
||||
@ -2102,6 +2126,12 @@ div.action-links,
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Drop row actions to two columns on a small screen */
|
||||
.row-actions:not(.plugins-php) {
|
||||
-ms-grid-columns: auto auto;
|
||||
grid-template-columns: auto auto;
|
||||
}
|
||||
|
||||
.tablenav-pages .tablenav-paging-text {
|
||||
float: left;
|
||||
width: 100%;
|
||||
|
2
wp-admin/css/list-tables.min.css
vendored
2
wp-admin/css/list-tables.min.css
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43669';
|
||||
$wp_version = '5.0-alpha-43670';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user