[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/css/dist/block-library/ -> common.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  :root {
  97    --wp-block-synced-color: #7a00df;
  98    --wp-block-synced-color--rgb: 122, 0, 223;
  99    --wp-bound-block-color: var(--wp-block-synced-color);
 100    --wp-editor-canvas-background: #ddd;
 101    --wp-admin-theme-color: #007cba;
 102    --wp-admin-theme-color--rgb: 0, 124, 186;
 103    --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
 104    --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
 105    --wp-admin-theme-color-darker-20: #005a87;
 106    --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
 107    --wp-admin-border-width-focus: 2px;
 108  }
 109  @media (min-resolution: 192dpi) {
 110    :root {
 111      --wp-admin-border-width-focus: 1.5px;
 112    }
 113  }
 114  
 115  /**
 116   * Element styles.
 117   */
 118  .wp-element-button {
 119    cursor: pointer;
 120  }
 121  
 122  :root .has-very-light-gray-background-color {
 123    background-color: #eee;
 124  }
 125  :root .has-very-dark-gray-background-color {
 126    background-color: #313131;
 127  }
 128  :root .has-very-light-gray-color {
 129    color: #eee;
 130  }
 131  :root .has-very-dark-gray-color {
 132    color: #313131;
 133  }
 134  :root {
 135    /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
 136  }
 137  :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
 138    background: linear-gradient(135deg, rgb(0, 208, 132) 0%, rgb(6, 147, 227) 100%);
 139  }
 140  :root .has-purple-crush-gradient-background {
 141    background: linear-gradient(135deg, rgb(52, 226, 228) 0%, rgb(71, 33, 251) 50%, rgb(171, 29, 254) 100%);
 142  }
 143  :root .has-hazy-dawn-gradient-background {
 144    background: linear-gradient(135deg, rgb(250, 172, 168) 0%, rgb(218, 208, 236) 100%);
 145  }
 146  :root .has-subdued-olive-gradient-background {
 147    background: linear-gradient(135deg, rgb(250, 250, 225) 0%, rgb(103, 166, 113) 100%);
 148  }
 149  :root .has-atomic-cream-gradient-background {
 150    background: linear-gradient(135deg, rgb(253, 215, 154) 0%, rgb(0, 74, 89) 100%);
 151  }
 152  :root .has-nightshade-gradient-background {
 153    background: linear-gradient(135deg, rgb(51, 9, 104) 0%, rgb(49, 205, 207) 100%);
 154  }
 155  :root .has-midnight-gradient-background {
 156    background: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);
 157  }
 158  :root {
 159    /* stylelint-enable @stylistic/function-comma-space-after */
 160    --wp--preset--font-size--normal: 16px;
 161    --wp--preset--font-size--huge: 42px;
 162  }
 163  
 164  .has-regular-font-size {
 165    font-size: 1em;
 166  }
 167  
 168  .has-larger-font-size {
 169    font-size: 2.625em;
 170  }
 171  
 172  .has-normal-font-size {
 173    font-size: var(--wp--preset--font-size--normal);
 174  }
 175  
 176  .has-huge-font-size {
 177    font-size: var(--wp--preset--font-size--huge);
 178  }
 179  
 180  :root .has-text-align-center {
 181    text-align: center;
 182  }
 183  
 184  :root .has-text-align-left {
 185    /*rtl:ignore*/
 186    text-align: left;
 187  }
 188  
 189  :root .has-text-align-right {
 190    /*rtl:ignore*/
 191    text-align: right;
 192  }
 193  
 194  .has-fit-text {
 195    white-space: nowrap !important;
 196  }
 197  
 198  #end-resizable-editor-section {
 199    display: none;
 200  }
 201  
 202  .aligncenter {
 203    clear: both;
 204  }
 205  
 206  .items-justified-left {
 207    justify-content: flex-start;
 208  }
 209  
 210  .items-justified-center {
 211    justify-content: center;
 212  }
 213  
 214  .items-justified-right {
 215    justify-content: flex-end;
 216  }
 217  
 218  .items-justified-space-between {
 219    justify-content: space-between;
 220  }
 221  
 222  .screen-reader-text {
 223    border: 0;
 224    clip-path: inset(50%);
 225    height: 1px;
 226    margin: -1px;
 227    overflow: hidden;
 228    padding: 0;
 229    position: absolute;
 230    width: 1px;
 231    word-wrap: normal !important;
 232    word-break: normal !important;
 233  }
 234  
 235  .screen-reader-text:focus {
 236    background-color: #ddd;
 237    clip-path: none;
 238    color: #444;
 239    display: block;
 240    font-size: 1em;
 241    height: auto;
 242    left: 5px;
 243    line-height: normal;
 244    padding: 15px 23px 14px;
 245    text-decoration: none;
 246    top: 5px;
 247    width: auto;
 248    z-index: 100000;
 249  }
 250  
 251  /**
 252   * The following provide a simple means of applying a default border style when
 253   * a user first makes a selection in the border block support panel.
 254   * This prevents issues such as where the user could set a border width
 255   * and see no border due there being no border style set.
 256   *
 257   * This is intended to be removed once intelligent defaults can be set while
 258   * making border selections via the block support.
 259   *
 260   * See: https://github.com/WordPress/gutenberg/pull/33743
 261   */
 262  html :where(.has-border-color) {
 263    border-style: solid;
 264  }
 265  
 266  html :where([style^=border-color],
 267  [style*=";border-color"],
 268  [style*="; border-color"]) {
 269    border-style: solid;
 270  }
 271  
 272  html :where([style^=border-top-color],
 273  [style*=";border-top-color"],
 274  [style*="; border-top-color"]) {
 275    border-top-style: solid;
 276  }
 277  
 278  html :where([style^=border-right-color],
 279  [style*=";border-right-color"],
 280  [style*="; border-right-color"]) {
 281    /*rtl:ignore*/
 282    border-right-style: solid;
 283  }
 284  
 285  html :where([style^=border-bottom-color],
 286  [style*=";border-bottom-color"],
 287  [style*="; border-bottom-color"]) {
 288    border-bottom-style: solid;
 289  }
 290  
 291  html :where([style^=border-left-color],
 292  [style*=";border-left-color"],
 293  [style*="; border-left-color"]) {
 294    /*rtl:ignore*/
 295    border-left-style: solid;
 296  }
 297  
 298  html :where([style^=border-width],
 299  [style*=";border-width"],
 300  [style*="; border-width"]) {
 301    border-style: solid;
 302  }
 303  
 304  html :where([style^=border-top-width],
 305  [style*=";border-top-width"],
 306  [style*="; border-top-width"]) {
 307    border-top-style: solid;
 308  }
 309  
 310  html :where([style^=border-right-width],
 311  [style*=";border-right-width"],
 312  [style*="; border-right-width"]) {
 313    /*rtl:ignore*/
 314    border-right-style: solid;
 315  }
 316  
 317  html :where([style^=border-bottom-width],
 318  [style*=";border-bottom-width"],
 319  [style*="; border-bottom-width"]) {
 320    border-bottom-style: solid;
 321  }
 322  
 323  html :where([style^=border-left-width],
 324  [style*=";border-left-width"],
 325  [style*="; border-left-width"]) {
 326    /*rtl:ignore*/
 327    border-left-style: solid;
 328  }
 329  
 330  /**
 331   * Provide baseline responsiveness for images.
 332   */
 333  html :where(img[class*=wp-image-]) {
 334    height: auto;
 335    max-width: 100%;
 336  }
 337  
 338  /**
 339   * Reset user agent styles for figure element margins.
 340   */
 341  :where(figure) {
 342    margin: 0 0 1em 0;
 343  }
 344  
 345  html :where(.is-position-sticky) {
 346    --wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px);
 347  }
 348  
 349  @media screen and (max-width: 600px) {
 350    html :where(.is-position-sticky) {
 351      --wp-admin--admin-bar--position-offset: 0px;
 352    }
 353  }


Generated : Wed Jul 29 08:20:18 2026 Cross-referenced by PHPXref