[ 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  .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 127    position: absolute;
 128    left: 0;
 129    right: 0;
 130    margin: -1px 0;
 131  }
 132  @media (min-width: 600px) {
 133    .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
 134      margin: -1px;
 135    }
 136  }
 137  
 138  [data-align=wide] > .wp-block-image img,
 139  [data-align=full] > .wp-block-image img {
 140    height: auto;
 141    width: 100%;
 142  }
 143  
 144  .wp-block[data-align=left] > .wp-block-image,
 145  .wp-block[data-align=center] > .wp-block-image,
 146  .wp-block[data-align=right] > .wp-block-image {
 147    display: table;
 148  }
 149  .wp-block[data-align=left] > .wp-block-image > figcaption,
 150  .wp-block[data-align=center] > .wp-block-image > figcaption,
 151  .wp-block[data-align=right] > .wp-block-image > figcaption {
 152    display: table-caption;
 153    caption-side: bottom;
 154  }
 155  
 156  .wp-block[data-align=left] > .wp-block-image {
 157    margin-right: 1em;
 158    margin-left: 0;
 159    margin-top: 0.5em;
 160    margin-bottom: 0.5em;
 161  }
 162  
 163  .wp-block[data-align=right] > .wp-block-image {
 164    margin-left: 1em;
 165    margin-right: 0;
 166    margin-top: 0.5em;
 167    margin-bottom: 0.5em;
 168  }
 169  
 170  .wp-block[data-align=center] > .wp-block-image {
 171    margin-left: auto;
 172    margin-right: auto;
 173    text-align: center;
 174  }
 175  
 176  .wp-block[data-align]:has(> .wp-block-image) {
 177    position: relative;
 178  }
 179  
 180  .wp-block-image__crop-area {
 181    position: relative;
 182    max-width: 100%;
 183    width: 100%;
 184    overflow: hidden;
 185  }
 186  .wp-block-image__crop-area .reactEasyCrop_Container {
 187    pointer-events: auto;
 188  }
 189  .wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image {
 190    border: none;
 191    border-radius: 0;
 192  }
 193  
 194  .wp-block-image__crop-icon {
 195    padding: 0 8px;
 196    min-width: 48px;
 197    display: flex;
 198    justify-content: center;
 199    align-items: center;
 200  }
 201  .wp-block-image__crop-icon svg {
 202    fill: currentColor;
 203  }
 204  
 205  .wp-block-image__zoom .components-popover__content {
 206    min-width: 260px;
 207    overflow: visible !important;
 208  }
 209  
 210  .wp-block-image__toolbar_content_textarea__container {
 211    padding: 8px;
 212  }
 213  
 214  .wp-block-image__toolbar_content_textarea {
 215    width: 250px;
 216  }


Generated : Mon Jun 15 08:20:09 2026 Cross-referenced by PHPXref