Feat/SW-1169 map bedtype icons * feat(SW-1169): Added bed icons * fix(SW-1169): update fill rule property * fix(SW-1169): update clip rule prop * feat(SW-1169): Added way of rendering bed type icons with extra beds * feat(SW-1169): update room schema to map mainBed to enum * feat(SW-1169): update bedtype icon color * feat(SW-1169): transform unknown bed types to BedTypeEnum.Other * test: update mock data with new schema Approved-by: Christel Westerberg
77 lines
1.5 KiB
CSS
77 lines
1.5 KiB
CSS
.label {
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border: 1px solid var(--Base-Border-Subtle);
|
|
border-radius: var(--Corner-radius-Large);
|
|
cursor: pointer;
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
padding: var(--Spacing-x-one-and-half) var(--Spacing-x2);
|
|
transition: all 200ms ease;
|
|
width: min(100%, 600px);
|
|
grid-column-gap: var(--Spacing-x2);
|
|
}
|
|
|
|
.label:hover {
|
|
background-color: var(--Base-Surface-Secondary-light-Hover);
|
|
}
|
|
|
|
.label:has(:checked) {
|
|
background-color: var(--Primary-Light-Surface-Normal);
|
|
border-color: var(--Base-Border-Hover);
|
|
}
|
|
|
|
.icon {
|
|
align-self: center;
|
|
grid-column: 2/3;
|
|
grid-row: 1/3;
|
|
justify-self: flex-end;
|
|
transition: fill 200ms ease;
|
|
}
|
|
|
|
.label:hover .icon,
|
|
.label:hover .icon *,
|
|
.label:has(:checked) .icon,
|
|
.label:has(:checked) .icon * {
|
|
fill: var(--Base-Text-Medium-contrast);
|
|
}
|
|
|
|
.label[data-declined="true"]:hover .icon,
|
|
.label[data-declined="true"]:hover .icon *,
|
|
.label[data-declined="true"]:has(:checked) .icon,
|
|
.label[data-declined="true"]:has(:checked) .icon * {
|
|
fill: var(--Base-Text-Disabled);
|
|
}
|
|
|
|
.subtitle {
|
|
grid-column: 1 / 2;
|
|
grid-row: 2;
|
|
}
|
|
|
|
.title {
|
|
grid-column: 1 / 2;
|
|
}
|
|
|
|
.label .text {
|
|
margin-top: var(--Spacing-x1);
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.listItem {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: var(--Spacing-x-quarter);
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.listItem:first-of-type {
|
|
margin-top: var(--Spacing-x1);
|
|
}
|
|
|
|
.listItem:nth-of-type(n + 2) {
|
|
margin-top: var(--Spacing-x-quarter);
|
|
}
|
|
|
|
.highlight {
|
|
color: var(--Scandic-Brand-Scandic-Red);
|
|
}
|