[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/css/dist/block-library/ -> common-rtl.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    text-align: left;
 186  }
 187  
 188  :root .has-text-align-right {
 189    text-align: right;
 190  }
 191  
 192  .has-fit-text {
 193    white-space: nowrap !important;
 194  }
 195  
 196  #end-resizable-editor-section {
 197    display: none;
 198  }
 199  
 200  .aligncenter {
 201    clear: both;
 202  }
 203  
 204  .items-justified-left {
 205    justify-content: flex-start;
 206  }
 207  
 208  .items-justified-center {
 209    justify-content: center;
 210  }
 211  
 212  .items-justified-right {
 213    justify-content: flex-end;
 214  }
 215  
 216  .items-justified-space-between {
 217    justify-content: space-between;
 218  }
 219  
 220  .screen-reader-text {
 221    border: 0;
 222    clip-path: inset(50%);
 223    height: 1px;
 224    margin: -1px;
 225    overflow: hidden;
 226    padding: 0;
 227    position: absolute;
 228    width: 1px;
 229    word-wrap: normal !important;
 230    word-break: normal !important;
 231  }
 232  
 233  .screen-reader-text:focus {
 234    background-color: #ddd;
 235    clip-path: none;
 236    color: #444;
 237    display: block;
 238    font-size: 1em;
 239    height: auto;
 240    right: 5px;
 241    line-height: normal;
 242    padding: 15px 23px 14px;
 243    text-decoration: none;
 244    top: 5px;
 245    width: auto;
 246    z-index: 100000;
 247  }
 248  
 249  /**
 250   * The following provide a simple means of applying a default border style when
 251   * a user first makes a selection in the border block support panel.
 252   * This prevents issues such as where the user could set a border width
 253   * and see no border due there being no border style set.
 254   *
 255   * This is intended to be removed once intelligent defaults can be set while
 256   * making border selections via the block support.
 257   *
 258   * See: https://github.com/WordPress/gutenberg/pull/33743
 259   */
 260  html :where(.has-border-color) {
 261    border-style: solid;
 262  }
 263  
 264  html :where([style^=border-color],
 265  [style*=";border-color"],
 266  [style*="; border-color"]) {
 267    border-style: solid;
 268  }
 269  
 270  html :where([style^=border-top-color],
 271  [style*=";border-top-color"],
 272  [style*="; border-top-color"]) {
 273    border-top-style: solid;
 274  }
 275  
 276  html :where([style^=border-right-color],
 277  [style*=";border-right-color"],
 278  [style*="; border-right-color"]) {
 279    border-right-style: solid;
 280  }
 281  
 282  html :where([style^=border-bottom-color],
 283  [style*=";border-bottom-color"],
 284  [style*="; border-bottom-color"]) {
 285    border-bottom-style: solid;
 286  }
 287  
 288  html :where([style^=border-left-color],
 289  [style*=";border-left-color"],
 290  [style*="; border-left-color"]) {
 291    border-left-style: solid;
 292  }
 293  
 294  html :where([style^=border-width],
 295  [style*=";border-width"],
 296  [style*="; border-width"]) {
 297    border-style: solid;
 298  }
 299  
 300  html :where([style^=border-top-width],
 301  [style*=";border-top-width"],
 302  [style*="; border-top-width"]) {
 303    border-top-style: solid;
 304  }
 305  
 306  html :where([style^=border-right-width],
 307  [style*=";border-right-width"],
 308  [style*="; border-right-width"]) {
 309    border-right-style: solid;
 310  }
 311  
 312  html :where([style^=border-bottom-width],
 313  [style*=";border-bottom-width"],
 314  [style*="; border-bottom-width"]) {
 315    border-bottom-style: solid;
 316  }
 317  
 318  html :where([style^=border-left-width],
 319  [style*=";border-left-width"],
 320  [style*="; border-left-width"]) {
 321    border-left-style: solid;
 322  }
 323  
 324  /**
 325   * Provide baseline responsiveness for images.
 326   */
 327  html :where(img[class*=wp-image-]) {
 328    height: auto;
 329    max-width: 100%;
 330  }
 331  
 332  /**
 333   * Reset user agent styles for figure element margins.
 334   */
 335  :where(figure) {
 336    margin: 0 0 1em 0;
 337  }
 338  
 339  html :where(.is-position-sticky) {
 340    --wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px);
 341  }
 342  
 343  @media screen and (max-width: 600px) {
 344    html :where(.is-position-sticky) {
 345      --wp-admin--admin-bar--position-offset: 0px;
 346    }
 347  }


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