[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  /**
   2   * Colors
   3   */
   4  /**
   5   * Typography
   6   */
   7  /**
   8   * SCSS Variables.
   9   *
  10   * Please use variables from this sheet to ensure consistency across the UI.
  11   * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
  12   * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  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   * 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  .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
  97    min-height: 60px;
  98  }
  99  
 100  figure.wp-block-image:not(.wp-block) {
 101    margin: 0;
 102  }
 103  
 104  .wp-block-image {
 105    position: relative;
 106  }
 107  .wp-block-image.is-transient:not(.alignwide):not(.alignfull) {
 108    width: -moz-fit-content;
 109    width: fit-content;
 110  }
 111  .wp-block-image .is-applying img, .wp-block-image.is-transient img {
 112    opacity: 0.3;
 113  }
 114  .wp-block-image figcaption img {
 115    display: inline;
 116  }
 117  .wp-block-image .components-spinner {
 118    position: absolute;
 119    top: 50%;
 120    left: 50%;
 121    transform: translate(-50%, -50%);
 122    margin: 0;
 123  }
 124  
 125  .wp-block-image__placeholder {
 126    aspect-ratio: 4/3;
 127  }
 128  .wp-block-image__placeholder.has-illustration::before {
 129    background: #fff;
 130    opacity: 0.8;
 131  }
 132  .wp-block-image__placeholder .components-placeholder__illustration {
 133    opacity: 0.1;
 134  }
 135  
 136  .wp-block-image.is-selected .block-editor-media-placeholder {
 137    filter: none !important;
 138  }
 139  
 140  .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 141    position: absolute;
 142    left: 0;
 143    right: 0;
 144    margin: -1px 0;
 145  }
 146  @media (min-width: 600px) {
 147    .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 148      margin: -1px;
 149    }
 150  }
 151  
 152  [data-align=wide] > .wp-block-image img,
 153  [data-align=full] > .wp-block-image img {
 154    height: auto;
 155    width: 100%;
 156  }
 157  
 158  .wp-block[data-align=left] > .wp-block-image,
 159  .wp-block[data-align=center] > .wp-block-image,
 160  .wp-block[data-align=right] > .wp-block-image {
 161    display: table;
 162  }
 163  .wp-block[data-align=left] > .wp-block-image > figcaption,
 164  .wp-block[data-align=center] > .wp-block-image > figcaption,
 165  .wp-block[data-align=right] > .wp-block-image > figcaption {
 166    display: table-caption;
 167    caption-side: bottom;
 168  }
 169  
 170  .wp-block[data-align=left] > .wp-block-image {
 171    margin-right: 1em;
 172    margin-left: 0;
 173    margin-top: 0.5em;
 174    margin-bottom: 0.5em;
 175  }
 176  
 177  .wp-block[data-align=right] > .wp-block-image {
 178    margin-left: 1em;
 179    margin-right: 0;
 180    margin-top: 0.5em;
 181    margin-bottom: 0.5em;
 182  }
 183  
 184  .wp-block[data-align=center] > .wp-block-image {
 185    margin-left: auto;
 186    margin-right: auto;
 187    text-align: center;
 188  }
 189  
 190  .wp-block[data-align]:has(> .wp-block-image) {
 191    position: relative;
 192  }
 193  
 194  .wp-block-image__crop-area {
 195    position: relative;
 196    max-width: 100%;
 197    width: 100%;
 198    overflow: hidden;
 199  }
 200  .wp-block-image__crop-area .reactEasyCrop_Container {
 201    pointer-events: auto;
 202  }
 203  .wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image {
 204    border: none;
 205    border-radius: 0;
 206  }
 207  
 208  .wp-block-image__crop-icon {
 209    padding: 0 8px;
 210    min-width: 48px;
 211    display: flex;
 212    justify-content: center;
 213    align-items: center;
 214  }
 215  .wp-block-image__crop-icon svg {
 216    fill: currentColor;
 217  }
 218  
 219  .wp-block-image__zoom .components-popover__content {
 220    min-width: 260px;
 221    overflow: visible !important;
 222  }
 223  
 224  .wp-block-image__toolbar_content_textarea__container {
 225    padding: 8px;
 226  }
 227  
 228  .wp-block-image__toolbar_content_textarea {
 229    width: 250px;
 230  }


Generated : Sat Jul 25 08:20:20 2026 Cross-referenced by PHPXref