Files
web/components/HotelReservation/HotelCard/hotelCard.module.css
Bianca Widstam 748021cdab Merged in feat/SW-673-galleryicon-hotel-lightbox (pull request #734)
Feat/SW-673 galleryicon hotel lightbox

* feat(SW-673): add galleryChip to trigger lightbox

* feat(SW-673): add updated design galleryIcon

* feat(SW-673): add first image from hotelContent and heroImages

* feat(SW-673): fix import type

* feat(SW-673): fix css variables

* feat(SW-673): change component to include image that trigger lightbox

* feat(SW-673): refactor name to imageGallery


Approved-by: Niclas Edenvin
2024-10-24 08:41:26 +00:00

118 lines
1.8 KiB
CSS

.card {
display: grid;
grid-template-areas:
"image header"
"hotel hotel"
"prices prices";
gap: var(--Spacing-x2);
padding: var(--Spacing-x2);
background-color: var(--Base-Surface-Primary-light-Normal);
border: 1px solid var(--Base-Border-Subtle);
border-radius: var(--Corner-radius-Medium);
width: 100%;
}
.imageContainer {
grid-area: image;
position: relative;
height: 100%;
width: 116px;
}
.tripAdvisor {
display: none;
}
.imageContainer img {
object-fit: cover;
}
.hotelInformation {
grid-area: header;
}
.hotel {
display: flex;
flex-direction: column;
grid-area: hotel;
}
.facilities {
display: flex;
flex-wrap: wrap;
gap: var(--Spacing-x1);
}
.facilitiesItem {
display: flex;
align-items: center;
gap: var(--Spacing-x-half);
}
.prices {
display: flex;
flex-direction: column;
gap: var(--Spacing-x2);
grid-area: prices;
}
.public,
.member {
max-width: fit-content;
margin-bottom: var(--Spacing-x-half);
}
.button {
justify-content: center;
}
@media screen and (min-width: 1367px) {
.card {
grid-template-areas:
"image header"
"image hotel"
"image prices";
overflow: hidden;
padding: 0;
}
.imageContainer {
position: relative;
min-height: 200px;
width: 518px;
}
.tripAdvisor {
position: absolute;
display: block;
left: 7px;
top: 7px;
}
.hotelInformation {
padding-top: var(--Spacing-x2);
padding-right: var(--Spacing-x2);
}
.hotel {
gap: var(--Spacing-x2);
padding-right: var(--Spacing-x2);
}
.prices {
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-right: var(--Spacing-x2);
padding-bottom: var(--Spacing-x2);
}
.detailsButton {
border-bottom: none;
}
.button {
width: 160px;
}
}