[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/css/dist/edit-post/ -> style.css (source)

   1  /**
   2   * Typography
   3   */
   4  /**
   5   * SCSS Variables.
   6   *
   7   * Please use variables from this sheet to ensure consistency across the UI.
   8   * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
   9   * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  10   */
  11  /**
  12   * Colors
  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  .edit-post-meta-boxes-main {
 131    filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133));
 132    outline: 1px solid transparent;
 133    background-color: #fff;
 134    display: flex;
 135    flex-direction: column;
 136    overflow: hidden;
 137  }
 138  
 139  .edit-post-meta-boxes-main__presenter {
 140    flex-shrink: 0;
 141    display: flex;
 142    justify-content: center;
 143    box-shadow: 0 1px #ddd;
 144    outline: 1px solid transparent;
 145    position: relative;
 146    z-index: 1;
 147    height: 32px;
 148  }
 149  @media (pointer: coarse) {
 150    .edit-post-meta-boxes-main__presenter {
 151      height: 36px;
 152    }
 153  }
 154  .edit-post-meta-boxes-main__presenter > button {
 155    appearance: none;
 156    padding: 0;
 157    border: none;
 158    outline: none;
 159    background-color: transparent;
 160    touch-action: none;
 161  }
 162  .edit-post-meta-boxes-main__presenter > button[aria-expanded] {
 163    cursor: var(--wpds-cursor-control, pointer);
 164    width: 100%;
 165    display: flex;
 166    justify-content: space-between;
 167    align-items: center;
 168    padding-inline: 24px 12px;
 169  }
 170  .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) {
 171    color: var(--wp-admin-theme-color);
 172  }
 173  .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after {
 174    content: "";
 175    position: absolute;
 176    inset: 0;
 177    outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
 178    outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
 179    outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
 180  }
 181  .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg {
 182    fill: currentColor;
 183  }
 184  .edit-post-meta-boxes-main__presenter > button[role=separator] {
 185    cursor: row-resize;
 186    position: absolute;
 187    width: 64px;
 188    height: inherit;
 189  }
 190  .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
 191    content: "";
 192    background-color: #ddd;
 193    outline: 2px solid transparent;
 194    outline-offset: -2px;
 195    position: absolute;
 196    inset-block: calc(50% - 4px / 2) auto;
 197    transform: translateX(-50%);
 198    width: inherit;
 199    height: 4px;
 200    border-radius: 2px;
 201  }
 202  @media not (prefers-reduced-motion) {
 203    .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
 204      transition: width 0.3s ease-out;
 205    }
 206  }
 207  .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before {
 208    background-color: var(--wp-admin-theme-color);
 209    width: 80px;
 210  }
 211  
 212  .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
 213    overflow: auto;
 214  }
 215  .edit-post-meta-boxes-main__liner {
 216    isolation: isolate;
 217  }
 218  .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
 219    display: unset;
 220  }
 221  
 222  .edit-post-layout__metaboxes {
 223    clear: both;
 224  }
 225  
 226  .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor,
 227  .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-text-editor {
 228    flex-shrink: 1;
 229    flex-basis: 0%;
 230    isolation: isolate;
 231  }
 232  .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
 233    overflow: hidden;
 234  }
 235  .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-text-editor {
 236    overflow: auto;
 237  }
 238  
 239  .edit-post-layout__snackbar {
 240    position: fixed;
 241    bottom: var(--wpds-dimension-size-md, 32px);
 242    left: 0;
 243    right: 0;
 244    padding-inline: 16px;
 245    box-sizing: border-box;
 246    display: flex;
 247    flex-direction: column;
 248    pointer-events: none;
 249  }
 250  .edit-post-layout__snackbar .components-snackbar {
 251    margin-inline: auto;
 252  }
 253  
 254  .edit-post-meta-boxes-area {
 255    position: relative;
 256    /**
 257     * The wordpress default for most meta-box elements is content-box. Some
 258     * elements such as textarea and input are set to border-box in forms.css.
 259     * These elements therefore specifically set back to border-box here, while
 260     * other elements (such as .button) are unaffected by Gutenberg's style
 261     * because of their higher specificity.
 262     */
 263  }
 264  .edit-post-meta-boxes-area__container,
 265  .edit-post-meta-boxes-area .inside {
 266    box-sizing: content-box;
 267  }
 268  .edit-post-meta-boxes-area textarea,
 269  .edit-post-meta-boxes-area input {
 270    box-sizing: border-box;
 271  }
 272  .edit-post-meta-boxes-area .postbox-header {
 273    border-top: 1px solid #e0e0e0;
 274    border-bottom: 0;
 275  }
 276  .edit-post-meta-boxes-area {
 277    /* Match width and positioning of the meta boxes. Override default styles. */
 278  }
 279  .edit-post-meta-boxes-area #poststuff {
 280    margin: 0 auto;
 281    padding-top: 0;
 282    min-width: auto;
 283  }
 284  .edit-post-meta-boxes-area {
 285    /* Override Default meta box stylings */
 286  }
 287  .edit-post-meta-boxes-area #poststuff h3.hndle,
 288  .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
 289  .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
 290    box-sizing: border-box;
 291    color: #1e1e1e;
 292    font-size: 13px;
 293    font-weight: var(--wpds-typography-font-weight-emphasis, 600);
 294    outline: none;
 295    padding: 0 24px;
 296    position: relative;
 297    width: 100%;
 298  }
 299  .edit-post-meta-boxes-area .postbox {
 300    border: 0;
 301    color: inherit;
 302    margin-bottom: 0;
 303  }
 304  .edit-post-meta-boxes-area .postbox > .inside {
 305    color: inherit;
 306    padding: 0 24px 24px;
 307    margin: 0;
 308  }
 309  .edit-post-meta-boxes-area .postbox .handlediv {
 310    height: 44px;
 311    width: 44px;
 312  }
 313  .edit-post-meta-boxes-area.is-loading::before {
 314    position: absolute;
 315    top: 0;
 316    left: 0;
 317    right: 0;
 318    bottom: 0;
 319    content: "";
 320    background: transparent;
 321    z-index: 1;
 322  }
 323  .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner {
 324    position: absolute;
 325    top: 10px;
 326    right: 20px;
 327    z-index: 2;
 328  }
 329  .edit-post-meta-boxes-area .is-hidden {
 330    display: none;
 331  }
 332  
 333  .edit-post-meta-boxes-area__clear {
 334    clear: both;
 335  }
 336  
 337  .edit-post-welcome-guide,
 338  .edit-template-welcome-guide {
 339    width: 312px;
 340  }
 341  .edit-post-welcome-guide__image,
 342  .edit-template-welcome-guide__image {
 343    background: #00a0d2;
 344    margin: 0 0 16px;
 345  }
 346  .edit-post-welcome-guide__image > img,
 347  .edit-template-welcome-guide__image > img {
 348    display: block;
 349    max-width: 100%;
 350    object-fit: cover;
 351  }
 352  .edit-post-welcome-guide__heading,
 353  .edit-template-welcome-guide__heading {
 354    font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
 355    font-size: 24px;
 356    line-height: 1.4;
 357    margin: 16px 0 16px 0;
 358    padding: 0 24px;
 359  }
 360  .edit-post-welcome-guide__text,
 361  .edit-template-welcome-guide__text {
 362    font-size: 13px;
 363    line-height: 1.4;
 364    margin: 0 0 24px 0;
 365    padding: 0 24px;
 366  }
 367  .edit-post-welcome-guide__inserter-icon,
 368  .edit-template-welcome-guide__inserter-icon {
 369    margin: 0 4px;
 370    vertical-align: text-top;
 371  }
 372  .edit-post-welcome-guide .components-button:hover svg,
 373  .edit-template-welcome-guide .components-button:hover svg {
 374    color: #fff;
 375  }
 376  
 377  .edit-template-welcome-guide .components-button svg {
 378    color: #fff;
 379  }
 380  
 381  body.js.block-editor-page {
 382    background: #fff;
 383  }
 384  body.js.block-editor-page #wpcontent {
 385    padding-left: 0;
 386  }
 387  body.js.block-editor-page #wpbody-content {
 388    padding-bottom: 0;
 389  }
 390  body.js.block-editor-page {
 391    /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
 392       Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
 393  }
 394  body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
 395    display: none;
 396  }
 397  body.js.block-editor-page #wpfooter {
 398    display: none;
 399  }
 400  body.js.block-editor-page .a11y-speak-region {
 401    left: -1px;
 402    top: -1px;
 403  }
 404  body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
 405  body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
 406    border-right-color: #fff;
 407  }
 408  body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
 409    width: auto;
 410    max-width: 100%;
 411  }
 412  @media (min-width: 782px) {
 413    body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) {
 414      --wp-admin--admin-bar--height: 0px;
 415      --wp-editor-admin-bar-display: none;
 416    }
 417    body.js.block-editor-page.is-fullscreen-mode #wpadminbar {
 418      display: var(--wp-editor-admin-bar-display, block);
 419    }
 420  }
 421  
 422  .block-editor-page #wpwrap {
 423    overflow-y: auto;
 424  }
 425  @media (min-width: 782px) {
 426    .block-editor-page #wpwrap {
 427      overflow-y: initial;
 428    }
 429  }
 430  
 431  .edit-post-visual-editor {
 432    box-sizing: border-box;
 433  }
 434  .edit-post-visual-editor *,
 435  .edit-post-visual-editor *::before,
 436  .edit-post-visual-editor *::after {
 437    box-sizing: inherit;
 438  }
 439  
 440  @media (min-width: 600px) {
 441    .block-editor__container {
 442      position: absolute;
 443      top: 0;
 444      right: 0;
 445      bottom: 0;
 446      left: 0;
 447      min-height: calc(100vh - 46px);
 448    }
 449  }
 450  @media (min-width: 782px) {
 451    .block-editor__container {
 452      min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
 453    }
 454  }
 455  .block-editor__container img {
 456    max-width: 100%;
 457    height: auto;
 458  }


Generated : Mon Nov 9 08:20:01 2026 Cross-referenced by PHPXref