excalidraw/src/components/Dialog.scss

50 lines
974 B
SCSS
Raw Normal View History

@import "../_variables";
.Dialog__title {
--metric: calc(var(--space-factor) * 4);
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__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(--metric));
margin-bottom: var(--metric);
padding: calc(var(--space-factor) * 2) var(--metric);
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 {
height: 100%;
box-sizing: border-box;
overflow-y: auto;
}
.Dialog .Modal__close {
order: -1;
}
}