| 1 |
@use '../checkbox'; |
| 2 |
@use '../theme'; |
| 3 |
|
| 4 |
// The pagination group and view toggle wrap together as one end-pinned |
| 5 |
// cluster so narrow viewports never split them across rows. |
| 6 |
.tablenav .tablenav-end-group { |
| 7 |
display: flex; |
| 8 |
align-items: center; |
| 9 |
gap: 24px; |
| 10 |
margin-inline-start: auto; |
| 11 |
} |
| 12 |
|
| 13 |
.tablenav .tablenav-pages-nav { |
| 14 |
display: flex; |
| 15 |
align-items: center; |
| 16 |
gap: 8px; |
| 17 |
|
| 18 |
.tablenav-pages { |
| 19 |
display: flex; |
| 20 |
align-items: center; |
| 21 |
gap: 8px; |
| 22 |
margin: 0; |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
// "Select all" control shown in the toolbar beside the bulk actions. |
| 27 |
.tablenav .tablenav-select-all { |
| 28 |
display: flex; |
| 29 |
align-items: center; |
| 30 |
gap: 8px; |
| 31 |
font-size: 14px; |
| 32 |
|
| 33 |
input[type='checkbox']='checkbox'] { |
| 34 |
@include checkbox.canonical; |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
.snippets-search-area { |
| 39 |
display: flex; |
| 40 |
align-items: center; |
| 41 |
gap: 12px; |
| 42 |
|
| 43 |
search { |
| 44 |
flex: 1 1 auto; |
| 45 |
min-inline-size: 0; |
| 46 |
} |
| 47 |
|
| 48 |
.search-box { |
| 49 |
float: none; |
| 50 |
display: flex; |
| 51 |
align-items: center; |
| 52 |
gap: 8px; |
| 53 |
margin: 0; |
| 54 |
|
| 55 |
input[type='search']='search'] { |
| 56 |
flex: 1 1 auto; |
| 57 |
min-inline-size: 0; |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
// Inside the results toolbar the search area is fixed to the design width, |
| 63 |
// with the input flexing to fill the available space. |
| 64 |
.tablenav .snippets-search-area { |
| 65 |
inline-size: 237px; |
| 66 |
} |
| 67 |
|
| 68 |
.wrap .snippets-search-area input[type='search']='search'] { |
| 69 |
border-color: theme.$control-border; |
| 70 |
} |
| 71 |
|
| 72 |
// Tablet widths: let the search area grow to fill the remainder of its row |
| 73 |
// while the fixed-width selects keep their sizing and groups wrap naturally. |
| 74 |
@media (width <= 1024px) { |
| 75 |
.tablenav .snippets-search-area { |
| 76 |
inline-size: auto; |
| 77 |
flex: 1 1 237px; |
| 78 |
max-inline-size: 100%; |
| 79 |
} |
| 80 |
} |
| 81 |
|
| 82 |
@media (width <= 782px) { |
| 83 |
// Wide table columns scroll inside the results region instead of extending |
| 84 |
// the WordPress admin document horizontally. |
| 85 |
.snippets-list-view { |
| 86 |
max-inline-size: 100%; |
| 87 |
overflow-x: auto; |
| 88 |
overscroll-behavior-inline: contain; |
| 89 |
} |
| 90 |
|
| 91 |
p.search-box { |
| 92 |
float: inline-start; |
| 93 |
position: initial; |
| 94 |
margin-block: 1em 0; |
| 95 |
margin-inline: 0; |
| 96 |
block-size: auto; |
| 97 |
} |
| 98 |
|
| 99 |
|
| 100 |
// Mobile keeps the filters compact. Pagination remains below the results, |
| 101 |
// avoiding a second navigation cluster above the table. |
| 102 |
.tablenav.top .tablenav-pages-nav { |
| 103 |
display: none; |
| 104 |
} |
| 105 |
|
| 106 |
.tablenav.top .tablenav-end-group { |
| 107 |
margin-inline-start: 0; |
| 108 |
} |
| 109 |
|
| 110 |
.tablenav .snippets-search-area { |
| 111 |
flex: 0 1 20rem; |
| 112 |
inline-size: min(100%, 20rem); |
| 113 |
max-inline-size: 20rem; |
| 114 |
} |
| 115 |
|
| 116 |
.tablenav .alignleft.actions { |
| 117 |
display: flex; |
| 118 |
} |
| 119 |
} |
| 120 |
|