UNPKG

@wordpress/block-editor

Version:
1,590 lines (1,485 loc) 136 kB
/** * Converts a hex value into the rgb equivalent. * * @param {string} hex - the hexadecimal value to convert * @return {string} comma separated rgb values */ /** * Colors */ /** * Breakpoints & Media Queries */ /** * SCSS Variables. * * Please use variables from this sheet to ensure consistency across the UI. * Don't add to this sheet unless you're pretty sure the value will be reused in many places. * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. */ /** * Converts a hex value into the rgb equivalent. * * @param {string} hex - the hexadecimal value to convert * @return {string} comma separated rgb values */ /** * Colors */ /** * Fonts & basic variables. */ /** * Typography */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ /** * Radius scale. */ /** * Elevation scale. */ /** * Dimensions. */ /** * Mobile specific styles */ /** * Editor styles. */ /** * Block & Editor UI. */ /** * Block paddings. */ /** * React Native specific. * These variables do not appear to be used anywhere else. */ /** * Converts a hex value into the rgb equivalent. * * @param {string} hex - the hexadecimal value to convert * @return {string} comma separated rgb values */ /** * Long content fade mixin * * Creates a fading overlay to signify that the content is longer * than the space allows. */ /** * Typography */ /** * Breakpoint mixins */ /** * Focus styles. */ /** * Applies editor left position to the selector passed as argument */ /** * Styles that are reused verbatim in a few places */ /** * Allows users to opt-out of animations via OS-level preferences. */ /** * Reset default styles for JavaScript UI based pages. * This is a WP-admin agnostic reset */ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ :root { --wp-admin-theme-color: #007cba; --wp-admin-theme-color--rgb: 0, 124, 186; --wp-admin-theme-color-darker-10: #006ba1; --wp-admin-theme-color-darker-10--rgb: 0, 107, 161; --wp-admin-theme-color-darker-20: #005a87; --wp-admin-theme-color-darker-20--rgb: 0, 90, 135; --wp-admin-border-width-focus: 2px; --wp-block-synced-color: #7a00df; --wp-block-synced-color--rgb: 122, 0, 223; --wp-bound-block-color: var(--wp-block-synced-color); } @media (min-resolution: 192dpi) { :root { --wp-admin-border-width-focus: 1.5px; } } .block-editor-autocompleters__block { white-space: nowrap; } .block-editor-autocompleters__block .block-editor-block-icon { margin-left: 8px; } .block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon { color: inherit !important; } .block-editor-autocompleters__link { white-space: nowrap; } .block-editor-autocompleters__link .block-editor-block-icon { margin-left: 8px; } .block-editor-global-styles-background-panel__inspector-media-replace-container { border: 1px solid #ddd; border-radius: 2px; grid-column: 1/-1; } .block-editor-global-styles-background-panel__inspector-media-replace-container.is-open { background-color: #f0f0f0; } .block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item { flex-grow: 1; border: 0; } .block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown { display: block; } .block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner { height: 100%; } .block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown { display: block; } .block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown .block-editor-global-styles-background-panel__dropdown-toggle { height: 40px; } .block-editor-global-styles-background-panel__image-tools-panel-item { border: 1px solid #ddd; grid-column: 1/-1; position: relative; } .block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon { display: none; } .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown { display: block; } .block-editor-global-styles-background-panel__image-tools-panel-item button.components-button { color: #1e1e1e; width: 100%; display: block; } .block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover { color: var(--wp-admin-theme-color); } .block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus { box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); } .block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading { height: 100%; position: absolute; z-index: 1; width: 100%; padding: 10px 0 0 0; } .block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg { margin: 0; } .block-editor-global-styles-background-panel__image-preview-content, .block-editor-global-styles-background-panel__dropdown-toggle { height: 100%; width: 100%; padding-right: 12px; } .block-editor-global-styles-background-panel__dropdown-toggle { cursor: pointer; background: transparent; border: none; } .block-editor-global-styles-background-panel__inspector-media-replace-title { word-break: break-all; white-space: normal; text-align: start; text-align-last: center; } .block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper { width: 20px; height: 20px; min-width: auto; } .block-editor-global-styles-background-panel__inspector-image-indicator { background-size: cover; border-radius: 50%; width: 20px; height: 20px; display: block; position: relative; } .block-editor-global-styles-background-panel__inspector-image-indicator::after { content: ""; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); border: 1px solid transparent; box-sizing: inherit; } .block-editor-global-styles-background-panel__dropdown-content-wrapper { min-width: 260px; overflow-x: hidden; } .block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper { background-color: #f0f0f0; width: 100%; border-radius: 2px; border: 1px solid #ddd; } .block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image { max-height: 180px; } .block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker::after { content: none; } .modal-open .block-editor-global-styles-background-panel__popover { z-index: 159890; } .block-editor-global-styles-background-panel__media-replace-popover .components-popover__content { width: 226px; } .block-editor-global-styles-background-panel__media-replace-popover .components-button { padding: 0 8px; } .block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right { margin-right: 16px; } .block-editor-block-alignment-control__menu-group .components-menu-item__info { margin-top: 0; } iframe[name=editor-canvas] { box-sizing: border-box; width: 100%; height: 100%; display: block; background-color: #ddd; } @media not (prefers-reduced-motion) { iframe[name=editor-canvas] { transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96); } } .block-editor-block-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; } .block-editor-block-icon.has-colors svg { fill: currentColor; } @media (forced-colors: active) { .block-editor-block-icon.has-colors svg { fill: CanvasText; } } .block-editor-block-icon svg { min-width: 20px; min-height: 20px; max-width: 24px; max-height: 24px; } .block-editor-block-inspector p:not(.components-base-control__help) { margin-top: 0; } .block-editor-block-inspector h2, .block-editor-block-inspector h3 { font-size: 13px; color: #1e1e1e; margin-bottom: 1.5em; } .block-editor-block-inspector .components-base-control:where(:not(:last-child)), .block-editor-block-inspector .components-radio-control:where(:not(:last-child)) { margin-bottom: 16px; } .block-editor-block-inspector .components-focal-point-picker-control .components-base-control, .block-editor-block-inspector .components-query-controls .components-base-control, .block-editor-block-inspector .components-range-control .components-base-control { margin-bottom: 0; } .block-editor-block-inspector .components-panel__body { border: none; border-top: 1px solid #e0e0e0; margin-top: -1px; } .block-editor-block-inspector__no-blocks, .block-editor-block-inspector__no-block-tools { display: block; font-size: 13px; background: #fff; padding: 32px 16px; text-align: center; } .block-editor-block-inspector__no-block-tools { border-top: 1px solid #ddd; } /** * Insertion Point. */ .block-editor-block-list__insertion-point { position: absolute; top: 0; bottom: 0; right: 0; left: 0; } .block-editor-block-list__insertion-point-indicator { position: absolute; background: var(--wp-admin-theme-color); border-radius: 2px; transform-origin: center; opacity: 0; will-change: transform, opacity; } .block-editor-block-list__insertion-point.is-vertical > .block-editor-block-list__insertion-point-indicator { top: calc(50% - 2px); height: 4px; width: 100%; } .block-editor-block-list__insertion-point.is-horizontal > .block-editor-block-list__insertion-point-indicator { top: 0; bottom: 0; right: calc(50% - 2px); width: 4px; } .block-editor-block-list__insertion-point-inserter { display: none; position: absolute; will-change: transform; justify-content: center; top: calc(50% - 12px); right: calc(50% - 12px); } @media (min-width: 480px) { .block-editor-block-list__insertion-point-inserter { display: flex; } } .block-editor-block-list__block-side-inserter-popover .components-popover__content > div { pointer-events: none; } .block-editor-block-list__block-side-inserter-popover .components-popover__content > div > * { pointer-events: all; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter { position: absolute; top: 0; left: 0; line-height: 0; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled { display: none; } .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon, .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon { background: #1e1e1e; color: #fff; padding: 0; min-width: 24px; height: 24px; } .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover, .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover { color: #fff; background: var(--wp-admin-theme-color); } .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon { background: var(--wp-admin-theme-color); } .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover { background: #1e1e1e; } @keyframes hide-during-dragging { to { position: fixed; transform: translate(-9999px, 9999px); } } .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar { pointer-events: all; margin-top: 8px; margin-bottom: 8px; border: 1px solid #1e1e1e; border-radius: 2px; overflow: visible; position: static; width: auto; } .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent { margin-right: calc(48px + 8px); } .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent { margin-right: 0; } .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar { overflow: visible; } .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group, .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar { border-left-color: #1e1e1e; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar { background-color: #1e1e1e; color: #f0f0f0; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar.block-editor-block-contextual-toolbar { border-color: #2f2f2f; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar button { color: #ddd; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar button:hover { color: #fff; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar button:focus::before { box-shadow: inset 0 0 0 1px #1e1e1e, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar button:disabled, .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar button[aria-disabled=true] { color: #757575; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar .block-editor-block-parent-selector .block-editor-block-parent-selector__button { border-color: #2f2f2f; background-color: #1e1e1e; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar .block-editor-block-switcher__toggle { color: #f0f0f0; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar .components-toolbar-group, .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar .components-toolbar { border-left-color: #2f2f2f !important; } .components-popover.block-editor-block-list__block-popover .is-inverted-toolbar .is-pressed { color: var(--wp-admin-theme-color); } .components-popover.block-editor-block-list__block-popover.is-insertion-point-visible { visibility: hidden; } .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { opacity: 0; } @media not (prefers-reduced-motion) { .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { animation: hide-during-dragging 1ms linear forwards; } } .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector { position: absolute; right: calc(-48px - 8px - 1px); } .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector::before { content: ""; } .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button { border: 1px solid #1e1e1e; padding-left: 6px; padding-right: 6px; background-color: #fff; } .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button { padding-left: 12px; padding-right: 12px; } .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector { position: relative; right: auto; margin-right: -1px; } .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container, .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover { border-right: 1px solid #1e1e1e; } .is-dragging-components-draggable .components-tooltip { display: none; } .components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button { pointer-events: all; position: absolute; transform: translateX(50%) translateY(-50%); top: 50%; right: 50%; } .block-editor-block-lock-modal { z-index: 1000001; } @media (min-width: 600px) { .block-editor-block-lock-modal .components-modal__frame { max-width: 480px; } } .block-editor-block-lock-modal__options legend { margin-bottom: 16px; padding: 0; } .block-editor-block-lock-modal__checklist { margin: 0; } .block-editor-block-lock-modal__options-all { padding: 12px 0; } .block-editor-block-lock-modal__options-all .components-checkbox-control__label { font-weight: 600; } .block-editor-block-lock-modal__checklist-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 0; padding: 12px 32px 12px 0; } .block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon { flex-shrink: 0; margin-left: 12px; fill: #1e1e1e; } .block-editor-block-lock-modal__checklist-item:hover { background-color: #f0f0f0; border-radius: 2px; } .block-editor-block-lock-modal__template-lock { border-top: 1px solid #ddd; margin-top: 16px; padding-top: 16px; } .block-editor-block-lock-modal__actions { margin-top: 24px; } .block-editor-block-lock-toolbar .components-button.has-icon { min-width: 36px !important; } .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar { margin-right: -6px !important; } .show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar { border-right: 1px solid #1e1e1e; margin-right: 6px !important; margin-left: -6px; } .block-editor-block-breadcrumb { list-style: none; padding: 0; margin: 0; } .block-editor-block-breadcrumb li { display: inline-flex; margin: 0; } .block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator { fill: currentColor; margin-right: -4px; margin-left: -4px; transform: scaleX(-1);; } .block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator { display: none; } .block-editor-block-breadcrumb__current { cursor: default; } .block-editor-block-breadcrumb__button.block-editor-block-breadcrumb__button, .block-editor-block-breadcrumb__current { color: #1e1e1e; padding: 0 8px; font-size: inherit; } .block-editor-block-card { align-items: flex-start; color: #1e1e1e; display: flex; padding: 16px; } .block-editor-block-card__title { font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; } .block-editor-block-card__title.block-editor-block-card__title { font-size: 13px; line-height: 1.4; margin: 0; } .block-editor-block-card__name { padding: 3px 0; } .block-editor-block-card .block-editor-block-icon { flex: 0 0 24px; margin-right: 0; margin-left: 12px; width: 24px; height: 24px; } .block-editor-block-card.is-synced .block-editor-block-icon { color: var(--wp-block-synced-color); } /** * Invalid block comparison */ .block-editor-block-compare { height: auto; } .block-editor-block-compare__wrapper { display: flex; padding-bottom: 16px; } .block-editor-block-compare__wrapper > div { display: flex; justify-content: space-between; flex-direction: column; width: 50%; padding: 0 0 0 16px; min-width: 200px; max-width: 600px; } .block-editor-block-compare__wrapper > div button { float: left; } .block-editor-block-compare__wrapper .block-editor-block-compare__converted { border-right: 1px solid #ddd; padding-right: 15px; padding-left: 0; } .block-editor-block-compare__wrapper .block-editor-block-compare__html { font-family: Menlo, Consolas, monaco, monospace; font-size: 12px; color: #1e1e1e; border-bottom: 1px solid #ddd; padding-bottom: 15px; line-height: 1.7; } .block-editor-block-compare__wrapper .block-editor-block-compare__html span { background-color: #e6ffed; padding-top: 3px; padding-bottom: 3px; } .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added { background-color: #acf2bd; } .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed { background-color: #cc1818; } .block-editor-block-compare__wrapper .block-editor-block-compare__preview { padding: 0; padding-top: 16px; } .block-editor-block-compare__wrapper .block-editor-block-compare__preview p { font-size: 12px; margin-top: 0; } .block-editor-block-compare__wrapper .block-editor-block-compare__action { margin-top: 16px; } .block-editor-block-compare__wrapper .block-editor-block-compare__heading { font-size: 1em; font-weight: 400; margin: 0.67em 0; } .block-editor-block-draggable-chip-wrapper { position: absolute; top: -24px; right: 0; } .block-editor-block-draggable-chip { background-color: #1e1e1e; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02); color: #fff; cursor: grabbing; display: inline-flex; height: 48px; padding: 0 13px; position: relative; -webkit-user-select: none; user-select: none; width: max-content; } .block-editor-block-draggable-chip svg { fill: currentColor; } .block-editor-block-draggable-chip .block-editor-block-draggable-chip__content { margin: auto; justify-content: flex-start; } .block-editor-block-draggable-chip .block-editor-block-draggable-chip__content > .components-flex__item { margin-left: 6px; } .block-editor-block-draggable-chip .block-editor-block-draggable-chip__content > .components-flex__item:last-child { margin-left: 0; } .block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg { min-width: 18px; min-height: 18px; } .block-editor-block-draggable-chip .components-flex__item { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; } .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled { opacity: 0; position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; background-color: transparent; } @media not (prefers-reduced-motion) { .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled { transition: all 0.1s linear 0.1s; } } .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon { width: 20px; height: 20px; box-shadow: inset 0 0 0 1.5px #fff; border-radius: 50%; display: inline-block; padding: 0; background: transparent linear-gradient(45deg, transparent 47.5%, #fff 47.5%, #fff 52.5%, transparent 52.5%); } .block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled { background-color: #757575; opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02); } .block-editor-block-manager__no-results { font-style: italic; padding: 24px 0; text-align: center; } .block-editor-block-manager__search { margin: 16px 0; } .block-editor-block-manager__disabled-blocks-count { border: 1px solid #ddd; border-width: 1px 0; box-shadow: 32px 0 0 0 #fff, -32px 0 0 0 #fff; padding: 8px; background-color: #fff; text-align: center; position: sticky; top: -5px; z-index: 2; } .block-editor-block-manager__disabled-blocks-count ~ .block-editor-block-manager__results .block-editor-block-manager__category-title { top: 31px; } .block-editor-block-manager__disabled-blocks-count .is-link { margin-right: 12px; } .block-editor-block-manager__category { margin: 0 0 24px 0; } .block-editor-block-manager__category-title { position: sticky; top: -4px; padding: 16px 0; background-color: #fff; z-index: 1; } .block-editor-block-manager__category-title .components-checkbox-control__label { font-weight: 600; } .block-editor-block-manager__checklist { margin-top: 0; } .block-editor-block-manager__category-title, .block-editor-block-manager__checklist-item { border-bottom: 1px solid #ddd; } .block-editor-block-manager__checklist-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; padding: 8px 16px 8px 0; } .components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container { margin: 0 8px; } .block-editor-block-manager__checklist-item .block-editor-block-icon { margin-left: 10px; fill: #1e1e1e; } .block-editor-block-manager__results { border-top: 1px solid #ddd; } .block-editor-block-manager__disabled-blocks-count + .block-editor-block-manager__results { border-top-width: 0; } .block-editor-block-mover__move-button-container { display: flex; padding: 0; border: none; justify-content: center; } @media (min-width: 600px) { .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container { flex-direction: column; } .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container > * { height: 20px; width: 100%; min-width: 0 !important; } .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container > *::before { height: calc(100% - 4px); } .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg { top: 3px; flex-shrink: 0; } .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg { bottom: 3px; flex-shrink: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container { width: 48px; } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container > * { width: 24px; min-width: 0 !important; overflow: hidden; } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button { padding-right: 0; padding-left: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg { right: 5px; } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg { left: 5px; } } .block-editor-block-mover__drag-handle { cursor: grab; } @media (min-width: 600px) { .block-editor-block-mover__drag-handle { width: 24px; min-width: 0 !important; overflow: hidden; } .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon { padding-right: 0; padding-left: 0; } } .components-button.block-editor-block-mover-button { overflow: hidden; } .components-button.block-editor-block-mover-button::before { content: ""; position: absolute; display: block; border-radius: 2px; height: 32px; right: 8px; left: 8px; z-index: -1; } @media not (prefers-reduced-motion) { .components-button.block-editor-block-mover-button::before { animation: components-button__appear-animation 0.1s ease; animation-fill-mode: forwards; } } .components-button.block-editor-block-mover-button:focus, .components-button.block-editor-block-mover-button:focus:enabled, .components-button.block-editor-block-mover-button:focus::before { box-shadow: none; outline: none; } .components-button.block-editor-block-mover-button:focus-visible::before { box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-navigation__container { min-width: 280px; } .block-editor-block-navigation__label { margin: 0 0 12px; color: #757575; text-transform: uppercase; font-size: 11px; font-weight: 500; } .block-editor-block-patterns-list__list-item { cursor: pointer; margin-bottom: 16px; position: relative; } .block-editor-block-patterns-list__list-item.is-placeholder { min-height: 100px; } .block-editor-block-patterns-list__list-item[draggable=true] { cursor: grab; } .block-editor-block-patterns-list__item { height: 100%; scroll-margin-top: 24px; scroll-margin-bottom: 56px; outline: 0; } .block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title { flex-grow: 1; font-size: 12px; text-align: right; } .block-editor-block-patterns-list__item .block-editor-block-preview__container { display: flex; align-items: center; overflow: hidden; border-radius: 4px; } .block-editor-block-patterns-list__item .block-editor-block-preview__container::after { outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; border-radius: 4px; } @media not (prefers-reduced-motion) { .block-editor-block-patterns-list__item .block-editor-block-preview__container::after { transition: outline 0.1s linear; } } .block-editor-block-patterns-list__item.is-selected .block-editor-block-preview__container::after { outline-color: #1e1e1e; outline-width: var(--wp-admin-border-width-focus); outline-offset: calc(-1 * var(--wp-admin-border-width-focus)); } .block-editor-block-patterns-list__item:hover .block-editor-block-preview__container::after { outline-color: rgba(0, 0, 0, 0.3); } .block-editor-block-patterns-list__item[data-focus-visible] .block-editor-block-preview__container::after { outline-color: var(--wp-admin-theme-color); outline-width: var(--wp-admin-border-width-focus); outline-offset: calc(-1 * var(--wp-admin-border-width-focus)); } .block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty) { align-items: center; margin-top: 8px; padding-bottom: 4px; } .block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper { min-width: 24px; height: 24px; } .block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon { fill: var(--wp-block-synced-color); } .block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination { border-top: 1px solid #2f2f2f; padding: 4px; justify-content: center; } .show-icon-labels .block-editor-patterns__grid-pagination-button { width: auto; } .show-icon-labels .block-editor-patterns__grid-pagination-button span { display: none; } .show-icon-labels .block-editor-patterns__grid-pagination-button::before { content: attr(aria-label); } .components-popover.block-editor-block-popover { z-index: 31; position: absolute; margin: 0 !important; pointer-events: none; } .components-popover.block-editor-block-popover .components-popover__content { margin: 0 !important; min-width: auto; width: max-content; overflow-y: visible; } .components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween, .block-editor-block-popover__drop-zone, .block-editor-block-list__block-side-inserter-popover) .components-popover__content * { pointer-events: all; } .components-popover.block-editor-block-popover__inbetween { pointer-events: none; } .components-popover.block-editor-block-popover__inbetween * { pointer-events: none; } .components-popover.block-editor-block-popover__inbetween .is-with-inserter { pointer-events: all; } .components-popover.block-editor-block-popover__inbetween .is-with-inserter * { pointer-events: all; } .components-popover.block-editor-block-popover__drop-zone * { pointer-events: none; } .components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground { position: absolute; inset: 0; background-color: var(--wp-admin-theme-color); border-radius: 2px; } .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; } .block-editor-block-preview__container .block-editor-block-preview__content { width: 100%; top: 0; right: 0; transform-origin: top right; text-align: initial; margin: 0; overflow: visible; min-height: auto; } .block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point, .block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender { display: none; } .block-editor-block-preview__container::after { content: ""; position: absolute; top: 0; right: 0; left: 0; bottom: 0; z-index: 1; } .block-editor-block-rename-modal { z-index: 1000001; } .block-editor-block-styles__preview-panel { display: none; z-index: 90; } @media (min-width: 782px) { .block-editor-block-styles__preview-panel { display: block; } } .block-editor-block-styles__preview-panel .block-editor-block-icon { display: none; } .block-editor-block-styles__variants { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; } .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item { color: #1e1e1e; box-shadow: inset 0 0 0 1px #ddd; display: inline-block; width: calc(50% - 4px); } .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover { color: var(--wp-admin-theme-color); box-shadow: inset 0 0 0 1px #ddd; } .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover { background-color: #1e1e1e; box-shadow: none; } .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text { color: #fff; } .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus { box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-styles__variants .block-editor-block-styles__item-text { word-break: break-all; white-space: normal; text-align: start; text-align-last: center; } .block-editor-block-styles__block-preview-container, .block-editor-block-styles__block-preview-container * { box-sizing: border-box !important; } .block-editor-block-switcher { position: relative; } .block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon { min-width: 36px; } .block-editor-block-switcher__no-switcher-icon, .block-editor-block-switcher__toggle { position: relative; } .components-button.block-editor-block-switcher__toggle, .components-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; height: 48px; } .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin: auto; } .components-button.block-editor-block-switcher__no-switcher-icon { display: flex; } .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin-left: auto; margin-right: auto; min-width: 24px !important; } .components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true] { color: #1e1e1e; } .components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true]:hover { color: #1e1e1e; } .components-popover.block-editor-block-switcher__popover .components-popover__content { min-width: 300px; } .block-editor-block-switcher__popover-preview-container { right: 0; position: absolute; top: -1px; width: 100%; bottom: 0; pointer-events: none; } .block-editor-block-switcher__popover-preview { overflow: hidden; } .block-editor-block-switcher__popover-preview .components-popover__content { width: 300px; border: 1px solid #1e1e1e; background: #fff; border-radius: 4px; outline: none; box-shadow: none; overflow: auto; } .block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview { max-height: calc(500px - 32px); margin: 16px 0; padding: 0 16px; overflow: hidden; } .block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview { overflow: unset; } .block-editor-block-switcher__preview-title { margin-bottom: 12px; color: #757575; text-transform: uppercase; font-size: 11px; font-weight: 500; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { min-width: 36px; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle { height: 48px; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { width: 48px; height: 48px; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { padding: 12px; } .block-editor-block-switcher__preview-patterns-container { padding-bottom: 16px; } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item { margin-top: 16px; } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container { cursor: pointer; } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item { height: 100%; border-radius: 2px; position: relative; border: 1px solid transparent; } @media not (prefers-reduced-motion) { .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item { transition: all 0.05s ease-in-out; } } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover, .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus { box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover { box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e; } .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title { padding: 4px; font-size: 12px; text-align: center; cursor: pointer; } .block-editor-block-switcher__no-transforms { color: #757575; padding: 6px 8px; margin: 0; } .block-editor-block-switcher__binding-indicator { display: block; padding: 8px; } .block-editor-block-types-list > [role=presentation] { overflow: hidden; display: flex; flex-wrap: wrap; } .block-editor-block-pattern-setup { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; border-radius: 2px; } .block-editor-block-pattern-setup.view-mode-grid { padding-top: 4px; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar { justify-content: center; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container { column-gap: 24px; display: block; width: 100%; padding: 32px; padding-bottom: 0; padding-top: 0; column-count: 2; } @media (min-width: 1440px) { .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container { column-count: 3; } } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container, .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button] { cursor: pointer; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item { scroll-margin: 5px 0; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container { box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container { box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color); outline: 2px solid transparent; outline-offset: 2px; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title, .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title { color: var(--wp-admin-theme-color); } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item { break-inside: avoid-column; margin-bottom: 24px; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title { padding-top: 8px; font-size: 12px; text-align: center; cursor: pointer; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container { min-height: 100px; border-radius: 4px; border: 1px solid #ddd; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content { width: 100%; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar { height: 60px; box-sizing: border-box; padding: 16px; width: 100%; text-align: right; margin: 0; color: #1e1e1e; position: absolute; bottom: 0; background-color: #fff; display: flex; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid #ddd; align-self: stretch; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls { display: flex; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation, .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions { width: calc(50% - 36px); display: flex; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions { justify-content: flex-end; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container { display: flex; flex-direction: column; width: 100%; height: 100%; box-sizing: border-box; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container { overflow: hidden; position: relative; padding: 0; margin: 0; height: 100%; list-style: none; transform-style: preserve-3d; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container * { box-sizing: border-box; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide { position: absolute; top: 0; width: 100%; height: 100%; background-color: #fff; margin: auto; padding: 0; z-index: 100; } @media not (prefers-reduced-motion) { .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide { transition: transform 0.5s, z-index 0.5s; } } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide { opacity: 1; position: relative; z-index: 102; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide { transform: translateX(100%); z-index: 101; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide { transform: translateX(-100%); z-index: 101; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender { display: none; } .block-editor-block-pattern-setup__carousel, .block-editor-block-pattern-setup__grid { width: 100%; } .block-editor-block-variation-transforms { padding: 0 52px 16px 16px; width: 100%; } .block-editor-block-variation-transforms .components-dropdown-menu__toggle { border: 1px solid #757575; border-radius: 2px; min-height: 30px; width: 100%; position: relative; text-align: right; justify-content: right; padding: 6px 12px; } .block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle { padding-left: 24px; } .block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled) { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color); } .block-editor-block-variation-transforms .components-dropdown-menu__toggle svg { height: 100%; padding: 0; position: absolute; left: 0; top: 0; } .block-editor-block-variation-transforms__popover .components-popover__content { min-width: 230px; } .components-border-radius-control { margin-bottom: 12px; } .components-border-radius-control legend { margin-bottom: 8px; } .components-border-radius-control .components-border-radius-control__wrapper { display: flex; justify-content: space-between; align-items: flex-start; } .components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control { width: calc((100% - 16px) / 2); margin-bottom: 0; margin-left: 16px; flex-shrink: 0; } .components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control { flex: 1; margin-left: 12px; } .components-border-radius-control .components-border-radius-control__input-controls-wrapper { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 12px; } .components-border-radius-control .component-border-radius-control__linked-button { display: flex; justify-content: center; margin-top: 8px; } .components-border-radius-control .component-border-radius-control__linked-button svg { margin-left: 0; } .block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator { margin-bottom: 12px; } .block-editor-color-gradient-control__fieldset { min-width: 0; } .block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings, .block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings > div:not(:first-of-type) { display: block; } @media screen and (min-width: 782px) { .block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches { display: grid; grid-template-columns: repeat(6, 28px); } } .block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control { margin-bottom: inherit; } .block-editor-panel-color-gradient-settings__