@use "sass:color"; @use "@wordpress/base-styles/mixins" as *; @use "@wordpress/base-styles/variables" as *; @use "@wordpress/base-styles/colors" as *; @use "@wordpress/base-styles/default-custom-properties" as *; // Here we extend the modal styles to be tighter, and to the center. Because the palette uses the modal as a container. .workflows-workflow-menu { border-radius: $grid-unit-05; width: calc(100% - #{$grid-unit-40}); margin: auto; max-width: 400px; position: relative; top: calc(5% + #{$header-height}); @include break-small() { top: calc(10% + #{$header-height}); } .components-modal__content { margin: 0; padding: 0; } } .workflows-workflow-menu__overlay { display: block; align-items: start; } .workflows-workflow-menu__container { // the style here is a hack to force safari to repaint to avoid a style glitch will-change: transform; &:focus { outline: none; } } .workflows-workflow-menu__input { margin: $grid-unit-10; } .workflows-workflow-menu__list { max-height: 376px; // Specific to not have workflows overflow oddly. } .workflows-workflow-menu__list-body { padding: 0 $grid-unit-10 $grid-unit-10; } .workflows-workflow-menu__item-label { // Ensure workflows do not run off the edge (great for post titles). display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workflows-workflow-menu__item mark { color: inherit; background: unset; font-weight: var(--wpds-typography-font-weight-emphasis); } .workflows-workflow-menu__output { padding: $grid-unit-20; } .workflows-workflow-menu__output-header { margin-bottom: $grid-unit-20; border-bottom: 1px solid $gray-300; padding-bottom: $grid-unit-10; h3 { margin: 0 0 $grid-unit-05; font-size: 16px; font-weight: var(--wpds-typography-font-weight-emphasis); color: $gray-900; } } .workflows-workflow-menu__output-hint { margin: 0; font-size: 12px; color: $gray-700; } .workflows-workflow-menu__output-content { max-height: 400px; overflow: auto; pre { margin: 0; padding: $grid-unit-15; background: $gray-100; border-radius: $radius-small; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: $gray-900; } } .workflows-workflow-menu__output-error { padding: $grid-unit-15; background: $gray-200; border: 1px solid #{color.adjust( $alert-red, $lightness: -10% )}; border-radius: $radius-small; color: $alert-red; p { margin: 0; font-size: 13px; } } .workflows-workflow-menu__empty:not(:empty), .workflows-workflow-menu__executing:not(:empty) { justify-content: center; padding: $grid-unit-10 0 $grid-unit-20; }