@use '../../design/scss/variables' as *; @use '../../design/scss/mixins'; @use '../../design/scss/placeholders'; .adpresso-app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2em; .adpresso-header-left { padding-left: 2em; .adpresso-logo { margin: 0; line-height: 1; display: block; max-height: calc(2.5em * $font-size-rate); } } .adpresso-header-center { @include mixins.flex-center; } .adpresso-header-right { @include mixins.flex-center; gap: 2em; .adpresso-quick-links, .adpresso-screen-options { border-style: solid; border-width: calc($border-small * $font-size-rate); padding: 0 $space-4; } .components-button { @include placeholders.btn-reset; // WP 7 gives secondary buttons a border; the pill around them is the only frame. border: 0; color: $color-icon; &:hover { background: none; box-shadow: none; color: $color-text-grey; border-color: $color-primary; } .dashicons { margin: 0; font-size: calc(2.5em / 1.5); } } .components-button.is-secondary { padding: 0.6em $space-1; font-size: calc(1.5em * $font-size-rate); &:focus { box-shadow: 0 0 0 2px $color-white, 0 0 0 4px currentColor; } } } } // Phones: logo and pills wrap instead of overflowing the viewport. @media (max-width: 600px) { .adpresso-app-header { flex-wrap: wrap; gap: 1em; .adpresso-header-right { gap: 1em; padding-right: 1em; } } } .adpresso-screen-options-popover { padding: 2em 4em; width: 100%; background-color: $color-white; border-bottom: 0.4em solid $color-accent; z-index: 100000; max-width: calc(100% - 160px - 3em); transform: none !important; left: unset !important; right: 0; top: 32px !important; font-size: $font-size-base; &.components-dropdown__content { .components-popover__content { background: $color-white; padding: 0; box-shadow: none; border-radius: $radius-sm; width: 100%; overflow: visible; height: auto; } } .adpresso-screen-options-panel { display: flex; flex-direction: column; gap: 1em; align-items: flex-end; justify-content: flex-end; .adpresso-checkbox-group-buttons { flex-wrap: wrap; gap: $space-4; margin-bottom: 2em; margin-right: 1em; justify-content: flex-end; } .adpresso-screen-options-legend { font-size: $font-size; } } }