[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/gallery/ -> editor.css (source)

   1  /**
   2   * Breakpoints & Media Queries
   3   */
   4  /**
   5   * Colors
   6   */
   7  /**
   8   * Typography
   9   */
  10  /**
  11   * SCSS Variables.
  12   *
  13   * Please use variables from this sheet to ensure consistency across the UI.
  14   * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
  15   * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  16   */
  17  /**
  18   * Fonts & basic variables.
  19   */
  20  /**
  21   * Typography
  22   */
  23  /**
  24   * Grid System.
  25   * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
  26   */
  27  /**
  28   * Radius scale.
  29   */
  30  /**
  31   * Elevation scale.
  32   */
  33  /**
  34   * Dimensions.
  35   */
  36  /**
  37   * Mobile specific styles
  38   */
  39  /**
  40   * Editor styles.
  41   */
  42  /**
  43   * Block & Editor UI.
  44   */
  45  /**
  46   * Block paddings.
  47   */
  48  /**
  49   * React Native specific.
  50   * These variables do not appear to be used anywhere else.
  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   * Standard focus rings for the WordPress Design System.
  72   *
  73   * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
  74   * e.g. `&:focus { @include outset-ring__focus(); }`.
  75   */
  76  /**
  77   * Applies editor left position to the selector passed as argument
  78   */
  79  /**
  80   * Styles that are reused verbatim in a few places
  81   */
  82  /**
  83   * Allows users to opt-out of animations via OS-level preferences.
  84   */
  85  /**
  86   * Reset default styles for JavaScript UI based pages.
  87   * This is a WP-admin agnostic reset
  88   */
  89  /**
  90   * Reset the WP Admin page styles for Gutenberg-like pages.
  91   */
  92  /**
  93   * Creates a checkerboard pattern background to indicate transparency.
  94   * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
  95   */
  96  :root :where(figure.wp-block-gallery.is-layout-flex) {
  97    display: block;
  98  }
  99  :root :where(figure.wp-block-gallery.is-layout-flex) > .blocks-gallery-caption {
 100    flex: 0 0 100%;
 101  }
 102  
 103  :root :where(.wp-block-gallery.is-layout-grid) > .blocks-gallery-caption,
 104  :root :where(.wp-block-gallery.is-layout-grid) > .components-placeholder,
 105  :root :where(.wp-block-gallery.is-layout-grid) > .block-editor-media-placeholder {
 106    grid-column: 1/-1;
 107  }
 108  
 109  :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label {
 110    display: none;
 111  }
 112  :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
 113    margin-bottom: 0;
 114  }
 115  :root :where(figure.wp-block-gallery) .block-editor-media-placeholder {
 116    margin: 0;
 117  }
 118  :root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label {
 119    display: flex;
 120  }
 121  :root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption {
 122    z-index: 2;
 123  }
 124  :root :where(figure.wp-block-gallery) .components-spinner {
 125    position: absolute;
 126    top: 50%;
 127    left: 50%;
 128    margin-top: -9px;
 129    margin-left: -9px;
 130  }
 131  
 132  /**
 133   * Gallery inspector controls settings.
 134   */
 135  .gallery-settings-buttons .components-button:first-child {
 136    margin-right: 8px;
 137  }
 138  
 139  /**
 140   * Deprecated css past this point. This can be removed once all galleries are migrated
 141   * to V2.
 142   */
 143  .blocks-gallery-item figure:not(.is-selected):focus,
 144  .blocks-gallery-item img:focus {
 145    outline: none;
 146  }
 147  .blocks-gallery-item figure.is-selected::before {
 148    box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
 149    content: "";
 150    outline: 2px solid transparent;
 151    position: absolute;
 152    top: 0;
 153    right: 0;
 154    bottom: 0;
 155    left: 0;
 156    z-index: 1;
 157    pointer-events: none;
 158  }
 159  .blocks-gallery-item figure.is-transient img {
 160    opacity: 0.3;
 161  }
 162  .blocks-gallery-item .block-editor-media-placeholder {
 163    margin: 0;
 164    height: 100%;
 165  }
 166  .blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
 167    display: flex;
 168  }
 169  
 170  .wp-block-gallery ul.blocks-gallery-grid {
 171    padding: 0;
 172    margin: 0;
 173  }
 174  
 175  @media (min-width: 600px) {
 176    .wp-block-update-gallery-modal {
 177      max-width: 480px;
 178    }
 179  }
 180  
 181  .wp-block-update-gallery-modal-buttons {
 182    display: flex;
 183    justify-content: flex-end;
 184    gap: 12px;
 185  }
 186  
 187  .wp-block-gallery__source-settings {
 188    grid-column: 1/-1;
 189    display: flex;
 190    flex-direction: column;
 191    gap: 8px;
 192  }
 193  .wp-block-gallery__source-settings .wp-block-gallery__source-description {
 194    margin: 0;
 195    color: #757575;
 196    font-size: 12px;
 197  }
 198  .wp-block-gallery__source-settings .components-button {
 199    justify-content: center;
 200    width: 100%;
 201  }
 202  
 203  .wp-block-gallery__source-notice {
 204    grid-column: 1/-1;
 205    margin: 0;
 206  }


Generated : Fri Sep 25 08:20:31 2026 Cross-referenced by PHPXref