Feat/BOOK-61 refactor hotel page css variables * feat(BOOK-61): Breadcrumbs * feat(BOOK-61): intro section * feat(BOOK-61): show more button * feat(BOOK-61): rooms section * feat(BOOK-61): sidepeeks * feat(BOOK-61): deprecated old Link component * feat(BOOK-61): added new TextLink component to the design-system * feat(BOOK-61): replaced deprecated links with new TextLink component * feat(BOOK-61): miscellaneous changes Approved-by: Bianca Widstam Approved-by: Christel Westerberg
85 lines
1.3 KiB
CSS
85 lines
1.3 KiB
CSS
.overlay {
|
|
--sidepeek-desktop-width: 560px;
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: var(--sidepeek-z-index);
|
|
background-color: var(--UI-Opacity-Almost-Black-30);
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
right: auto;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
background-color: var(--Background-Primary);
|
|
z-index: var(--sidepeek-z-index);
|
|
outline: none;
|
|
}
|
|
|
|
.modal[data-entering] {
|
|
animation: slide-in 250ms;
|
|
}
|
|
|
|
.modal[data-exiting] {
|
|
animation: slide-in 250ms reverse;
|
|
}
|
|
|
|
.dialog {
|
|
height: 100%;
|
|
outline: none;
|
|
}
|
|
|
|
.aside {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: min-content auto;
|
|
height: 100dvh;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
border-bottom: 1px solid var(--Base-Border-Subtle);
|
|
align-items: flex-start;
|
|
padding: var(--Spacing-x4);
|
|
}
|
|
|
|
.header:has(.heading) {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.heading {
|
|
color: var(--Text-Heading);
|
|
text-wrap: balance;
|
|
hyphens: auto;
|
|
}
|
|
|
|
.sidePeekContent {
|
|
padding: var(--Spacing-x4);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media screen and (min-width: 1367px) {
|
|
.modal {
|
|
top: 0;
|
|
right: 0px;
|
|
width: var(--sidepeek-desktop-width);
|
|
height: 100vh;
|
|
}
|
|
}
|
|
|
|
@keyframes slide-in {
|
|
from {
|
|
right: calc(-1 * var(--sidepeek-desktop-width));
|
|
}
|
|
|
|
to {
|
|
right: 0;
|
|
}
|
|
}
|