PluginProbe
Code Snippets / 3.10.0
Code Snippets v3.10.0
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / common / list-table / _pagination.scss

_pagination.scss in Code Snippets 3.10.0, at css/common/list-table/_pagination.scss

120 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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