Saner CSS for row actions - now we can just target `.row-actions` instead of both `.row-actions` and `.row-actions-visible`. CSS for `.row-actions-visible` remains for now due to usage in plugins. Visibility is controlled by toggling a `.visible` class. fixes #25403.

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


git-svn-id: http://core.svn.wordpress.org/trunk@25509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2013-09-24 01:54:09 +00:00
parent 9cf6436ff3
commit 9796e54574
3 changed files with 8 additions and 9 deletions

View File

@ -5546,7 +5546,7 @@ h2 .nav-tab {
list-style-type: disc;
}
.plugins .row-actions-visible {
.plugins .row-actions {
padding: 0;
}
@ -5578,12 +5578,12 @@ h2 .nav-tab {
}
.plugins .second,
.plugins .row-actions-visible {
.plugins .row-actions {
padding: 0 0 5px;
}
.plugins .update .second,
.plugins .update .row-actions-visible {
.plugins .update .row-actions {
padding-bottom: 0;
}
@ -6455,15 +6455,14 @@ p.pagenav {
padding: 2px 0 0;
}
.mobile .row-actions {
visibility: visible;
}
tr:hover .row-actions,
.mobile .row-actions,
.row-actions.visible,
div.comment-item:hover .row-actions {
visibility: visible;
}
/* deprecated */
.row-actions-visible {
padding: 2px 0 0;
}

File diff suppressed because one or more lines are too long

View File

@ -340,7 +340,7 @@ class WP_List_Table {
if ( !$action_count )
return '';
$out = '<div class="' . ( $always_visible ? 'row-actions-visible' : 'row-actions' ) . '">';
$out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';