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