fix: when floating booking widget is sticky let it have white background all the way out. SW-2427 * fix: when floating booking widget is sticky let it have white background all the way out. Resolves SW-2427 * pr: move styling variants to it's own file Approved-by: Christian Andolf
29 lines
608 B
CSS
29 lines
608 B
CSS
.floatingBookingWidget {
|
|
width: 100vw;
|
|
min-height: 84px;
|
|
z-index: 1000;
|
|
position: relative;
|
|
|
|
.floatingBackground {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(255, 255, 255, 0);
|
|
width: 100%;
|
|
}
|
|
|
|
&[data-intersecting="true"] {
|
|
.floatingBackground {
|
|
background: var(--Surface-UI-Fill-Default);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
margin-top: var(--sitewide-alert-sticky-height);
|
|
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
}
|