@import "../_variables"; .Dialog__title { display: grid; align-items: center; margin-top: 0; grid-template-columns: 1fr calc(var(--space-factor) * 7); grid-gap: var(--metric); } .Dialog__titleContent { flex: 1; } .Dialog .Modal__close { margin: 0; } @media #{$media-query} { .Dialog { --metric: calc(var(--space-factor) * 4); --inset-left: #{"max(var(--metric), env(safe-area-inset-left))"}; --inset-right: #{"max(var(--metric), env(safe-area-inset-right))"}; } .Dialog__title { grid-template-columns: calc(var(--space-factor) * 7) 1fr calc( var(--space-factor) * 7 ); position: sticky; top: calc(-1 * var(--metric)); margin: calc(-1 * var(--inset-right)); margin-top: calc(-1 * var(--metric)); margin-bottom: var(--metric); padding: calc(var(--space-factor) * 2); padding-left: var(--inset-left); padding-right: var(--inset-right); background: white; font-size: 1.25em; box-sizing: border-box; border-bottom: 1px solid #ccc; z-index: 1; } .Dialog__titleContent { text-align: center; } .Dialog .Island { width: 100vw; height: 100%; box-sizing: border-box; overflow-y: auto; padding-left: #{"max(calc(var(--padding) * var(--space-factor)), env(safe-area-inset-left))"}; padding-right: #{"max(calc(var(--padding) * var(--space-factor)), env(safe-area-inset-right))"}; padding-bottom: #{"max(calc(var(--padding) * var(--space-factor)), env(safe-area-inset-bottom))"}; } .Dialog .Modal__close { order: -1; } }