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


Generated : Sat Nov 7 15:39:38 2026 Cross-referenced by PHPXref