| 1 |
@use '../checkbox'; |
| 2 |
|
| 3 |
// The pagination group and view toggle wrap together as one end-pinned |
| 4 |
// cluster so narrow viewports never split them across rows. |
| 5 |
.tablenav .tablenav-end-group { |
| 6 |
display: flex; |
| 7 |
align-items: center; |
| 8 |
gap: 24px; |
| 9 |
margin-inline-start: auto; |
| 10 |
} |
| 11 |
|
| 12 |
.tablenav .tablenav-pages-nav { |
| 13 |
display: flex; |
| 14 |
align-items: center; |
| 15 |
gap: 8px; |
| 16 |
|
| 17 |
.tablenav-pages { |
| 18 |
display: flex; |
| 19 |
align-items: center; |
| 20 |
gap: 8px; |
| 21 |
margin: 0; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
// "Select all" control shown in the toolbar beside the bulk actions. |
| 26 |
.tablenav .tablenav-select-all { |
| 27 |
display: flex; |
| 28 |
align-items: center; |
| 29 |
gap: 8px; |
| 30 |
font-size: 14px; |
| 31 |
|
| 32 |
input[type='checkbox']='checkbox'] { |
| 33 |
@include checkbox.canonical; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
.snippets-search-area { |
| 38 |
display: flex; |
| 39 |
align-items: center; |
| 40 |
gap: 12px; |
| 41 |
|
| 42 |
search { |
| 43 |
flex: 1 1 auto; |
| 44 |
min-inline-size: 0; |
| 45 |
} |
| 46 |
|
| 47 |
.search-box { |
| 48 |
float: none; |
| 49 |
display: flex; |
| 50 |
align-items: center; |
| 51 |
gap: 8px; |
| 52 |
margin: 0; |
| 53 |
|
| 54 |
input[type='search']='search'] { |
| 55 |
flex: 1 1 auto; |
| 56 |
min-inline-size: 0; |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
// Inside the results toolbar the search area is fixed to the design width, |
| 62 |
// with the input flexing to fill the available space. |
| 63 |
.tablenav .snippets-search-area { |
| 64 |
inline-size: 237px; |
| 65 |
} |
| 66 |
|
| 67 |
.wrap .snippets-search-area input[type='search']='search'] { |
| 68 |
border-color: #e3e3e4; |
| 69 |
} |
| 70 |
|
| 71 |
// Tablet widths: let the search area grow to fill the remainder of its row |
| 72 |
// while the fixed-width selects keep their sizing and groups wrap naturally. |
| 73 |
@media (width <= 1024px) { |
| 74 |
.tablenav .snippets-search-area { |
| 75 |
inline-size: auto; |
| 76 |
flex: 1 1 237px; |
| 77 |
max-inline-size: 100%; |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
@media (width <= 782px) { |
| 82 |
p.search-box { |
| 83 |
float: inline-start; |
| 84 |
position: initial; |
| 85 |
margin-block: 1em 0; |
| 86 |
margin-inline: 0; |
| 87 |
block-size: auto; |
| 88 |
} |
| 89 |
|
| 90 |
// Mobile: the search area takes a full row of its own, and the action |
| 91 |
// groups stay visible (core admin hides .tablenav.top .actions here). |
| 92 |
.tablenav .snippets-search-area { |
| 93 |
flex-basis: 100%; |
| 94 |
} |
| 95 |
|
| 96 |
.tablenav .alignleft.actions { |
| 97 |
display: flex; |
| 98 |
} |
| 99 |
} |
| 100 |
|