build/styles/media-utils
style-rtl.css
8.2 KB
5 months ago
style-rtl.min.css
4.2 KB
5 months ago
style.css
8.2 KB
5 months ago
style.min.css
4.2 KB
5 months ago
style.css in Gutenberg 23.2.0, at build/styles/media-utils/style.css
| 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__media-thumbnail { |
| 139 | display: flex; |
| 140 | align-items: center; |
| 141 | position: relative; |
| 142 | height: 100%; |
| 143 | } |
| 144 | |
| 145 | @media not (prefers-reduced-motion) { |
| 146 | .dataviews-media-field__media-thumbnail.is-loading img, .dataviews-media-field__media-thumbnail.is-loaded img { |
| 147 | transition: opacity 0.1s linear; |
| 148 | } |
| 149 | } |
| 150 | .dataviews-media-field__media-thumbnail.is-loading img { |
| 151 | opacity: 0; |
| 152 | } |
| 153 | |
| 154 | .dataviews-media-field__media-thumbnail.is-loaded img { |
| 155 | opacity: 1; |
| 156 | } |
| 157 | |
| 158 | .dataviews-media-field__media-thumbnail--image { |
| 159 | display: block; |
| 160 | width: 100%; |
| 161 | height: 100%; |
| 162 | object-fit: cover; |
| 163 | } |
| 164 | |
| 165 | .dataviews-media-field__media-thumbnail__stack { |
| 166 | color: #757575; |
| 167 | box-sizing: border-box; |
| 168 | width: 100%; |
| 169 | height: 100%; |
| 170 | } |
| 171 | |
| 172 | .dataviews-media-field__media-thumbnail--icon { |
| 173 | color: #757575; |
| 174 | fill: currentColor; |
| 175 | } |
| 176 | |
| 177 | .dataviews-media-field__media-thumbnail__filename { |
| 178 | box-sizing: border-box; |
| 179 | text-align: center; |
| 180 | padding: 0 16px; |
| 181 | width: 100%; |
| 182 | container-type: inline-size; |
| 183 | font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 184 | font-weight: 400; |
| 185 | font-size: 12px; |
| 186 | line-height: 16px; |
| 187 | } |
| 188 | |
| 189 | .dataviews-media-field__media-thumbnail__filename__truncate { |
| 190 | margin-top: 4px; |
| 191 | } |
| 192 | |
| 193 | @container (max-width: 90px) { |
| 194 | .dataviews-media-field__media-thumbnail__filename__truncate { |
| 195 | display: none !important; |
| 196 | } |
| 197 | } |
| 198 | /** |
| 199 | * SCSS Variables. |
| 200 | * |
| 201 | * Please use variables from this sheet to ensure consistency across the UI. |
| 202 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 203 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 204 | */ |
| 205 | /** |
| 206 | * Colors |
| 207 | */ |
| 208 | /** |
| 209 | * Fonts & basic variables. |
| 210 | */ |
| 211 | /** |
| 212 | * Typography |
| 213 | */ |
| 214 | /** |
| 215 | * Grid System. |
| 216 | * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 217 | */ |
| 218 | /** |
| 219 | * Radius scale. |
| 220 | */ |
| 221 | /** |
| 222 | * Elevation scale. |
| 223 | */ |
| 224 | /** |
| 225 | * Dimensions. |
| 226 | */ |
| 227 | /** |
| 228 | * Mobile specific styles |
| 229 | */ |
| 230 | /** |
| 231 | * Editor styles. |
| 232 | */ |
| 233 | /** |
| 234 | * Block & Editor UI. |
| 235 | */ |
| 236 | /** |
| 237 | * Block paddings. |
| 238 | */ |
| 239 | /** |
| 240 | * React Native specific. |
| 241 | * These variables do not appear to be used anywhere else. |
| 242 | */ |
| 243 | /** |
| 244 | * Typography |
| 245 | */ |
| 246 | /** |
| 247 | * Breakpoints & Media Queries |
| 248 | */ |
| 249 | /** |
| 250 | * Converts a hex value into the rgb equivalent. |
| 251 | * |
| 252 | * @param {string} hex - the hexadecimal value to convert |
| 253 | * @return {string} comma separated rgb values |
| 254 | */ |
| 255 | /** |
| 256 | * Long content fade mixin |
| 257 | * |
| 258 | * Creates a fading overlay to signify that the content is longer |
| 259 | * than the space allows. |
| 260 | */ |
| 261 | /** |
| 262 | * Breakpoint mixins |
| 263 | */ |
| 264 | /** |
| 265 | * Focus styles. |
| 266 | */ |
| 267 | /** |
| 268 | * Applies editor left position to the selector passed as argument |
| 269 | */ |
| 270 | /** |
| 271 | * Styles that are reused verbatim in a few places |
| 272 | */ |
| 273 | /** |
| 274 | * Allows users to opt-out of animations via OS-level preferences. |
| 275 | */ |
| 276 | /** |
| 277 | * Reset default styles for JavaScript UI based pages. |
| 278 | * This is a WP-admin agnostic reset |
| 279 | */ |
| 280 | /** |
| 281 | * Reset the WP Admin page styles for Gutenberg-like pages. |
| 282 | */ |
| 283 | /** |
| 284 | * Creates a checkerboard pattern background to indicate transparency. |
| 285 | * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 286 | */ |
| 287 | .media-upload-modal .components-modal__header { |
| 288 | padding-bottom: 8px; |
| 289 | } |
| 290 | .media-upload-modal .components-modal__frame.is-full-screen .components-modal__content { |
| 291 | margin-bottom: 0; |
| 292 | } |
| 293 | .media-upload-modal .components-modal__content { |
| 294 | padding: 0; |
| 295 | } |
| 296 | .media-upload-modal .dataviews-picker-wrapper > .dataviews__view-actions { |
| 297 | padding-top: 8px; |
| 298 | } |
| 299 | .media-upload-modal .media-upload-modal__footer { |
| 300 | position: sticky; |
| 301 | bottom: 0; |
| 302 | background-color: inherit; |
| 303 | z-index: 2; |
| 304 | } |
| 305 | .media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection { |
| 306 | visibility: hidden; |
| 307 | } |
| 308 | .media-upload-modal .media-upload-modal__footer .dataviews-footer { |
| 309 | position: static; |
| 310 | z-index: auto; |
| 311 | } |
| 312 | .media-upload-modal .media-upload-modal__upload-status { |
| 313 | position: absolute; |
| 314 | display: flex; |
| 315 | align-items: center; |
| 316 | gap: 8px; |
| 317 | background-color: var(--wp-dataviews-color-background, #fff); |
| 318 | left: 24px; |
| 319 | top: 1px; |
| 320 | bottom: 1px; |
| 321 | z-index: 1; |
| 322 | } |
| 323 | .media-upload-modal .media-upload-modal__upload-status .components-spinner { |
| 324 | width: 16px; |
| 325 | height: 16px; |
| 326 | margin: 0; |
| 327 | } |
| 328 | |
| 329 | .media-upload-modal__snackbar { |
| 330 | position: fixed; |
| 331 | bottom: 24px; |
| 332 | left: 0; |
| 333 | right: 0; |
| 334 | padding-inline: 16px; |
| 335 | box-sizing: border-box; |
| 336 | display: flex; |
| 337 | flex-direction: column; |
| 338 | pointer-events: none; |
| 339 | } |
| 340 | .media-upload-modal__snackbar .components-snackbar { |
| 341 | margin-inline: auto; |
| 342 | } |
| 343 | .media-upload-modal__snackbar { |
| 344 | z-index: 200000; |
| 345 | } |
| 346 | .media-upload-modal__snackbar > div { |
| 347 | transform: none !important; |
| 348 | transform-origin: 0 !important; |
| 349 | } |
| 350 | |
| 351 | .media-upload-modal__upload-status__popover .components-popover__content { |
| 352 | width: 320px; |
| 353 | } |
| 354 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header { |
| 355 | display: flex; |
| 356 | align-items: center; |
| 357 | justify-content: space-between; |
| 358 | padding: 12px 16px; |
| 359 | } |
| 360 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3 { |
| 361 | margin: 0; |
| 362 | font-size: 13px; |
| 363 | font-weight: 499; |
| 364 | } |
| 365 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list { |
| 366 | max-height: 200px; |
| 367 | overflow-y: auto; |
| 368 | margin: 0; |
| 369 | padding: 0 0 4px; |
| 370 | list-style: none; |
| 371 | } |
| 372 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item { |
| 373 | display: flex; |
| 374 | align-items: flex-start; |
| 375 | margin-bottom: 0; |
| 376 | justify-content: space-between; |
| 377 | gap: 8px; |
| 378 | padding: 8px 16px; |
| 379 | } |
| 380 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner { |
| 381 | flex-shrink: 0; |
| 382 | width: 16px; |
| 383 | height: 16px; |
| 384 | margin: 0; |
| 385 | } |
| 386 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename { |
| 387 | overflow: hidden; |
| 388 | text-overflow: ellipsis; |
| 389 | white-space: nowrap; |
| 390 | min-width: 0; |
| 391 | flex: 1; |
| 392 | font-size: 12px; |
| 393 | } |