fix(SW-2972): hotel card prices didnt take full width * fix(SW-2972): hotel card prices didnt take full width Approved-by: Linus Flood Approved-by: Matilda Landström
188 lines
3.5 KiB
CSS
188 lines
3.5 KiB
CSS
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border: 1px solid var(--Base-Border-Subtle);
|
|
border-radius: var(--Corner-radius-md);
|
|
width: 100%;
|
|
overflow: hidden;
|
|
color: var(--Text-Default);
|
|
}
|
|
|
|
.card.active {
|
|
border: 1px solid var(--Base-Border-Hover);
|
|
}
|
|
|
|
.card.active {
|
|
border: 1px solid var(--Base-Border-Hover);
|
|
}
|
|
|
|
.imageContainer {
|
|
position: relative;
|
|
height: 200px;
|
|
width: 100%;
|
|
}
|
|
|
|
.imageContainer img {
|
|
object-fit: cover;
|
|
}
|
|
|
|
.hotelInformation {
|
|
margin-bottom: var(--Space-x05);
|
|
}
|
|
|
|
.hotelContent {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--Space-x2);
|
|
}
|
|
|
|
.hotelDescription {
|
|
display: none;
|
|
}
|
|
|
|
.titleContainer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x05);
|
|
margin-top: var(--Space-x05);
|
|
}
|
|
|
|
.addressContainer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--Space-x1);
|
|
}
|
|
|
|
.address {
|
|
font-style: normal;
|
|
color: var(--Text-Tertiary);
|
|
}
|
|
|
|
.facilities {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--Space-x1);
|
|
margin-top: var(--Space-x15);
|
|
}
|
|
|
|
.facilitiesItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--Space-x05);
|
|
color: var(--Text-Secondary);
|
|
}
|
|
|
|
.specialAlerts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x1);
|
|
}
|
|
|
|
.prices {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x15);
|
|
width: 100%;
|
|
}
|
|
|
|
.link:hover {
|
|
.fakeButton {
|
|
background-color: var(--Component-Button-Brand-Primary-Fill-Hover);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Hover);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Hover);
|
|
}
|
|
|
|
.priceCard {
|
|
background: linear-gradient(
|
|
0deg,
|
|
var(--Surface-Primary-Hover) 0%,
|
|
var(--Surface-Primary-Hover) 100%
|
|
);
|
|
}
|
|
}
|
|
|
|
.strikedText {
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.pointsCard {
|
|
background-color: var(--Base-Surface-Secondary-light-Normal);
|
|
padding: var(--Space-x15);
|
|
border-radius: var(--Corner-radius-md);
|
|
}
|
|
|
|
.fakeButton {
|
|
min-width: 160px;
|
|
border-radius: var(--Corner-radius-rounded);
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--Space-x05);
|
|
|
|
padding: 10px var(--Space-x2);
|
|
background-color: var(--Component-Button-Brand-Primary-Fill-Default);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Default);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Default);
|
|
}
|
|
|
|
.fakeButton.disabled {
|
|
background-color: var(--Component-Button-Brand-Primary-Fill-Disabled);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Disabled);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Disabled);
|
|
}
|
|
|
|
@media screen and (min-width: 768px) and (max-width: 1024px) {
|
|
.imageContainer {
|
|
height: 180px;
|
|
}
|
|
}
|
|
@media screen and (min-width: 1367px) {
|
|
.card.pageListing {
|
|
flex-direction: row;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
.pageListing .hotelDescription {
|
|
display: block;
|
|
}
|
|
|
|
.pageListing .imageContainer {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 314px;
|
|
}
|
|
|
|
.pageListing .hotelInformation {
|
|
width: min(422px, 100%);
|
|
padding-right: var(--Space-x2);
|
|
margin: 0;
|
|
}
|
|
|
|
.pageListing .facilities {
|
|
margin: var(--Space-x1) 0;
|
|
}
|
|
|
|
.pageListing .hotelContent {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--Space-x2);
|
|
padding-left: var(--Space-x3);
|
|
}
|
|
|
|
.pageListing .titleContainer {
|
|
margin-bottom: var(--Space-x15);
|
|
}
|
|
|
|
.pageListing .fakeButton {
|
|
width: 100%;
|
|
}
|
|
|
|
.pageListing .prices {
|
|
width: 260px;
|
|
}
|
|
}
|