Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ code {
border-bottom-width: 0;
}

.widefat th,
.widefat tbody th,
.widefat td {
vertical-align: top;
}
Expand Down
63 changes: 52 additions & 11 deletions src/wp-admin/css/list-tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,34 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
border-left: 4px solid var(--wp-admin-theme-color);
}

@media screen and ( width < 782px ) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@media screen and ( width < 782px ) {
@media screen and (max-width: 782px) {

These styles probably belong within the existing max-width media query later in the file, but the query should include 782.

.plugins tr.active.plugin-update-tr + tr.inactive th,
.plugins tr.active.plugin-update-tr + tr.inactive td,
.plugins tr.active + tr.inactive th,
.plugins tr.active + tr.inactive td,
.plugins .inactive td,
.plugins .inactive th,
.plugins .active td,
.plugins .active th,
.plugin-install #the-list td,
.upgrade .plugins td,
.upgrade .plugins th {
box-shadow: none;
}
.plugins tr {
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.plugins .active th.check-column,
.plugins .active td.check-column,
.plugin-update-tr.active td {
border-left: 4px solid transparent;
}
.plugins tr.active,
.plugin-update-tr.active {
border-left: 4px solid var(--wp-admin-theme-color);
}
}

.wp-list-table.plugins .plugin-title,
.wp-list-table.plugins .theme-title {
padding-right: 12px;
Expand Down Expand Up @@ -1921,32 +1949,45 @@ div.action-links,
display: none;
}

.wp-list-table thead th.column-primary {
.wp-list-table th.column-primary {
width: 100%;
}

/* Checkboxes need to show */
.wp-list-table tr th.check-column,
.wp-list-table tr td.check-column {
display: table-cell;
.wp-list-table tr {
display: flex;
flex-wrap: wrap;
}

.wp-list-table thead th {
align-content: center;
}

.wp-list-table .check-column {
.wp-list-table td.check-column,
.wp-list-table th.check-column {
flex: 0 0 2.5em;
width: 2.5em;
}

.wp-list-table td.column-primary,
.wp-list-table th.column-primary {
flex: 1 1 0;
}

.wp-list-table tr td:nth-child(n+3) {
flex: 0 1 100%;
}

.wp-list-table .column-primary .toggle-row {
display: block;
}

.wp-list-table tbody th,
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
position: relative;
clear: both;
width: auto !important; /* needs to override some columns that are more specifically targeted */
}

.wp-list-table td.column-primary,
.wp-list-table th.column-primary {
.wp-list-table tbody th.column-primary {
padding-right: 50px; /* space for toggle button */
}

Expand All @@ -1955,7 +1996,7 @@ div.action-links,
padding: 3px 8px 3px 35%;
}

.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column)::before {
position: absolute;
left: 10px; /* match padding of regular table cell */
display: block;
Expand Down Expand Up @@ -2083,7 +2124,7 @@ div.action-links,
.row-actions span a,
.row-actions span .button-link {
display: inline-block;
padding: 4px 16px 4px 0;
padding: 4px 8px 4px 0;
font-size: 13px;
line-height: 1.5;
}
Expand Down
Loading