[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/css/dist/media-utils/ -> style.css (source)

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


Generated : Wed Sep 16 08:20:31 2026 Cross-referenced by PHPXref