PluginProbe
Code Snippets / trunk
Code Snippets vtrunk
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
← All changes | css/common/list-table/_layout.scss +85 -28 3.10.0-beta.1 → trunk View file →
@@ -10,9 +10,9 @@
10 10 gap: 5px;
11 11 }
12 12
13 13 .dashicons-lock {
14 - color: #646970;
14 + color: var(--cs-color-text-muted);
15 15 opacity: 0.7;
16 16
17 17 &:hover {
18 18 opacity: 1;
@@ -34,9 +34,22 @@
34 34 }
35 35 }
36 36
37 37 .inactive-snippet {
38 - @include theme.link-colors(#579);
38 + a {
39 + color: #579;
40 +
41 + &:hover,
42 + &:active,
43 + &:focus {
44 + color: #819db9;
45 + box-shadow: none;
46 + }
47 +
48 + &:focus-visible {
49 + outline: 2px solid var(--cs-color-accent);
50 + }
51 + }
39 52 }
40 53
41 54 .paging-input {
42 55 display: inline-flex;
@@ -48,13 +61,31 @@
48 61 .check-column input[type='checkbox'] {
49 62 @include checkbox.canonical;
50 63 }
51 64
65 + // Shared cell rhythm for snippet and Cloud tables. Padding, rather than a
66 + // fixed row height, keeps multi-line values comfortable and uncropped.
67 + td,
68 + th {
69 + padding-block: 16px;
70 + padding-inline: 8px;
71 + }
72 +
73 + th:first-child,
74 + td:first-child {
75 + padding-inline-start: 16px;
76 + }
77 +
78 + th:last-child,
79 + td:last-child {
80 + padding-inline-end: 16px;
81 + }
82 +
52 83 // Shared horizontal rhythm for every snippet table, so the cloud table lines
53 84 // up with the snippets table rather than keeping the wider WordPress default.
54 85 th:not(.check-column),
55 86 td:not(.check-column) {
56 - padding-inline: 9px;
87 + padding-inline: 8px;
57 88 }
58 89
59 90 td.column-id {
60 91 text-align: center;
@@ -60,9 +91,9 @@
60 91 text-align: center;
61 92 }
62 93
63 94 tr {
64 - background: #fff;
95 + background: var(--cs-color-surface);
65 96 }
66 97
67 98 ol, ul {
68 99 margin-block: 0 1.5em;
@@ -86,9 +117,9 @@
86 117 margin: 0;
87 118 border: none;
88 119 background: none;
89 120 font: inherit;
90 - color: theme.$accent;
121 + color: var(--cs-color-accent);
91 122 cursor: pointer;
92 123 text-align: start;
93 124 overflow: hidden;
94 125 padding-block: 8px;
@@ -96,11 +127,11 @@
96 127 }
97 128
98 129 th.sortable .list-table-sort-button:focus-visible,
99 130 th.sorted .list-table-sort-button:focus-visible {
100 - outline: 2px solid theme.$accent;
131 + outline: 2px solid var(--cs-color-accent);
101 132 outline-offset: 2px;
102 - border-radius: 2px;
133 + border-radius: 5px;
103 134 }
104 135
105 136 // The type badge is wrapped in an unclassed link that lays out as an inline
106 137 // box shorter than the badge, so wrap the badge exactly and draw our own
@@ -105,23 +136,47 @@
105 136 // The type badge is wrapped in an unclassed link that lays out as an inline
106 137 // box shorter than the badge, so wrap the badge exactly and draw our own
107 138 // focus ring: the inherited one resolves to a transparent outline.
108 139 .column-type a {
109 - @include badges.badge-link;
140 + display: inline-flex;
141 + border-radius: 5px;
142 +
143 + &:focus {
144 + box-shadow: none;
145 + }
146 +
147 + &:focus-visible {
148 + outline: 2px solid var(--cs-color-accent);
149 + }
110 150 }
111 151
112 152 .row-actions {
113 - color: #646970;
153 + color: var(--cs-color-text-muted);
114 154 position: relative;
115 155 inset-inline-start: 0;
116 156
157 + // Anchor inline dashicons (e.g. the trash glyph on the Delete action) to
158 + // the surrounding text. WP's `.wp-core-ui .button .dashicons` rule sets
159 + // line-height: 1.9, which would drop the glyph below the link baseline,
160 + // and the icon should inherit the link's colour rather than link blue.
161 + .button .dashicons {
162 + line-height: 1;
163 + vertical-align: text-bottom;
164 + color: inherit;
165 + }
166 +
117 167 a:not(.delete) {
118 - color: theme.$accent;
168 + color: var(--cs-color-accent);
119 169
120 170 &:hover,
121 171 &:focus {
122 - color: theme.$accent-hover;
172 + color: var(--cs-color-accent-hover);
173 + box-shadow: none;
123 174 }
175 +
176 + &:focus-visible {
177 + outline: 2px solid var(--cs-color-accent);
178 + }
124 179 }
125 180
126 181 // Row-action buttons render as plain inline links. On WP 7.0 the generic `.button`
127 182 // compatibility styling would otherwise give them a fill, border, radius and fixed
@@ -136,10 +191,14 @@
136 191 background: none;
137 192 box-shadow: none;
138 193 line-height: inherit;
139 194 font-weight: 400;
140 - color: theme.$accent;
195 + color: var(--cs-color-accent);
141 196
197 + &:focus {
198 + outline: 2px solid var(--cs-color-accent);
199 + }
200 +
142 201 &:hover:not(:disabled),
143 202 &:focus:not(:disabled) {
144 203 background: none;
145 204 border: 0;
@@ -147,13 +206,13 @@
147 206 }
148 207
149 208 &:hover:not(:disabled, .delete, .snippet-cloud-update),
150 209 &:focus:not(:disabled, .delete, .snippet-cloud-update) {
151 - color: theme.$accent-hover;
210 + color: var(--cs-color-accent-hover);
152 211 }
153 212
154 213 &.delete {
155 - color: #b32d2e;
214 + color: var(--cs-color-error);
156 215 }
157 216
158 217 &.snippet-cloud-update {
159 218 color: #ff851b;
@@ -173,13 +232,13 @@
173 232 }
174 233 }
175 234
176 235 .snippet-row-action-error {
177 - color: #b32d2e;
236 + color: var(--cs-color-error);
178 237 }
179 238
180 239 .delete.disabled {
181 - color: #a7aaad;
240 + color: var(--cs-color-text-disabled);
182 241 cursor: not-allowed;
183 242 pointer-events: none;
184 243 }
185 244 }
@@ -202,10 +261,10 @@
202 261 tfoot th.check-column,
203 262 tfoot td.check-column,
204 263 tbody th.check-column,
205 264 tbody td.check-column {
206 - padding-block: 0;
207 - padding-inline-start: 9px;
265 + padding-block: 16px;
266 + padding-inline-start: 8px;
208 267 vertical-align: middle;
209 268 }
210 269
211 270 // Line every checkbox up on the same starting edge. Rows flagged as active
@@ -222,9 +281,8 @@
222 281 }
223 282
224 283 .active-snippet, .inactive-snippet {
225 284 td, th {
226 - padding: 10px 9px;
227 285 box-shadow: inset 0 -1px 0 rgb(0 0 0 / 10%);
228 286 vertical-align: middle;
229 287 }
230 288 }
@@ -235,9 +293,9 @@
235 293 box-shadow: inset 0 1px 0 rgb(0 0 0 / 2%), inset 0 -1px 0 #e1e1e1;
236 294 }
237 295
238 296 .delete {
239 - color: #b32d2e;
297 + color: var(--cs-color-error);
240 298 }
241 299
242 300 a.delete:not(.disabled) {
243 301 &:hover, &:focus, &:active {
@@ -260,16 +318,15 @@
260 318 display: block;
261 319 text-align: start;
262 320 }
263 321
264 - // Snippet names always stay on a single line, truncating gracefully;
265 - // the full name is exposed through the title attribute.
266 - td.column-name > .snippet-name {
267 - display: block;
322 + // Names and descriptions are both governed by the "Truncate long snippet
323 + // names and descriptions" Screen Option. When it is off, the name group may
324 + // take the full cell; when on, it is capped and the name inside it
325 + // truncates, with the full value available through the title attribute.
326 + &.truncate-row-values td.column-name > .snippet-name-group {
327 + display: flex;
268 328 max-inline-size: min(15rem, 30vw);
269 - white-space: nowrap;
270 - overflow: hidden;
271 - text-overflow: ellipsis;
272 329 }
273 330
274 331 &.truncate-row-values td.column-desc .snippet-description-content {
275 332 display: block;
@@ -311,8 +368,8 @@
311 368 li + li::before {
312 369 content: '';
313 370 inline-size: 1px;
314 371 block-size: 13px;
315 - background: theme.$control-border;
372 + background: var(--cs-color-border);
316 373 }
317 374 }
318 375 }