feat(SW-1259): Enter details multiroom * refactor: remove per-step URLs * WIP: map multiroom data * fix: lint errors in details page * fix: made useEnterDetailsStore tests pass * fix: WIP refactor enter details store * fix: WIP enter details store update * fix: added room index to select correct room * fix: added logic for navigating between steps and rooms * fix: update summary to work with store changes * fix: added room and total price calculation * fix: removed unused code and added test for breakfast included * refactor: move store selectors into helpers * refactor: session storage state for multiroom booking * feat: update enter details accordion navigation * fix: added room index to each form component so they select correct room * fix: added unique id to input to handle case when multiple inputs have same name * fix: update payment step with store changes * fix: rebase issues * fix: now you should only be able to go to a step if previous room is completed * refactor: cleanup * fix: if no availability just skip that room for now * fix: add select-rate Summary and adjust typings Approved-by: Arvid Norlin
95 lines
1.5 KiB
CSS
95 lines
1.5 KiB
CSS
.wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--Spacing-x-one-and-half);
|
|
}
|
|
|
|
.main {
|
|
width: 100%;
|
|
border-bottom: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
|
|
padding-bottom: var(--Spacing-x3);
|
|
}
|
|
|
|
.headerContainer {
|
|
display: grid;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
grid-template-areas:
|
|
"title title"
|
|
"description button";
|
|
}
|
|
|
|
.title {
|
|
grid-area: title;
|
|
}
|
|
|
|
.description {
|
|
grid-area: description;
|
|
}
|
|
|
|
.button {
|
|
grid-area: button;
|
|
justify-self: flex-end;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.iconWrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.circle {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 100px;
|
|
border: 2px solid var(--Base-Border-Inverted);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.circle {
|
|
background-color: var(--UI-Input-Controls-Fill-Selected);
|
|
}
|
|
|
|
.rate {
|
|
color: var(--UI-Text-Placeholder);
|
|
display: block;
|
|
}
|
|
|
|
.details {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.wrapper {
|
|
gap: var(--Spacing-x3);
|
|
}
|
|
|
|
.iconWrapper {
|
|
top: var(--Spacing-x1);
|
|
}
|
|
|
|
.rate {
|
|
display: inline;
|
|
}
|
|
|
|
.rate::before {
|
|
content: "(";
|
|
}
|
|
.rate::after {
|
|
content: ")";
|
|
}
|
|
|
|
.wrapper:not(:last-child)::after {
|
|
position: absolute;
|
|
left: 12px;
|
|
bottom: 0;
|
|
top: var(--Spacing-x7);
|
|
height: 100%;
|
|
content: "";
|
|
border-left: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
|
|
}
|
|
}
|