feat(BOOK-522): align items in topmenu, header and booking widget * feat(BOOK-522): align items in topmenu, header and booking widget * Delete old css variable and use new * Fixed underline on icons Approved-by: Erik Tiekstra
96 lines
1.9 KiB
CSS
96 lines
1.9 KiB
CSS
.wrapper {
|
|
position: sticky;
|
|
z-index: var(--booking-widget-z-index);
|
|
width: 100%;
|
|
}
|
|
|
|
/* Make sure Date Picker is placed on top of other sticky/fixed components */
|
|
.wrapper:has([data-datepicker-open="true"]) {
|
|
z-index: 100;
|
|
}
|
|
|
|
.formContainer {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
background-color: var(--UI-Input-Controls-Surface-Normal);
|
|
border-radius: 0;
|
|
gap: var(--Spacing-x3);
|
|
height: calc(100dvh - max(var(--alert-and-banner-height), 20px));
|
|
width: 100%;
|
|
padding: var(--Spacing-x3) var(--Spacing-x2) var(--Spacing-x7);
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: -100%;
|
|
overflow-y: auto;
|
|
transition: bottom 300ms ease;
|
|
}
|
|
|
|
.formContainer:has([data-searchlist-open="true"]) {
|
|
overflow-y: visible;
|
|
}
|
|
|
|
.compact {
|
|
.formContainer {
|
|
border-radius: var(--Corner-radius-lg);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.formContainer {
|
|
border-radius: var(--Corner-radius-lg) var(--Corner-radius-lg) 0 0;
|
|
}
|
|
}
|
|
|
|
.wrapper[data-booking-widget-open="true"] {
|
|
z-index: var(--booking-widget-open-z-index);
|
|
overflow-y: visible;
|
|
}
|
|
|
|
.wrapper[data-booking-widget-open="true"] .formContainer {
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
justify-self: flex-end;
|
|
padding: 0;
|
|
}
|
|
|
|
.wrapper[data-booking-widget-open="true"] + .backdrop {
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
height: 100%;
|
|
left: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: calc(var(--booking-widget-open-z-index) - 1);
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.wrapper {
|
|
top: 0;
|
|
}
|
|
|
|
.formContainer {
|
|
display: block;
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05);
|
|
height: auto;
|
|
position: static;
|
|
padding: 0;
|
|
overflow-y: visible;
|
|
|
|
&.compactFormContainer {
|
|
box-shadow: none;
|
|
padding-left: var(--Space-x15);
|
|
}
|
|
}
|
|
|
|
.close {
|
|
display: none;
|
|
}
|
|
}
|