Files
web/components/HotelReservation/HotelCard/hotelCard.module.css
2024-08-29 16:07:29 +02:00

112 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%;
max-width: 307px;
}
.header {
grid-area: header;
}
.image {
height: 100%;
max-height: 95px;
width: 116px;
object-fit: cover;
grid-area: image;
}
.logo {
margin-bottom: var(--Spacing-x-half);
}
.hotel {
display: flex;
flex-direction: column;
gap: var(--Spacing-x1);
grid-area: hotel;
}
.facilities {
display: flex;
flex-wrap: wrap;
gap: var(--Spacing-x-half);
}
.link {
display: flex;
padding: var(--Spacing-x1) var(--Spacing-x0);
border-bottom: 1px solid var(--Base-Border-Subtle);
}
.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 {
display: none;
}
@media screen and (min-width: 1367px) {
.card {
grid-template-areas:
"image header"
"image hotel"
"image prices";
grid-template-columns: auto-fill;
overflow: hidden;
width: 100%;
max-width: 1050px;
padding: 0;
}
.image {
max-height: 100%;
width: 100%;
max-width: 518px;
}
.header {
padding-top: var(--Spacing-x2);
padding-right: var(--Spacing-x2);
}
.hotel {
padding-right: var(--Spacing-x2);
}
.prices {
flex-direction: row;
padding-right: var(--Spacing-x2);
padding-bottom: var(--Spacing-x2);
}
.link {
border-bottom: none;
}
.button {
display: flex;
width: 160px;
justify-content: center;
}
}