| 1 |
@use '../theme'; |
| 2 |
|
| 3 |
.tablenav { |
| 4 |
margin: 16px 0; |
| 5 |
display: flex; |
| 6 |
align-items: center; |
| 7 |
flex-wrap: wrap; |
| 8 |
|
| 9 |
// The row gap only shows once controls wrap onto a second row (see the |
| 10 |
// tablet collapse below, where the selection + pagination cluster drops to |
| 11 |
// its own row); the 18px column gap spaces the left cluster on one line. |
| 12 |
gap: 12px 18px; |
| 13 |
} |
| 14 |
|
| 15 |
/* WP 7.0 changes the default admin link colour to the modern blue. Pin the classic accent on active rows (names and |
| 16 |
row-action links) so links keep their original colour; inactive rows are handled by the muted link-colors mixin, |
| 17 |
and the trash button keeps its dark red from the `.delete` rules. */ |
| 18 |
.wp-list-table .active-snippet a { |
| 19 |
color: var(--cs-color-accent); |
| 20 |
|
| 21 |
&:hover, |
| 22 |
&:focus { |
| 23 |
color: var(--cs-color-accent-hover); |
| 24 |
box-shadow: none; |
| 25 |
} |
| 26 |
|
| 27 |
&:focus-visible { |
| 28 |
outline: 2px solid var(--cs-color-accent); |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
/* Status filter links (All | Active | Inactive | …): the current view reads as plain |
| 33 |
body text while the remaining views are accent-coloured links; every count stays |
| 34 |
in the body-text colour regardless of its link state. */ |
| 35 |
/* stylelint-disable no-descending-specificity -- unrelated element; ordering is fine. */ |
| 36 |
.subsubsub a.current { |
| 37 |
color: var(--cs-color-text); |
| 38 |
} |
| 39 |
|
| 40 |
.subsubsub a:not(.current) { |
| 41 |
color: var(--cs-color-accent); |
| 42 |
|
| 43 |
&:hover, |
| 44 |
&:focus { |
| 45 |
color: var(--cs-color-accent-hover); |
| 46 |
box-shadow: none; |
| 47 |
} |
| 48 |
|
| 49 |
&:focus { |
| 50 |
outline: 2px solid var(--cs-color-accent); |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
.snippets-table-toolbar .subsubsub a .count { |
| 55 |
color: var(--cs-color-text); |
| 56 |
} |
| 57 |
/* stylelint-enable no-descending-specificity */ |
| 58 |
|
| 59 |
.wp-core-ui .button.clear-filters { |
| 60 |
vertical-align: baseline; |
| 61 |
} |
| 62 |
|
| 63 |
.snippet-type-description { |
| 64 |
border-block-end: 1px solid var(--cs-color-border); |
| 65 |
margin: 0; |
| 66 |
padding-block: 1em; |
| 67 |
padding-inline: 0; |
| 68 |
} |
| 69 |
|