| [ 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 left: 0; 182 bottom: 0; 183 right: 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 left: 0; 216 bottom: 0; 217 right: 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-right: 0 !important; 241 margin-left: 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 left: 0; 305 bottom: 0; 306 right: 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 right: 0; 353 pointer-events: none; 354 position: absolute; 355 left: 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: right; 390 margin-left: 2em; 391 } 392 393 .wp-site-blocks > [data-align=right] { 394 float: left; 395 margin-right: 2em; 396 } 397 398 .wp-site-blocks > [data-align=center] { 399 justify-content: center; 400 margin-right: auto; 401 margin-left: 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 direction: ltr; 445 } 446 @media not (prefers-reduced-motion) { 447 .block-editor-block-list__block .block-editor-block-list__block-html-textarea { 448 transition: padding 0.2s linear; 449 } 450 } 451 .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { 452 box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); 453 } 454 455 .block-editor-block-list__zoom-out-separator { 456 /* same color as the iframe's background */ 457 background: #ddd; 458 margin-right: -1px; 459 margin-left: -1px; 460 } 461 @media not (prefers-reduced-motion) { 462 .block-editor-block-list__zoom-out-separator { 463 transition: background-color 0.3s ease; 464 } 465 } 466 .block-editor-block-list__zoom-out-separator { 467 display: flex; 468 align-items: center; 469 justify-content: center; 470 overflow: hidden; 471 font-size: 13px; 472 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 473 color: #000; 474 font-weight: 400; 475 } 476 .is-zoomed-out .block-editor-block-list__zoom-out-separator { 477 font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); 478 } 479 .block-editor-block-list__zoom-out-separator.is-dragged-over { 480 background: #ccc; 481 } 482 483 .has-global-padding > .block-editor-block-list__zoom-out-separator, 484 .block-editor-block-list__layout.is-root-container.has-global-padding > .block-editor-block-list__zoom-out-separator { 485 max-width: none; 486 margin: 0 calc(-1 * var(--wp--style--root--padding-left) - 1px) 0 calc(-1 * var(--wp--style--root--padding-right) - 1px) !important; 487 } 488 489 .is-dragging { 490 cursor: grabbing; 491 } 492 493 .is-preview-mode { 494 pointer-events: none; 495 } 496 .is-preview-mode .block-editor-block-list__block { 497 pointer-events: auto; 498 } 499 .is-preview-mode .block-editor-block-list__block > *:not(.block-editor-block-list__block) { 500 pointer-events: none; 501 } 502 503 .block-editor-block-list__block.is-movable-multi-selected:not(.is-partially-selected) { 504 cursor: grab; 505 } 506 .is-dragging .block-editor-block-list__block.is-movable-multi-selected:not(.is-partially-selected) { 507 cursor: grabbing; 508 } 509 510 .block-editor-block-list__drag-count { 511 position: fixed; 512 z-index: 1001; 513 pointer-events: none; 514 box-sizing: border-box; 515 display: flex; 516 align-items: center; 517 justify-content: center; 518 min-width: 24px; 519 height: 24px; 520 padding: 0 4px; 521 border-radius: 12px; 522 background: var(--wp-admin-theme-color); 523 color: #fff; 524 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 525 font-size: 12px; 526 font-weight: 500; 527 } 528 529 .is-vertical .block-list-appender { 530 width: 24px; 531 margin-left: auto; 532 margin-top: 12px; 533 margin-right: 12px; 534 } 535 536 .block-list-appender > .block-editor-inserter { 537 display: block; 538 } 539 540 .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 { 541 opacity: 0; 542 transform: scale(0); 543 } 544 545 .block-editor-block-list__block.has-block-overlay { 546 cursor: default; 547 } 548 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block { 549 pointer-events: none; 550 } 551 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay::before { 552 right: 0; 553 left: 0; 554 width: auto; 555 } 556 557 .block-editor-block-list__layout .is-dragging:not([data-drag-pile]) { 558 opacity: 0.1; 559 } 560 .block-editor-block-list__layout .is-dragging:not([data-drag-pile]) iframe { 561 pointer-events: none; 562 } 563 .block-editor-block-list__layout .is-dragging:not([data-drag-pile])::selection { 564 background: transparent !important; 565 } 566 .block-editor-block-list__layout .is-dragging:not([data-drag-pile])::after { 567 content: none !important; 568 } 569 570 [data-drag-pile] .block-editor-block-list__layout .is-dragging:not([data-drag-pile]) { 571 visibility: hidden; 572 } 573 [data-drag-pile] .block-editor-block-list__layout .is-dragging[data-drag-pile] { 574 position: relative; 575 z-index: 999; 576 box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.15); 577 } 578 579 .block-editor-block-preview__content-iframe .block-list-appender { 580 display: none; 581 } 582 583 .block-editor-block-preview__live-content * { 584 pointer-events: none; 585 } 586 .block-editor-block-preview__live-content .block-list-appender { 587 display: none; 588 } 589 .block-editor-block-preview__live-content .components-button:disabled { 590 opacity: initial; 591 } 592 .block-editor-block-preview__live-content .components-placeholder, 593 .block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] { 594 display: none; 595 } 596 597 .block-editor-block-variation-picker__variations, 598 .block-editor-block-variation-picker__skip, 599 .wp-block-group-placeholder__variations { 600 list-style: none; 601 display: flex; 602 justify-content: flex-start; 603 flex-direction: row; 604 flex-wrap: wrap; 605 width: 100%; 606 padding: 0; 607 margin: 0; 608 gap: 8px; 609 font-size: 12px; 610 } 611 .block-editor-block-variation-picker__variations svg, 612 .block-editor-block-variation-picker__skip svg, 613 .wp-block-group-placeholder__variations svg { 614 fill: #949494; 615 color: #949494 !important; 616 } 617 .block-editor-block-variation-picker__variations .components-button, 618 .block-editor-block-variation-picker__skip .components-button, 619 .wp-block-group-placeholder__variations .components-button { 620 padding: 4px; 621 } 622 .block-editor-block-variation-picker__variations .components-button:hover, 623 .block-editor-block-variation-picker__skip .components-button:hover, 624 .wp-block-group-placeholder__variations .components-button:hover { 625 background: none !important; 626 } 627 .block-editor-block-variation-picker__variations .components-button:hover svg, 628 .block-editor-block-variation-picker__skip .components-button:hover svg, 629 .wp-block-group-placeholder__variations .components-button:hover svg { 630 fill: var(--wp-admin-theme-color); 631 color: var(--wp-admin-theme-color) !important; 632 } 633 .block-editor-block-variation-picker__variations > li, 634 .block-editor-block-variation-picker__skip > li, 635 .wp-block-group-placeholder__variations > li { 636 width: auto; 637 display: flex; 638 flex-direction: column; 639 align-items: center; 640 gap: 4px; 641 } 642 643 .block-editor-button-block-appender { 644 display: flex; 645 flex-direction: column; 646 align-items: center; 647 justify-content: center; 648 width: 100%; 649 height: auto; 650 color: #1e1e1e; 651 border-color: currentColor; 652 } 653 .is-dark-theme .block-editor-button-block-appender { 654 color: rgba(255, 255, 255, 0.65); 655 } 656 .block-editor-button-block-appender:hover { 657 color: var(--wp-admin-theme-color); 658 } 659 .block-editor-button-block-appender:active { 660 color: #000; 661 } 662 663 .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) { 664 pointer-events: none; 665 } 666 .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 { 667 content: ""; 668 position: absolute; 669 top: 0; 670 left: 0; 671 bottom: 0; 672 right: 0; 673 pointer-events: none; 674 border: 1px dashed currentColor; 675 } 676 .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 { 677 opacity: 0; 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: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 { 680 opacity: 1; 681 } 682 .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 { 683 border: none; 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 .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 { 686 opacity: 1; 687 } 688 .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 { 689 border: none; 690 } 691 .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { 692 background-color: var(--wp-admin-theme-color); 693 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); 694 color: rgba(255, 255, 255, 0.65); 695 } 696 @media not (prefers-reduced-motion) { 697 .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { 698 transition: background-color 0.2s ease-in-out; 699 } 700 } 701 702 /** 703 * Default block appender. 704 * 705 * This component shows up in 3 places: 706 * - the black plus that sits at the end of the canvas, if the last block isn't a paragraph 707 * - on the right, inside empty paragraphs 708 * - absolute positioned and blue inside nesting containers 709 */ 710 .block-editor-default-block-appender { 711 clear: both; 712 margin-right: auto; 713 margin-left: auto; 714 position: relative; 715 } 716 .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { 717 outline: 1px solid transparent; 718 } 719 .block-editor-default-block-appender .block-editor-default-block-appender__content { 720 opacity: 0.62; 721 text-shadow: none; 722 margin-block-start: 0; 723 margin-block-end: 0; 724 } 725 .block-editor-default-block-appender .components-drop-zone__content-icon { 726 display: none; 727 } 728 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon { 729 background: #1e1e1e; 730 color: #fff; 731 padding: 0; 732 min-width: 24px; 733 height: 24px; 734 } 735 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover { 736 color: #fff; 737 background: var(--wp-admin-theme-color); 738 } 739 @media not (prefers-reduced-motion) { 740 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg { 741 transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; 742 } 743 } 744 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg { 745 transform: rotate(-45deg); 746 } 747 748 .block-editor-default-block-appender .block-editor-inserter { 749 position: absolute; 750 top: 0; 751 left: 0; 752 line-height: 0; 753 } 754 .block-editor-default-block-appender .block-editor-inserter:disabled { 755 display: none; 756 } 757 758 /** 759 * Fixed position appender (right bottom corner). 760 * 761 * These styles apply to all in-canvas inserters. All in-canvas inserters always 762 * exist within a block. 763 */ 764 .block-editor-block-list__block .block-list-appender { 765 position: absolute; 766 list-style: none; 767 padding: 0; 768 z-index: 2; 769 bottom: 0; 770 left: 0; 771 } 772 .block-editor-block-list__block .block-list-appender.block-list-appender { 773 margin: 0; 774 line-height: 0; 775 } 776 .block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled { 777 display: none; 778 } 779 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender { 780 height: 24px; 781 } 782 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 783 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { 784 background: #1e1e1e; 785 color: #fff; 786 padding: 0; 787 min-width: 24px; 788 height: 24px; 789 } 790 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover, 791 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover { 792 color: #fff; 793 background: var(--wp-admin-theme-color); 794 } 795 @media not (prefers-reduced-motion) { 796 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg, 797 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg { 798 transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; 799 } 800 } 801 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg, 802 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg { 803 transform: rotate(-45deg); 804 } 805 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 806 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { 807 flex-direction: row; 808 box-shadow: none; 809 width: 24px; 810 display: none; 811 padding: 0 !important; 812 } 813 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { 814 display: none; 815 } 816 .block-editor-block-list__block .block-list-appender:first-child { 817 position: relative; 818 left: auto; 819 align-self: center; 820 list-style: none; 821 line-height: inherit; 822 } 823 .block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content { 824 display: block; 825 } 826 827 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 828 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle, 829 .block-editor-block-list__block.is-selected > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, 830 .block-editor-block-list__block.is-selected > .block-list-appender .block-list-appender__toggle { 831 display: flex; 832 } 833 834 .block-editor-default-block-appender__content { 835 cursor: text; 836 } 837 838 .block-editor-iframe__body { 839 position: relative; 840 } 841 842 .block-editor-iframe__html { 843 transform-origin: top center; 844 } 845 @media not (prefers-reduced-motion) { 846 .block-editor-iframe__html { 847 transition: background-color 400ms; 848 } 849 } 850 .block-editor-iframe__html.zoom-out-animation { 851 position: fixed; 852 right: 0; 853 left: 0; 854 top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)); 855 bottom: 0; 856 overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); 857 } 858 .block-editor-iframe__html.is-zoomed-out { 859 transform: translateX(calc(-1*((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)))); 860 scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); 861 background-color: var(--wp-editor-canvas-background); 862 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)); 863 padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 864 padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); 865 } 866 .block-editor-iframe__html.is-zoomed-out body { 867 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)); 868 } 869 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { 870 flex: 1; 871 display: flex; 872 flex-direction: column; 873 height: 100%; 874 } 875 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) > main { 876 flex: 1; 877 } 878 .block-editor-iframe__html.is-zoomed-out .wp-block[draggable] { 879 cursor: grab; 880 } 881 882 .block-editor-media-placeholder__cancel-button.is-link { 883 margin: 1em; 884 display: block; 885 } 886 887 .block-editor-media-placeholder.is-appender { 888 min-height: 0; 889 } 890 .block-editor-media-placeholder.is-appender:hover { 891 cursor: var(--wpds-cursor-control, pointer); 892 box-shadow: 0 0 0 1px var(--wp-admin-theme-color); 893 } 894 895 .block-editor-plain-text { 896 box-shadow: none; 897 font-family: inherit; 898 font-size: inherit; 899 color: inherit; 900 line-height: inherit; 901 border: none; 902 padding: 0; 903 margin: 0; 904 } 905 906 .block-editor-plain-text { 907 width: 100%; 908 field-sizing: content; 909 } 910 911 .rich-text [data-rich-text-placeholder] { 912 pointer-events: none; 913 } 914 .rich-text [data-rich-text-placeholder]::after { 915 content: attr(data-rich-text-placeholder); 916 opacity: 0.62; 917 text-shadow: none; 918 } 919 .rich-text:focus { 920 outline: none; 921 } 922 923 figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before { 924 opacity: 0.8; 925 } 926 927 [data-rich-text-script] { 928 display: inline; 929 } 930 [data-rich-text-script]::before { 931 content: "</>"; 932 background: rgb(255, 255, 0); 933 } 934 935 [data-rich-text-comment], 936 [data-rich-text-format-boundary] { 937 border-radius: 2px; 938 } 939 940 [data-rich-text-comment] { 941 background-color: currentColor; 942 } 943 [data-rich-text-comment] span { 944 filter: invert(100%); 945 color: currentColor; 946 padding: 0 2px; 947 } 948 949 .rich-text [contenteditable=false]::selection { 950 background-color: transparent; 951 } 952 953 .is-selected .non-breaking-space { 954 background: radial-gradient(circle, #cc1818 2px, transparent 2.5px) center/100% 100% no-repeat; 955 } 956 957 .block-editor-warning { 958 align-items: center; 959 display: flex; 960 flex-wrap: wrap; 961 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 962 padding: 1em; 963 border: 1px solid #1e1e1e; 964 border-radius: 2px; 965 background-color: #fff; 966 } 967 .block-editor-warning .block-editor-warning__message { 968 line-height: 1.4; 969 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 970 font-size: 13px; 971 color: #1e1e1e; 972 margin: 0; 973 } 974 .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { 975 min-height: auto; 976 } 977 .block-editor-warning .block-editor-warning__contents { 978 display: flex; 979 flex-direction: row; 980 justify-content: space-between; 981 flex-wrap: wrap; 982 align-items: baseline; 983 width: 100%; 984 gap: 12px; 985 } 986 .block-editor-warning .block-editor-warning__actions { 987 align-items: center; 988 display: flex; 989 gap: 8px; 990 } 991 992 .components-popover.block-editor-warning__dropdown { 993 z-index: 99998; 994 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Oct 24 08:20:34 2026 | Cross-referenced by PHPXref |