feat(SW-441): Updated sticky position of tabnavigation and map
This commit is contained in:
@@ -107,7 +107,8 @@
|
|||||||
|
|
||||||
--main-menu-mobile-height: 75px;
|
--main-menu-mobile-height: 75px;
|
||||||
--main-menu-desktop-height: 118px;
|
--main-menu-desktop-height: 118px;
|
||||||
--booking-widget-desktop-height: 95px;
|
--booking-widget-mobile-height: 75px;
|
||||||
|
--booking-widget-desktop-height: 77px;
|
||||||
--hotel-page-map-desktop-width: 23.75rem;
|
--hotel-page-map-desktop-width: 23.75rem;
|
||||||
|
|
||||||
/* Z-INDEX */
|
/* Z-INDEX */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.stickyWrapper {
|
.stickyWrapper {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: var(--booking-widget-mobile-height);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-color: var(--Base-Surface-Subtle-Normal);
|
background-color: var(--Base-Surface-Subtle-Normal);
|
||||||
border-bottom: 1px solid var(--Base-Border-Subtle);
|
border-bottom: 1px solid var(--Base-Border-Subtle);
|
||||||
@@ -16,6 +16,12 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.stickyWrapper {
|
||||||
|
top: var(--booking-widget-desktop-height);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1367px) {
|
@media screen and (min-width: 1367px) {
|
||||||
.tabsContainer {
|
.tabsContainer {
|
||||||
padding: 0 var(--Spacing-x5);
|
padding: 0 var(--Spacing-x5);
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
.mapWithCard {
|
.mapWithCard {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: var(--booking-widget-desktop-height);
|
||||||
min-height: 500px; /* Fixed min to not cover the marker with the card */
|
min-height: 500px; /* Fixed min to not cover the marker with the card */
|
||||||
height: calc(
|
height: calc(
|
||||||
100vh - var(--main-menu-desktop-height) -
|
100vh - var(--main-menu-desktop-height) -
|
||||||
|
|||||||
Reference in New Issue
Block a user