PluginProbe
Gutenberg / 23.3.0
Gutenberg v23.3.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / styles / media-utils / style.css

style.css in Gutenberg 23.3.0, at build/styles/media-utils/style.css

402 lines 8.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Typography
3 */
4 /**
5 * SCSS Variables.
6 *
7 * Please use variables from this sheet to ensure consistency across the UI.
8 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
9 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
10 */
11 /**
12 * Colors
13 */
14 /**
15 * Fonts & basic variables.
16 */
17 /**
18 * Typography
19 */
20 /**
21 * Grid System.
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23 */
24 /**
25 * Radius scale.
26 */
27 /**
28 * Elevation scale.
29 */
30 /**
31 * Dimensions.
32 */
33 /**
34 * Mobile specific styles
35 */
36 /**
37 * Editor styles.
38 */
39 /**
40 * Block & Editor UI.
41 */
42 /**
43 * Block paddings.
44 */
45 /**
46 * React Native specific.
47 * These variables do not appear to be used anywhere else.
48 */
49 /**
50 * Breakpoints & Media Queries
51 */
52 /**
53 * Converts a hex value into the rgb equivalent.
54 *
55 * @param {string} hex - the hexadecimal value to convert
56 * @return {string} comma separated rgb values
57 */
58 /**
59 * Long content fade mixin
60 *
61 * Creates a fading overlay to signify that the content is longer
62 * than the space allows.
63 */
64 /**
65 * Breakpoint mixins
66 */
67 /**
68 * Focus styles.
69 */
70 /**
71 * Applies editor left position to the selector passed as argument
72 */
73 /**
74 * Styles that are reused verbatim in a few places
75 */
76 /**
77 * Allows users to opt-out of animations via OS-level preferences.
78 */
79 /**
80 * Reset default styles for JavaScript UI based pages.
81 * This is a WP-admin agnostic reset
82 */
83 /**
84 * Reset the WP Admin page styles for Gutenberg-like pages.
85 */
86 /**
87 * Creates a checkerboard pattern background to indicate transparency.
88 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
89 */
90 .media-author-field__avatar {
91 flex-shrink: 0;
92 overflow: hidden;
93 width: 24px;
94 height: 24px;
95 align-items: center;
96 justify-content: left;
97 display: flex;
98 }
99
100 .media-author-field__avatar img {
101 width: 16px;
102 height: 16px;
103 object-fit: cover;
104 opacity: 1;
105 border-radius: 100%;
106 }
107
108 @media not (prefers-reduced-motion) {
109 .media-author-field__avatar.is-loading img, .media-author-field__avatar.is-loaded img {
110 transition: opacity 0.1s linear;
111 }
112 }
113 .media-author-field__avatar.is-loading img {
114 opacity: 0;
115 }
116
117 .media-author-field__avatar.is-loaded img {
118 opacity: 1;
119 }
120
121 .media-author-field__icon {
122 display: flex;
123 flex-shrink: 0;
124 width: 24px;
125 height: 24px;
126 }
127
128 .media-author-field__icon svg {
129 margin-left: -4px;
130 fill: currentColor;
131 }
132
133 .media-author-field__name {
134 text-overflow: ellipsis;
135 overflow: hidden;
136 }
137
138 .dataviews-media-field__filename {
139 display: inline-block;
140 max-inline-size: 15ch;
141 overflow: hidden;
142 text-overflow: ellipsis;
143 white-space: nowrap;
144 vertical-align: top;
145 }
146
147 .dataviews-media-field__media-thumbnail {
148 display: flex;
149 align-items: center;
150 position: relative;
151 height: 100%;
152 }
153
154 @media not (prefers-reduced-motion) {
155 .dataviews-media-field__media-thumbnail.is-loading img, .dataviews-media-field__media-thumbnail.is-loaded img {
156 transition: opacity 0.1s linear;
157 }
158 }
159 .dataviews-media-field__media-thumbnail.is-loading img {
160 opacity: 0;
161 }
162
163 .dataviews-media-field__media-thumbnail.is-loaded img {
164 opacity: 1;
165 }
166
167 .dataviews-media-field__media-thumbnail--image {
168 display: block;
169 width: 100%;
170 height: 100%;
171 object-fit: cover;
172 }
173
174 .dataviews-media-field__media-thumbnail__stack {
175 color: #757575;
176 box-sizing: border-box;
177 width: 100%;
178 height: 100%;
179 }
180
181 .dataviews-media-field__media-thumbnail--icon {
182 color: #757575;
183 fill: currentColor;
184 }
185
186 .dataviews-media-field__media-thumbnail__filename {
187 box-sizing: border-box;
188 text-align: center;
189 padding: 0 16px;
190 width: 100%;
191 container-type: inline-size;
192 font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
193 font-weight: 400;
194 font-size: 12px;
195 line-height: 16px;
196 }
197
198 .dataviews-media-field__media-thumbnail__filename__truncate {
199 margin-top: 4px;
200 }
201
202 @container (max-width: 90px) {
203 .dataviews-media-field__media-thumbnail__filename__truncate {
204 display: none !important;
205 }
206 }
207 /**
208 * SCSS Variables.
209 *
210 * Please use variables from this sheet to ensure consistency across the UI.
211 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
212 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
213 */
214 /**
215 * Colors
216 */
217 /**
218 * Fonts & basic variables.
219 */
220 /**
221 * Typography
222 */
223 /**
224 * Grid System.
225 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
226 */
227 /**
228 * Radius scale.
229 */
230 /**
231 * Elevation scale.
232 */
233 /**
234 * Dimensions.
235 */
236 /**
237 * Mobile specific styles
238 */
239 /**
240 * Editor styles.
241 */
242 /**
243 * Block & Editor UI.
244 */
245 /**
246 * Block paddings.
247 */
248 /**
249 * React Native specific.
250 * These variables do not appear to be used anywhere else.
251 */
252 /**
253 * Typography
254 */
255 /**
256 * Breakpoints & Media Queries
257 */
258 /**
259 * Converts a hex value into the rgb equivalent.
260 *
261 * @param {string} hex - the hexadecimal value to convert
262 * @return {string} comma separated rgb values
263 */
264 /**
265 * Long content fade mixin
266 *
267 * Creates a fading overlay to signify that the content is longer
268 * than the space allows.
269 */
270 /**
271 * Breakpoint mixins
272 */
273 /**
274 * Focus styles.
275 */
276 /**
277 * Applies editor left position to the selector passed as argument
278 */
279 /**
280 * Styles that are reused verbatim in a few places
281 */
282 /**
283 * Allows users to opt-out of animations via OS-level preferences.
284 */
285 /**
286 * Reset default styles for JavaScript UI based pages.
287 * This is a WP-admin agnostic reset
288 */
289 /**
290 * Reset the WP Admin page styles for Gutenberg-like pages.
291 */
292 /**
293 * Creates a checkerboard pattern background to indicate transparency.
294 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
295 */
296 .media-upload-modal .components-modal__header {
297 padding-bottom: 8px;
298 }
299 .media-upload-modal .components-modal__frame.is-full-screen .components-modal__content {
300 margin-bottom: 0;
301 }
302 .media-upload-modal .components-modal__content {
303 padding: 0;
304 }
305 .media-upload-modal .dataviews-picker-wrapper > .dataviews__view-actions {
306 padding-top: 8px;
307 }
308 .media-upload-modal .media-upload-modal__footer {
309 position: sticky;
310 bottom: 0;
311 background-color: inherit;
312 z-index: 2;
313 }
314 .media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection {
315 visibility: hidden;
316 }
317 .media-upload-modal .media-upload-modal__footer .dataviews-footer {
318 position: static;
319 z-index: auto;
320 }
321 .media-upload-modal .media-upload-modal__upload-status {
322 position: absolute;
323 display: flex;
324 align-items: center;
325 gap: 8px;
326 background-color: var(--wp-dataviews-color-background, #fff);
327 left: 24px;
328 top: 1px;
329 bottom: 1px;
330 z-index: 1;
331 }
332 .media-upload-modal .media-upload-modal__upload-status .components-spinner {
333 width: 16px;
334 height: 16px;
335 margin: 0;
336 }
337
338 .media-upload-modal__snackbar {
339 position: fixed;
340 bottom: 24px;
341 left: 0;
342 right: 0;
343 padding-inline: 16px;
344 box-sizing: border-box;
345 display: flex;
346 flex-direction: column;
347 pointer-events: none;
348 }
349 .media-upload-modal__snackbar .components-snackbar {
350 margin-inline: auto;
351 }
352 .media-upload-modal__snackbar {
353 z-index: 200000;
354 }
355 .media-upload-modal__snackbar > div {
356 transform: none !important;
357 transform-origin: 0 !important;
358 }
359
360 .media-upload-modal__upload-status__popover .components-popover__content {
361 width: 320px;
362 }
363 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header {
364 display: flex;
365 align-items: center;
366 justify-content: space-between;
367 padding: 12px 16px;
368 }
369 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3 {
370 margin: 0;
371 font-size: 13px;
372 font-weight: 499;
373 }
374 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list {
375 max-height: 200px;
376 overflow-y: auto;
377 margin: 0;
378 padding: 0 0 4px;
379 list-style: none;
380 }
381 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item {
382 display: flex;
383 align-items: flex-start;
384 margin-bottom: 0;
385 justify-content: space-between;
386 gap: 8px;
387 padding: 8px 16px;
388 }
389 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner {
390 flex-shrink: 0;
391 width: 16px;
392 height: 16px;
393 margin: 0;
394 }
395 .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename {
396 overflow: hidden;
397 text-overflow: ellipsis;
398 white-space: nowrap;
399 min-width: 0;
400 flex: 1;
401 font-size: 12px;
402 }