UNPKG

@gechiui/block-editor

Version:
1,583 lines (1,491 loc) 129 kB
/** * 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. */ /** * Colors */ /** * Fonts & basic variables. */ /** * Grid System. * https://make.gechiui.com/design/2019/10/31/proposal-a-consistent-spacing-system-for-gechiui/ */ /** * Dimensions. */ /** * Shadows. */ /** * Editor widths. */ /** * 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 */ /** * Breakpoint mixins */ /** * Long content fade mixin * * Creates a fading overlay to signify that the content is longer * than the space allows. */ /** * 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 GC-admin agnostic reset */ /** * Reset the GC Admin page styles for Gutenberg-like pages. */ :root { --gc-admin-theme-color: #007cba; --gc-admin-theme-color--rgb: 0, 124, 186; --gc-admin-theme-color-darker-10: #006ba1; --gc-admin-theme-color-darker-10--rgb: 0, 107, 161; --gc-admin-theme-color-darker-20: #005a87; --gc-admin-theme-color-darker-20--rgb: 0, 90, 135; --gc-admin-border-width-focus: 2px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { :root { --gc-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-block-alignment-control__menu-group .components-menu-item__info { margin-top: 0; } .block-editor-block-alignment-matrix-control__popover .components-popover__content { min-width: 0; width: auto; } .block-editor-block-alignment-matrix-control__popover .components-popover__content > div { padding: 8px; } .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 { 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 { margin-bottom: 24px; } .block-editor-block-inspector .components-base-control:last-child { margin-bottom: 8px; } .block-editor-block-inspector .components-panel__body { border: none; border-top: 1px solid #e0e0e0; } .block-editor-block-inspector .block-editor-block-card { padding: 16px; } .block-editor-block-inspector__no-blocks { display: block; font-size: 13px; background: #fff; padding: 32px 16px; text-align: center; } .block-editor-block-styles .block-editor-block-list__block { margin: 0; } /** * Notices & Block Selected/Hover Styles. */ /** * Cross-Block Selection */ .block-editor-block-list__layout { position: relative; } .block-editor-block-list__layout.is-navigate-mode { cursor: default; } .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected::after, .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered::after, .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { position: absolute; z-index: 1; pointer-events: none; content: ""; top: 1px; bottom: 1px; right: 1px; left: 1px; box-shadow: 0 0 0 1px var(--gc-admin-theme-color); border-radius: 1px; outline: 2px solid transparent; } .is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected::after, .is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { box-shadow: 0 0 0 1px #fff; } .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected .components-placeholder ::selection, .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered .components-placeholder ::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { background: transparent; } .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered:not(.is-selected)::after { box-shadow: 0 0 0 1px var(--gc-admin-theme-color); } .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after { box-shadow: 0 0 0 1px var(--gc-admin-theme-color); outline: 1px solid transparent; } .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after, .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected::after, .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected { box-shadow: 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::before { content: ""; position: absolute; z-index: 0; pointer-events: none; transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; left: 0; right: 0; top: -14px; border-radius: 2px; border-top: 4px solid #ccc; } .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::after { content: none; } .block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected::before { border-color: var(--gc-admin-theme-color); } .is-block-moving-mode.block-editor-block-list__block-selection-button { opacity: 0; font-size: 1px; height: 1px; padding: 0; } .block-editor-block-list__layout .block-editor-block-list__block { position: relative; overflow-wrap: break-word; /** * Notices */ /** * Block Layout */ /** * Block styles and alignments */ } .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { z-index: 1; } .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { margin: -10px 0 12px 0; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { margin: 0 0 12px 0; width: 100%; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice { margin-right: 0; margin-left: 0; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { font-size: 13px; } .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus { outline: none; } .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { position: absolute; z-index: 1; pointer-events: none; content: ""; top: 1px; bottom: 1px; right: 1px; left: 1px; box-shadow: 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); border-radius: 1px; outline: 2px solid transparent; } .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { box-shadow: 0 0 0 var(--gc-admin-border-width-focus) #fff; } .block-editor-block-list__layout .block-editor-block-list__block::after { content: ""; pointer-events: none; position: absolute; top: 0; left: 0; bottom: 0; right: 0; border-radius: 2px; box-shadow: 0 0 0 var(--gc-admin-border-width-focus) transparent; } .block-editor-block-list__layout .block-editor-block-list__block.has-warning { min-height: 48px; } .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { pointer-events: none; -webkit-user-select: none; user-select: none; } .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { pointer-events: all; } .block-editor-block-list__layout .block-editor-block-list__block.has-warning::after { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; border-radius: 2px; background-color: rgba(255, 255, 255, 0.4); } .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after { background-color: transparent; } .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after { display: none; } .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after { display: block; } .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected::after { box-shadow: 0 0 0 1px var(--gc-admin-theme-color); } .block-editor-block-list__layout .block-editor-block-list__block[data-clear=true] { float: none; } .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered { cursor: default; } .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered::after { top: 1px; right: 1px; left: 1px; bottom: 1px; box-shadow: 0 0 0 1px var(--gc-admin-theme-color); border-radius: 1px; } .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected { cursor: unset; } .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected::after { box-shadow: 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); top: 1px; right: 1px; left: 1px; bottom: 1px; border-radius: 1px; } .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus::after { box-shadow: 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); } .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) { opacity: 0.5; transition: opacity 0.1s linear; } @media (prefers-reduced-motion: reduce) { .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) { transition-duration: 0s; transition-delay: 0s; } } .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 { opacity: 1; } .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity { opacity: 0.5; transition: opacity 0.1s linear; } @media (prefers-reduced-motion: reduce) { .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity { transition-duration: 0s; transition-delay: 0s; } } .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.is-active-entity, .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.has-child-selected, .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity:not(.has-child-selected) .block-editor-block-list__block, .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.is-active-entity .block-editor-block-list__block, .is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity .is-active-entity .block-editor-block-list__block { opacity: 1; } .gc-block[data-align=left] > *, .gc-block[data-align=right] > * { z-index: 21; } .gc-site-blocks > [data-align=left] { float: right; margin-left: 2em; } .gc-site-blocks > [data-align=right] { float: left; margin-right: 2em; } .gc-site-blocks > [data-align=center] { justify-content: center; margin-right: auto; margin-left: auto; } /** * In-Canvas Inserter */ .block-editor-block-list .block-editor-inserter { margin: 8px; cursor: move; cursor: grab; } @keyframes block-editor-inserter__toggle__fade-in-animation { from { opacity: 0; } to { opacity: 1; } } .gc-block .block-list-appender .block-editor-inserter__toggle { animation: block-editor-inserter__toggle__fade-in-animation 0.1s ease; animation-fill-mode: forwards; } @media (prefers-reduced-motion: reduce) { .gc-block .block-list-appender .block-editor-inserter__toggle { animation-duration: 1ms; animation-delay: 0s; } } .block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender { display: none; } .block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle { opacity: 0; transform: scale(0); } .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; padding: 12px; width: 100%; border: none; outline: none; border-radius: 2px; box-shadow: inset 0 0 0 1px #1e1e1e; resize: none; overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; font-size: 15px; line-height: 1.5; transition: padding 0.2s linear; } @media (prefers-reduced-motion: reduce) { .block-editor-block-list__block .block-editor-block-list__block-html-textarea { transition-duration: 0s; transition-delay: 0s; } } .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { box-shadow: inset 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); } /** * Warnings. */ .block-editor-block-list__block .block-editor-warning { z-index: 5; position: relative; } .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning { margin-bottom: auto; } /** * Insertion Point. */ .block-editor-block-list__insertion-point { position: absolute; } .block-editor-block-list__insertion-point-indicator { position: absolute; background: var(--gc-admin-theme-color); } .block-editor-block-list__insertion-point.is-vertical > .block-editor-block-list__insertion-point-indicator { top: 50%; height: 1px; } .block-editor-block-list__insertion-point.is-horizontal > .block-editor-block-list__insertion-point-indicator { top: 0; left: 0; right: 50%; width: 1px; } .block-editor-block-list__insertion-point-inserter { display: none; position: absolute; 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-popover-inserter { position: absolute; top: -9999em; margin-bottom: 14px; } .block-editor-block-list__block-popover-inserter.is-visible { position: static; } .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon, .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon, .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon, .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon { background: #1e1e1e; border-radius: 2px; 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-default-block-appender .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, .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover { color: #fff; background: var(--gc-admin-theme-color); } .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon { background: var(--gc-admin-theme-color); } .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover { background: #1e1e1e; } /** * Block Toolbar when contextual. */ .block-editor-block-contextual-toolbar { display: inline-flex; border: 1px solid #1e1e1e; border-radius: 2px; background-color: #fff; } .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group, .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar { border-left-color: #1e1e1e; } .block-editor-block-contextual-toolbar.is-fixed { position: sticky; top: 0; width: 100%; z-index: 31; min-height: 48px; display: block; border: none; border-bottom: 1px solid #e0e0e0; border-radius: 0; } .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group, .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar { border-left-color: #e0e0e0; } .block-editor-block-contextual-toolbar .block-editor-block-mover-button { overflow: hidden; } .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button svg { min-width: 24px; } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { right: 0 !important; min-width: 0; width: 100%; } @media (min-width: 600px) { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { top: 5px; } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { bottom: 5px; } } /** * Block Label for Navigation/Selection Mode */ .block-editor-block-list__block-selection-button { display: inline-flex; padding: 0 12px; z-index: 22; border-radius: 2px; background-color: #1e1e1e; font-size: 13px; height: 48px; } .block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content { margin: auto; display: inline-flex; align-items: center; } .block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content > .components-flex__item { margin-left: 6px; } .block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle { cursor: grab; padding: 0; height: 24px; min-width: 24px; margin-right: -2px; } .block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg { min-width: 18px; min-height: 18px; } .block-editor-block-list__block-selection-button .block-editor-block-icon { font-size: 13px; color: #fff; height: 48px; } .block-editor-block-list__block-selection-button .components-button { min-width: 36px; color: #fff; height: 48px; display: flex; } .block-editor-block-list__block-selection-button .components-button:focus { box-shadow: none; border: none; } .block-editor-block-list__block-selection-button .components-button:active { color: #fff; } .block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button { padding: 0; } /** * Popovers. */ .block-editor-block-list__insertion-point-popover.is-without-arrow { z-index: 28; position: absolute; pointer-events: none; } .block-editor-block-list__insertion-point-popover.is-without-arrow * { pointer-events: none; } .block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter { pointer-events: all; } .block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter * { pointer-events: all; } .block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content { background: none; border: none; box-shadow: none; overflow-y: visible; margin-right: 0; } @keyframes hide-during-dragging { to { position: fixed; transform: translate(-9999px, 9999px); } } .components-popover.block-editor-block-list__block-popover { z-index: 31; position: absolute; } .components-popover.block-editor-block-list__block-popover .components-popover__content { margin: 0 !important; min-width: auto; width: max-content; background: none; border: none; box-shadow: none; overflow-y: visible; pointer-events: none; } .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button, .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar, .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__empty-block-inserter { pointer-events: all; } .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button, .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar { margin-top: 12px; margin-bottom: 12px; } .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; animation: hide-during-dragging 1ms linear forwards; } .is-dragging-components-draggable .components-tooltip { display: none; } .is-vertical .block-list-appender { width: 24px; margin-left: auto; margin-top: 12px; margin-right: 12px; } .block-list-appender > .block-editor-inserter { display: block; } .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 { opacity: 0; transform: scale(0); } .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__button.components-button { height: 24px; line-height: 24px; padding: 0; position: relative; } .block-editor-block-breadcrumb__button.components-button:hover:not(:disabled) { text-decoration: underline; box-shadow: none; } .block-editor-block-breadcrumb__button.components-button:focus { box-shadow: none; } .block-editor-block-breadcrumb__button.components-button:focus::before { content: ""; display: block; position: absolute; border-radius: 2px; top: 1px; left: 1px; bottom: 1px; right: 1px; box-shadow: inset 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); } .block-editor-block-breadcrumb__current { cursor: default; } .block-editor-block-breadcrumb__button.components-button, .block-editor-block-breadcrumb__current { color: #1e1e1e; padding: 0 8px; font-size: inherit; } .block-editor-block-card { display: flex; align-items: flex-start; } .block-editor-block-card__content { flex-grow: 1; margin-bottom: 4px; } .block-editor-block-card__title { font-weight: 500; } .block-editor-block-card__title.block-editor-block-card__title { line-height: 24px; margin: 0 0 4px; } .block-editor-block-card__description { font-size: 13px; } .block-editor-block-card .block-editor-block-icon { flex: 0 0 24px; margin-right: 0; margin-left: 12px; width: 24px; height: 24px; } /** * 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-content-overlay.overlay-active::before { content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: transparent; border: none; border-radius: 2px; z-index: 10; pointer-events: none; } .block-editor-block-content-overlay:hover:not(.is-dragging-blocks).overlay-active::before, .block-editor-block-content-overlay.parent-highlighted.overlay-active::before { background: rgba(var(--gc-admin-theme-color--rgb), 0.1); box-shadow: 0 0 0 1px var(--gc-admin-theme-color) inset; } .block-editor-block-content-overlay.overlay-active:not(.is-dragging-blocks) * { pointer-events: none; } .block-editor-block-content-overlay.is-dragging-blocks { box-shadow: 0 0 0 1px var(--gc-admin-theme-color); } .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 6px 8px rgba(0, 0, 0, 0.3); color: #fff; cursor: grabbing; display: inline-flex; height: 48px; padding: 0 13px; -webkit-user-select: none; user-select: none; } .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-list__layout .is-dragging { background-color: currentColor !important; opacity: 0.05 !important; border-radius: 2px !important; pointer-events: none !important; } .block-editor-block-list__layout .is-dragging::selection { background: transparent !important; } .block-editor-block-list__layout .is-dragging::after { content: none !important; } .block-editor-block-mobile-toolbar { display: flex; flex-direction: row; border-left: 1px solid #ddd; } .block-editor-block-mobile-toolbar .block-editor-block-mover-button { width: 36px; height: 36px; border-radius: 2px; padding: 3px; margin: 0; justify-content: center; align-items: center; } .block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon { margin: auto; } .block-editor-block-mobile-toolbar .block-editor-block-mover { display: flex; margin-left: auto; } .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button { float: right; } .block-editor-block-mover-button__description { display: none; } .block-editor-block-mover-button.has-icon { padding: 0; } .block-editor-block-mover { display: inline-flex; flex-direction: row; } .block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex: 1; flex-direction: row; border-left: none !important; } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex-direction: column; } } .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, .block-editor-block-mover.is-horizontal .components-toolbar { flex-direction: row; } .block-editor-block-mover .block-editor-block-mover-button.block-editor-block-mover-button { padding-left: 0; padding-right: 0; min-width: 36px; } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button { height: 24px; width: 42px; padding-left: 11px !important; padding-right: 6px !important; } .block-editor-block-mover .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 42px; } } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button::before { right: 8px !important; left: 8px !important; } } .block-editor-block-mover .block-editor-block-mover__drag-handle { width: 24px; cursor: grab; min-width: 24px !important; padding: 0 !important; } .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { right: 0 !important; left: 0 !important; } @media (min-width: 600px) { .block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button, .block-editor-block-mover .components-toolbar .block-editor-block-mover-button { margin: 0 0 0 auto; } .block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before, .block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before { bottom: 0; height: calc(100% - 1px); } .block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before, .block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before { top: 0; height: calc(100% - 1px); } } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { height: 48px; width: 24px; padding-right: 0; padding-left: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { top: 1px; bottom: 1px; min-width: 0; width: auto; height: auto; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg { margin-right: 0; margin-left: -8px; margin-bottom: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before { right: 0 !important; left: 0 !important; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg { margin-right: -8px; margin-left: 0; margin-top: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before { right: 0 !important; left: 0 !important; width: calc(100% + 1px); } .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-parent-selector { background: #fff; border-radius: 2px; } .block-editor-block-parent-selector .block-editor-block-parent-selector__button { width: 48px; height: 48px; border: 1px solid #1e1e1e; border-radius: 2px; } .block-editor-block-patterns-list__list-item { cursor: pointer; margin-bottom: 24px; } .block-editor-block-patterns-list__list-item.is-placeholder { min-height: 100px; } .block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container { cursor: grab; } .block-editor-block-patterns-list__item { height: 100%; } .block-editor-block-patterns-list__item .block-editor-block-preview__container { display: flex; align-items: center; overflow: hidden; border-radius: 2px; border: 1px solid #f0f0f0; } .block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title { padding-top: 8px; font-size: 12px; text-align: center; } .block-editor-block-patterns-list__item:hover .block-editor-block-preview__container { border: 1px solid var(--gc-admin-theme-color); } .block-editor-block-patterns-list__item:focus .block-editor-block-preview__container { box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title, .block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title { color: var(--gc-admin-theme-color); } .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; } .block-editor-block-preview__container .block-editor-block-preview__content { 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-editor-block-drop-zone, .block-editor-block-preview__container .block-editor-block-preview__content .reusable-block-indicator, .block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender { display: none; } .block-editor-block-preview__content-iframe .block-list-appender { display: none; } .block-editor-block-preview__live-content * { pointer-events: none; } .block-editor-block-preview__live-content .block-list-appender { display: none; } .block-editor-block-preview__live-content .components-button:disabled { opacity: initial; } .block-editor-block-preview__live-content .components-placeholder, .block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] { display: none; } .block-editor-block-settings-menu__popover .components-dropdown-menu__menu { padding: 0; } .block-editor-block-styles { display: flex; flex-wrap: wrap; justify-content: space-between; } .block-editor-block-styles__item { width: calc(50% - 4px); margin: 4px 0; flex-shrink: 0; cursor: pointer; overflow: hidden; border-radius: 2px; padding: 6px; display: flex; flex-direction: column; } .block-editor-block-styles__item:focus { box-shadow: 0 0 0 var(--gc-admin-border-width-focus) var(--gc-admin-theme-color); outline: 2px solid transparent; } .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview { border-color: var(--gc-admin-theme-color); } .block-editor-block-styles__item.is-active .block-editor-block-styles__item-label { font-weight: bold; } .block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview { margin: 0; border: 2px solid #1e1e1e; } .block-editor-block-styles__item .block-editor-block-preview__container { cursor: inherit; } .block-editor-block-styles__item-preview { outline: 1px solid transparent; padding: 0; margin: 2px; border-radius: 2px; display: flex; overflow: hidden; background: #fff; align-items: center; flex-grow: 1; min-height: 80px; max-height: 160px; } .block-editor-block-switcher__styles__menugroup { position: relative; } .block-editor-block-styles__item-label { text-align: center; padding: 4px 0; } .block-editor-block-switcher { position: relative; } .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; } .block-editor-block-switcher__toggle-text { margin-right: 8px; } .show-icon-labels .block-editor-block-switcher__toggle-text { display: none; } .show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon::after { font-size: 14px; } .block-editor-block-switcher__popover { margin-right: 6px; } .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; } .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon { margin-left: auto; margin-right: auto; } .components-button.block-editor-block-switcher__no-switcher-icon:disabled { opacity: 1; } .components-button.block-editor-block-switcher__no-switcher-icon:disabled, .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { color: #1e1e1e; } .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { height: 100%; position: relative; margin: 0 auto; display: flex; align-items: center; min-width: 100%; } .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { top: 8px; left: 8px; bottom: 8px; right: 8px; } .components-popover.block-editor-block-switcher__popover .components-popover__content { min-width: 300px; } .components-popover.block-editor-block-switcher__popover .components-popover__content > div { min-width: auto; display: flex; background: #fff; padding: 0; } .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group { margin: 0; } .block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles { margin: 0 -3px; } .block-editor-block-switcher__popover .components-popover__content .components-panel__body { border: 0; position: relative; z-index: 1; } .block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { border-top: 1px solid #e0e0e0; } .block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container { position: absolute; top: -12px; right: calc(100% + 32px); } .block-editor-block-switcher__preview__popover { display: none; } .block-editor-block-switcher__preview__popover.components-popover { margin-right: 4px; margin-top: 11px; } @media (min-width: 782px) { .block-editor-block-switcher__preview__popover { display: block; } } .block-editor-block-switcher__preview__popover .components-popover__content { box-shadow: none; border: 1px solid #1e1e1e; background: #fff; border-radius: 2px; } .block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview { width: 300px; height: auto; max-height: 500px; padding: 16px; } .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 { width: 48px; } .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; transition: all 0.05s ease-in-out; position: relative; border: 1px 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, .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(--gc-admin-border-width-focus) var(--gc-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(--gc-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-types-list > [role=presentation] { overflow: hidden; display: flex; flex-wrap: wrap; } .block-editor-block-variation-picker .components-placeholder__instructions { margin-bottom: 0; } .block-editor-block-variation-picker .components-placeholder__fieldset { flex-direction: column; } .block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset { max-width: 90%; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations { display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: wrap; width: 100%; margin: 16px 0; padding: 0; list-style: none; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li { list-style: none; margin: 8px 0 0 20px; flex-shrink: 1; width: 75px; text-align: center; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li button { display: inline-flex; margin-left: 0; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation { padding: 8px; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 12px; display: block; line-height: 1.4; } .block-editor-block-variation-picker__variation { width: 100%; } .block-editor-block-variation-picker__variation.components-button.has-icon { justify-content: center; width: auto; } .block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary { background-color: #fff; } .block-editor-block-variation-picker__variation.components-button { height: auto; padding: 0; } .block-editor-block-variation-picker__variation::before { content: ""; padding-bottom: 100%; } .block-editor-block-variation-picker__variation:first-child { margin-right: 0; } .block-editor-block-variation-picker__variation:last-child { margin-left: 0; } .block-editor-block-pattern-setup { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; border-radius: 2px; box-shadow: inset 0 0 0 1px #1e1e1e; outline: 1px solid transparent; } .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 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; padding: 16px; max-height: 550px; overflow: auto; margin: 0 1px 1px 1px; width: calc(100% - 2px); background: #fff; } .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-title { padding: 4px; font-size: 12px; text-align: center; } .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container { border-radius: 2px; border: 1px solid #ddd; } .block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar { box-sizing: border-box; position: relative; padding: 16px; width: 100%; text-align: right; margin: 0; color: #1e1e1e; border-radius: 2px 2px 0 0; background-color: #fff; box-shadow: inset 0 0 0 1px #1e1e1e; outline: 1px solid transparent; display: flex; flex-direction: row; align-items: center; justify-content: space-between; } .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__actio