| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
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: #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 .block-editor-block-icon { 116 display: flex; 117 align-items: center; 118 justify-content: center; 119 width: 24px; 120 height: 24px; 121 } 122 .block-editor-block-icon.has-colors svg { 123 fill: currentColor; 124 } 125 @media (forced-colors: active) { 126 .block-editor-block-icon.has-colors svg { 127 fill: CanvasText; 128 } 129 } 130 .block-editor-block-icon svg { 131 min-width: 20px; 132 min-height: 20px; 133 max-width: 24px; 134 max-height: 24px; 135 } 136 137 .block-editor-block-styles .block-editor-block-list__block { 138 margin: 0; 139 } 140 141 /** 142 * Cross-Block Selection 143 */ 144 @keyframes selection-overlay__fade-in-animation { 145 from { 146 opacity: 0; 147 } 148 to { 149 opacity: 0.4; 150 } 151 } 152 /* stylelint-disable -- Stylelint is disabled to allow the hack to work. */ 153 _::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection, 154 _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .block-editor-block-list__layout::selection { 155 background-color: transparent; 156 } 157 158 /* stylelint-enable */ 159 .block-editor-block-list__layout { 160 position: relative; 161 } 162 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection { 163 background: transparent; 164 } 165 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection { 166 background: transparent; 167 } 168 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after { 169 content: ""; 170 position: absolute; 171 z-index: 1; 172 pointer-events: none; 173 top: 0; 174 right: 0; 175 bottom: 0; 176 left: 0; 177 background: var(--wp-admin-theme-color); 178 opacity: 0.4; 179 } 180 @media not (prefers-reduced-motion) { 181 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after { 182 animation: selection-overlay__fade-in-animation 0.1s ease-out; 183 animation-fill-mode: forwards; 184 } 185 } 186 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after { 187 outline: 2px solid transparent; 188 } 189 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted::after { 190 outline-color: transparent; 191 } 192 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted, 193 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected, 194 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus { 195 outline: none; 196 } 197 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, 198 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after, 199 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus::after { 200 content: ""; 201 position: absolute; 202 pointer-events: none; 203 top: 0; 204 right: 0; 205 bottom: 0; 206 left: 0; 207 outline-color: var(--wp-admin-theme-color); 208 outline-style: solid; 209 outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 210 outline-offset: calc(1 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 211 box-shadow: inset 0 0 0 calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); 212 z-index: 1; 213 } 214 .block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden { 215 visibility: hidden; 216 overflow: hidden; 217 height: 0; 218 border: none !important; 219 padding: 0 !important; 220 opacity: 0; 221 margin-top: 0 !important; 222 margin-bottom: 0 !important; 223 } 224 .block-editor-block-list__layout.is-layout-flex:not(.is-vertical) > .is-block-hidden { 225 width: 0; 226 height: auto; 227 align-self: stretch; 228 white-space: nowrap !important; 229 margin-left: 0 !important; 230 margin-right: 0 !important; 231 } 232 .block-editor-block-list__layout [class^=components-] { 233 -webkit-user-select: text; 234 -moz-user-select: text; 235 user-select: text; 236 } 237 238 .block-editor-block-list__layout .block-editor-block-list__block { 239 position: relative; 240 overflow-wrap: break-word; 241 pointer-events: auto; 242 } 243 .block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled { 244 pointer-events: none; 245 } 246 .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected, .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected { 247 z-index: 20; 248 } 249 .block-editor-block-list__layout .block-editor-block-list__block { 250 /** 251 * Notices 252 */ 253 } 254 .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { 255 margin: -10px 0 12px 0; 256 } 257 .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { 258 margin: 0 0 12px 0; 259 width: 100%; 260 } 261 .block-editor-block-list__layout .block-editor-block-list__block.has-warning { 262 min-height: 48px; 263 } 264 .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { 265 pointer-events: none; 266 -webkit-user-select: none; 267 -moz-user-select: none; 268 user-select: none; 269 } 270 .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { 271 pointer-events: all; 272 } 273 .block-editor-block-list__layout .block-editor-block-list__block[data-clear=true] { 274 float: none; 275 } 276 .block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]), .block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]) { 277 cursor: default; 278 } 279 .block-editor-block-list__layout .block-editor-block-list__block[draggable=true], .block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true] { 280 cursor: grab; 281 } 282 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected { 283 cursor: default; 284 } 285 .block-editor-block-list__layout .block-editor-block-list__block[contenteditable], 286 .block-editor-block-list__layout .block-editor-block-list__block [contenteditable] { 287 cursor: text; 288 } 289 290 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected)::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected::after { 291 content: ""; 292 position: absolute; 293 pointer-events: none; 294 top: 0; 295 right: 0; 296 bottom: 0; 297 left: 0; 298 outline-color: var(--wp-admin-theme-color); 299 outline-style: solid; 300 outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 301 outline-offset: calc(1 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 302 box-shadow: inset 0 0 0 calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); 303 } 304 305 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted::after, 306 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered::after, 307 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected::after, 308 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted::after { 309 outline-color: var(--wp-block-synced-color); 310 } 311 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after, 312 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after { 313 outline-color: var(--wp-block-synced-color); 314 } 315 316 @keyframes block-editor-is-editable__animation { 317 from { 318 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1); 319 } 320 to { 321 background-color: rgba(var(--wp-admin-theme-color--rgb), 0); 322 } 323 } 324 @keyframes block-editor-is-editable__animation_reduce-motion { 325 0% { 326 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1); 327 } 328 99% { 329 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1); 330 } 331 100% { 332 background-color: rgba(var(--wp-admin-theme-color--rgb), 0); 333 } 334 } 335 .is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline::after { 336 animation-name: block-editor-is-editable__animation; 337 animation-duration: 0.8s; 338 animation-timing-function: ease-out; 339 animation-delay: 0.1s; 340 animation-fill-mode: backwards; 341 bottom: 0; 342 content: ""; 343 left: 0; 344 pointer-events: none; 345 position: absolute; 346 right: 0; 347 top: 0; 348 } 349 @media (prefers-reduced-motion: reduce) { 350 .is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline::after { 351 animation-name: block-editor-is-editable__animation_reduce-motion; 352 animation-delay: 0s; 353 } 354 } 355 356 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) { 357 opacity: 0.2; 358 } 359 @media not (prefers-reduced-motion) { 360 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) { 361 transition: opacity 0.1s linear; 362 } 363 } 364 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block, .is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected, .is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected { 365 opacity: 1; 366 } 367 368 .is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected, .is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block { 369 opacity: 1; 370 } 371 372 .wp-block[data-align=left] > *, 373 .wp-block[data-align=right] > *, 374 .wp-block.alignleft, 375 .wp-block.alignright { 376 z-index: 21; 377 } 378 379 .wp-site-blocks > [data-align=left] { 380 float: left; 381 margin-right: 2em; 382 } 383 384 .wp-site-blocks > [data-align=right] { 385 float: right; 386 margin-left: 2em; 387 } 388 389 .wp-site-blocks > [data-align=center] { 390 justify-content: center; 391 margin-left: auto; 392 margin-right: auto; 393 } 394 395 /** 396 * In-Canvas Inserter 397 */ 398 .block-editor-block-list .block-editor-inserter { 399 margin: 8px; 400 cursor: move; 401 cursor: grab; 402 } 403 404 @keyframes block-editor-inserter__toggle__fade-in-animation { 405 from { 406 opacity: 0; 407 } 408 to { 409 opacity: 1; 410 } 411 } 412 @media not (prefers-reduced-motion) { 413 .wp-block .block-list-appender .block-editor-inserter__toggle { 414 animation: block-editor-inserter__toggle__fade-in-animation 0.1s ease; 415 animation-fill-mode: forwards; 416 } 417 } 418 419 .block-editor-block-list__block .block-editor-block-list__block-html-textarea { 420 display: block; 421 margin: 0; 422 padding: 12px; 423 width: 100%; 424 border: none; 425 outline: none; 426 border-radius: 2px; 427 box-sizing: border-box; 428 box-shadow: inset 0 0 0 1px #1e1e1e; 429 resize: none; 430 overflow: hidden; 431 font-family: Menlo, Consolas, monaco, monospace; 432 font-size: 15px; 433 line-height: 1.5; 434 /*rtl:ignore*/ 435 direction: ltr; 436 } 437 @media not (prefers-reduced-motion) { 438 .block-editor-block-list__block .block-editor-block-list__block-html-textarea { 439 transition: padding 0.2s linear; 440 } 441 } 442 .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { 443 box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); 444 } 445 446 .block-editor-block-list__zoom-out-separator { 447 /* same color as the iframe's background */ 448 background: #ddd; 449 margin-left: -1px; 450 margin-right: -1px; 451 } 452 @media not (prefers-reduced-motion) { 453 .block-editor-block-list__zoom-out-separator { 454 transition: background-color 0.3s ease; 455 } 456 } 457 .block-editor-block-list__zoom-out-separator { 458 display: flex; 459 align-items: center; 460 justify-content: center; 461 overflow: hidden; 462 font-size: 13px; 463 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 464 color: #000; 465 font-weight: normal; 466 } 467 .is-zoomed-out .block-editor-block-list__zoom-out-separator { 468 font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); 469 } 470 .block-editor-block-list__zoom-out-separator.is-dragged-over { 471 background: #ccc; 472 } 473 474 .has-global-padding > .block-editor-block-list__zoom-out-separator, 475 .block-editor-block-list__layout.is-root-container.has-global-padding > .block-editor-block-list__zoom-out-separator { 476 max-width: none; 477 margin: 0 calc(-1 * var(--wp--style--root--padding-right) - 1px) 0 calc(-1 * var(--wp--style--root--padding-left) - 1px) !important; 478 } 479 480 .is-dragging { 481 cursor: grabbing; 482 } 483 484 .is-preview-mode { 485 pointer-events: none; 486 } 487 .is-preview-mode .block-editor-block-list__block { 488 pointer-events: auto; 489 } 490 .is-preview-mode .block-editor-block-list__block > *:not(.block-editor-block-list__block) { 491 pointer-events: none; 492 } 493 494 .is-vertical .block-list-appender { 495 width: 24px; 496 margin-right: auto; 497 margin-top: 12px; 498 margin-left: 12px; 499 } 500 501 .block-list-appender > .block-editor-inserter { 502 display: block; 503 } 504 505 .block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle { 506 opacity: 0; 507 transform: scale(0); 508 } 509 510 .block-editor-block-list__block.has-block-overlay { 511 cursor: default; 512 } 513 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block { 514 pointer-events: none; 515 } 516 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay::before { 517 left: 0; 518 right: 0; 519 width: auto; 520 } 521 522 .block-editor-block-list__layout .is-dragging { 523 opacity: 0.1; 524 } 525 .block-editor-block-list__layout .is-dragging iframe { 526 pointer-events: none; 527 } 528 .block-editor-block-list__layout .is-dragging::-moz-selection { 529 background: transparent !important; 530 } 531 .block-editor-block-list__layout .is-dragging::selection { 532 background: transparent !important; 533 } 534 .block-editor-block-list__layout .is-dragging::after { 535 content: none !important; 536 } 537 538 .wp-block img:not([draggable]), 539 .wp-block svg:not([draggable]) { 540 pointer-events: none; 541 } 542 543 .block-editor-block-preview__content-iframe .block-list-appender { 544 display: none; 545 } 546 547 .block-editor-block-preview__live-content * { 548 pointer-events: none; 549 } 550 .block-editor-block-preview__live-content .block-list-appender { 551 display: none; 552 } 553 .block-editor-block-preview__live-content .components-button:disabled { 554 opacity: initial; 555 } 556 .block-editor-block-preview__live-content .components-placeholder, 557 .block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] { 558 display: none; 559 } 560 561 .block-editor-block-variation-picker__variations, 562 .block-editor-block-variation-picker__skip, 563 .wp-block-group-placeholder__variations { 564 list-style: none; 565 display: flex; 566 justify-content: flex-start; 567 flex-direction: row; 568 flex-wrap: wrap; 569 width: 100%; 570 padding: 0; 571 margin: 0; 572 gap: 8px; 573 font-size: 12px; 574 } 575 .block-editor-block-variation-picker__variations svg, 576 .block-editor-block-variation-picker__skip svg, 577 .wp-block-group-placeholder__variations svg { 578 fill: #949494 !important; 579 } 580 .block-editor-block-variation-picker__variations .components-button, 581 .block-editor-block-variation-picker__skip .components-button, 582 .wp-block-group-placeholder__variations .components-button { 583 padding: 4px; 584 } 585 .block-editor-block-variation-picker__variations .components-button:hover, 586 .block-editor-block-variation-picker__skip .components-button:hover, 587 .wp-block-group-placeholder__variations .components-button:hover { 588 background: none !important; 589 } 590 .block-editor-block-variation-picker__variations .components-button:hover svg, 591 .block-editor-block-variation-picker__skip .components-button:hover svg, 592 .wp-block-group-placeholder__variations .components-button:hover svg { 593 fill: var(--wp-admin-theme-color) !important; 594 } 595 .block-editor-block-variation-picker__variations > li, 596 .block-editor-block-variation-picker__skip > li, 597 .wp-block-group-placeholder__variations > li { 598 width: auto; 599 display: flex; 600 flex-direction: column; 601 align-items: center; 602 gap: 4px; 603 } 604 605 .block-editor-button-block-appender { 606 display: flex; 607 flex-direction: column; 608 align-items: center; 609 justify-content: center; 610 width: 100%; 611 height: auto; 612 color: #1e1e1e; 613 border-color: currentColor; 614 } 615 .is-dark-theme .block-editor-button-block-appender { 616 color: rgba(255, 255, 255, 0.65); 617 } 618 .block-editor-button-block-appender:hover { 619 color: var(--wp-admin-theme-color); 620 } 621 .block-editor-button-block-appender:active { 622 color: #000; 623 } 624 625 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender), .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender), .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender), .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender) { 626 pointer-events: none; 627 } 628 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after { 629 content: ""; 630 position: absolute; 631 top: 0; 632 right: 0; 633 bottom: 0; 634 left: 0; 635 pointer-events: none; 636 border: 1px dashed currentColor; 637 } 638 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter { 639 opacity: 0; 640 } 641 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within { 642 opacity: 1; 643 } 644 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over::after { 645 border: none; 646 } 647 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter { 648 visibility: visible; 649 } 650 .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after { 651 border: none; 652 } 653 .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { 654 background-color: var(--wp-admin-theme-color); 655 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); 656 color: rgba(255, 255, 255, 0.65); 657 } 658 @media not (prefers-reduced-motion) { 659 .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { 660 transition: background-color 0.2s ease-in-out; 661 } 662 } 663 664 /** 665 * Default block appender. 666 * 667 * This component shows up in 3 places: 668 * - the black plus that sits at the end of the canvas, if the last block isn't a paragraph 669 * - on the right, inside empty paragraphs 670 * - absolute positioned and blue inside nesting containers 671 */ 672 .block-editor-default-block-appender { 673 clear: both; 674 margin-left: auto; 675 margin-right: auto; 676 position: relative; 677 } 678 .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { 679 outline: 1px solid transparent; 680 } 681 .block-editor-default-block-appender .block-editor-default-block-appender__content { 682 opacity: 0.62; 683 text-shadow: none; 684 margin-block-start: 0; 685 margin-block-end: 0; 686 } 687 .block-editor-default-block-appender .components-drop-zone__content-icon { 688 display: none; 689 } 690 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon { 691 background: #1e1e1e; 692 color: #fff; 693 padding: 0; 694 min-width: 24px; 695 height: 24px; 696 } 697 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover { 698 color: #fff; 699 background: var(--wp-admin-theme-color); 700 } 701 @media not (prefers-reduced-motion) { 702 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg { 703 transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; 704 } 705 } 706 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg { 707 transform: rotate(45deg); 708 } 709 710 .block-editor-default-block-appender .block-editor-inserter { 711 position: absolute; 712 top: 0; 713 right: 0; 714 line-height: 0; 715 } 716 .block-editor-default-block-appender .block-editor-inserter:disabled { 717 display: none; 718 } 719 720 /** 721 * Fixed position appender (right bottom corner). 722 * 723 * These styles apply to all in-canvas inserters. All in-canvas inserters always 724 * exist within a block. 725 */ 726 .block-editor-block-list__block .block-list-appender { 727 position: absolute; 728 list-style: none; 729 padding: 0; 730 z-index: 2; 731 bottom: 0; 732 right: 0; 733 } 734 .block-editor-block-list__block .block-list-appender.block-list-appender { 735 margin: 0; 736 line-height: 0; 737 } 738 .block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled { 739 display: none; 740 } 741 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender { 742 height: 24px; 743 } 744 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 745 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { 746 background: #1e1e1e; 747 color: #fff; 748 padding: 0; 749 min-width: 24px; 750 height: 24px; 751 } 752 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover, 753 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover { 754 color: #fff; 755 background: var(--wp-admin-theme-color); 756 } 757 @media not (prefers-reduced-motion) { 758 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg, 759 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg { 760 transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; 761 } 762 } 763 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg, 764 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg { 765 transform: rotate(45deg); 766 } 767 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 768 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { 769 flex-direction: row; 770 box-shadow: none; 771 width: 24px; 772 display: none; 773 padding: 0 !important; 774 } 775 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { 776 display: none; 777 } 778 .block-editor-block-list__block .block-list-appender:only-child { 779 position: relative; 780 right: auto; 781 align-self: center; 782 list-style: none; 783 line-height: inherit; 784 } 785 .block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content { 786 display: block; 787 } 788 789 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 790 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle, 791 .block-editor-block-list__block.is-selected > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 792 .block-editor-block-list__block.is-selected > .block-list-appender .block-list-appender__toggle { 793 display: flex; 794 } 795 796 .block-editor-default-block-appender__content { 797 cursor: text; 798 } 799 800 .block-editor-iframe__body { 801 position: relative; 802 } 803 804 .block-editor-iframe__html { 805 transform-origin: top center; 806 } 807 @media not (prefers-reduced-motion) { 808 .block-editor-iframe__html { 809 transition: background-color 400ms; 810 } 811 } 812 .block-editor-iframe__html.zoom-out-animation { 813 position: fixed; 814 left: 0; 815 right: 0; 816 top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)); 817 bottom: 0; 818 overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); 819 } 820 .block-editor-iframe__html.is-zoomed-out { 821 transform: translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw)) / 2 / var(--wp-block-editor-iframe-zoom-out-scale, 1))); 822 scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); 823 background-color: var(--wp-editor-canvas-background); 824 margin-bottom: calc(-1 * calc(calc(var(--wp-block-editor-iframe-zoom-out-content-height) * (1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))) + calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)) + 2px)); 825 padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 826 padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 827 } 828 .block-editor-iframe__html.is-zoomed-out body { 829 min-height: calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1))) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 830 } 831 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { 832 flex: 1; 833 display: flex; 834 flex-direction: column; 835 height: 100%; 836 } 837 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) > main { 838 flex: 1; 839 } 840 .block-editor-iframe__html.is-zoomed-out .wp-block[draggable] { 841 cursor: grab; 842 } 843 844 .block-editor-media-placeholder__cancel-button.is-link { 845 margin: 1em; 846 display: block; 847 } 848 849 .block-editor-media-placeholder.is-appender { 850 min-height: 0; 851 } 852 .block-editor-media-placeholder.is-appender:hover { 853 cursor: var(--wpds-cursor-control, pointer); 854 box-shadow: 0 0 0 1px var(--wp-admin-theme-color); 855 } 856 857 .block-editor-plain-text { 858 box-shadow: none; 859 font-family: inherit; 860 font-size: inherit; 861 color: inherit; 862 line-height: inherit; 863 border: none; 864 padding: 0; 865 margin: 0; 866 width: 100%; 867 } 868 869 .rich-text [data-rich-text-placeholder] { 870 pointer-events: none; 871 } 872 .rich-text [data-rich-text-placeholder]::after { 873 content: attr(data-rich-text-placeholder); 874 opacity: 0.62; 875 text-shadow: none; 876 } 877 .rich-text:focus { 878 outline: none; 879 } 880 881 figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before { 882 opacity: 0.8; 883 } 884 885 [data-rich-text-script] { 886 display: inline; 887 } 888 [data-rich-text-script]::before { 889 content: "</>"; 890 background: rgb(255, 255, 0); 891 } 892 893 [data-rich-text-comment], 894 [data-rich-text-format-boundary] { 895 border-radius: 2px; 896 } 897 898 [data-rich-text-comment] { 899 background-color: currentColor; 900 } 901 [data-rich-text-comment] span { 902 filter: invert(100%); 903 color: currentColor; 904 padding: 0 2px; 905 } 906 907 .rich-text [contenteditable=false]::-moz-selection { 908 background-color: transparent; 909 } 910 911 .rich-text [contenteditable=false]::selection { 912 background-color: transparent; 913 } 914 915 .block-editor-warning { 916 align-items: center; 917 display: flex; 918 flex-wrap: wrap; 919 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 920 padding: 1em; 921 border: 1px solid #1e1e1e; 922 border-radius: 2px; 923 background-color: #fff; 924 } 925 .block-editor-warning .block-editor-warning__message { 926 line-height: 1.4; 927 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 928 font-size: 13px; 929 color: #1e1e1e; 930 margin: 0; 931 } 932 .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { 933 min-height: auto; 934 } 935 .block-editor-warning .block-editor-warning__contents { 936 display: flex; 937 flex-direction: row; 938 justify-content: space-between; 939 flex-wrap: wrap; 940 align-items: baseline; 941 width: 100%; 942 gap: 12px; 943 } 944 .block-editor-warning .block-editor-warning__actions { 945 align-items: center; 946 display: flex; 947 gap: 8px; 948 } 949 950 .components-popover.block-editor-warning__dropdown { 951 z-index: 99998; 952 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sun Jul 26 08:20:18 2026 | Cross-referenced by PHPXref |