[ 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   * 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  .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
  87    min-height: 60px;
  88  }
  89  
  90  figure.wp-block-image:not(.wp-block) {
  91    margin: 0;
  92  }
  93  
  94  .wp-block-image {
  95    position: relative;
  96  }
  97  .wp-block-image .is-applying img, .wp-block-image.is-transient img {
  98    opacity: 0.3;
  99  }
 100  .wp-block-image figcaption img {
 101    display: inline;
 102  }
 103  .wp-block-image .components-spinner {
 104    position: absolute;
 105    top: 50%;
 106    left: 50%;
 107    transform: translate(-50%, -50%);
 108    margin: 0;
 109  }
 110  
 111  .wp-block-image__placeholder {
 112    aspect-ratio: 4/3;
 113  }
 114  .wp-block-image__placeholder.has-illustration::before {
 115    background: #fff;
 116    opacity: 0.8;
 117  }
 118  .wp-block-image__placeholder .components-placeholder__illustration {
 119    opacity: 0.1;
 120  }
 121  
 122  .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 123    position: absolute;
 124    left: 0;
 125    right: 0;
 126    margin: -1px 0;
 127  }
 128  @media (min-width: 600px) {
 129    .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 130      margin: -1px;
 131    }
 132  }
 133  
 134  [data-align=wide] > .wp-block-image img,
 135  [data-align=full] > .wp-block-image img {
 136    height: auto;
 137    width: 100%;
 138  }
 139  
 140  .wp-block[data-align=left] > .wp-block-image,
 141  .wp-block[data-align=center] > .wp-block-image,
 142  .wp-block[data-align=right] > .wp-block-image {
 143    display: table;
 144  }
 145  .wp-block[data-align=left] > .wp-block-image > figcaption,
 146  .wp-block[data-align=center] > .wp-block-image > figcaption,
 147  .wp-block[data-align=right] > .wp-block-image > figcaption {
 148    display: table-caption;
 149    caption-side: bottom;
 150  }
 151  
 152  .wp-block[data-align=left] > .wp-block-image {
 153    margin-right: 1em;
 154    margin-left: 0;
 155    margin-top: 0.5em;
 156    margin-bottom: 0.5em;
 157  }
 158  
 159  .wp-block[data-align=right] > .wp-block-image {
 160    margin-left: 1em;
 161    margin-right: 0;
 162    margin-top: 0.5em;
 163    margin-bottom: 0.5em;
 164  }
 165  
 166  .wp-block[data-align=center] > .wp-block-image {
 167    margin-left: auto;
 168    margin-right: auto;
 169    text-align: center;
 170  }
 171  
 172  .wp-block[data-align]:has(> .wp-block-image) {
 173    position: relative;
 174  }
 175  
 176  .wp-block-image__crop-area {
 177    position: relative;
 178    max-width: 100%;
 179    width: 100%;
 180    overflow: hidden;
 181  }
 182  .wp-block-image__crop-area .reactEasyCrop_Container {
 183    pointer-events: auto;
 184  }
 185  .wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image {
 186    border: none;
 187    border-radius: 0;
 188  }
 189  
 190  .wp-block-image__crop-icon {
 191    padding: 0 8px;
 192    min-width: 48px;
 193    display: flex;
 194    justify-content: center;
 195    align-items: center;
 196  }
 197  .wp-block-image__crop-icon svg {
 198    fill: currentColor;
 199  }
 200  
 201  .wp-block-image__zoom .components-popover__content {
 202    min-width: 260px;
 203    overflow: visible !important;
 204  }
 205  
 206  .wp-block-image__toolbar_content_textarea__container {
 207    padding: 8px;
 208  }
 209  
 210  .wp-block-image__toolbar_content_textarea {
 211    width: 250px;
 212  }


Generated : Wed Apr 15 08:20:10 2026 Cross-referenced by PHPXref