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