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


Generated : Sun Jul 5 08:20:13 2026 Cross-referenced by PHPXref