packages/web/examples/ssr/pages/styles/airbnb.css
.container {
display: flex;
padding-top: 52px;
}
.container .nav {
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #FF3A4E;
color: #fff;
height: 52px;
padding: 0 25px;
}
.container .nav .search {
margin-left: auto;
margin-right: auto;
width: 50%;
}
.container .left-col {
width: 320px;
height: 100%;
padding: 15px 20px;
position: fixed;
left: 0;
right: 0;
border-right: 1px solid #f0f0f0;
}
.container .left-col > div {
margin: 40px 0;
}
@media all and (max-width: 768px) {
.container .left-col {
position: static;
width: 100%;
height: auto;
border-right: 0;
border-bottom: 1px solid #f0f0f0;
}
}
.container .right-col {
width: calc(100% - 320px);
position: relative;
left: 320px;
padding: 25px 30px;
background-color: #fbfbfb;
}
.container .right-col .list {
margin-bottom: 30px;
}
.container .right-col .list-item {
max-width: none;
min-width: 0;
width: calc(30% - 16px);
height: auto;
background-color: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
position: relative;
padding: 0;
}
.container .right-col .list-item h2 {
padding-bottom: 4px;
}
.container .right-col .list-item .image {
background-size: cover;
}
.container .right-col .list-item .price {
width: 70px;
height: 44px;
background-color: #424242;
position: absolute;
top: 160px;
left: 0;
color: #fafafa;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
letter-spacing: 0.03rem;
}
.container .right-col .list-item .info {
color: #555;
font-size: 14px;
margin-bottom: 4px;
}
.container .right-col .result-stats {
text-align: right;
color: #666;
font-size: 15px;
}
@media all and (min-width: 1441px) {
.container .right-col .list-item {
width: calc(25% - 16px);
}
}
@media all and (max-width: 1024px) {
.container .right-col .list-item {
width: calc(50% - 16px);
}
}
@media all and (max-width: 768px) {
.container .right-col {
width: 100%;
position: static;
padding: 25px 15px;
}
}
@media all and (max-width: 480px) {
.container .right-col .list-item {
width: calc(100% - 16px);
margin-bottom: 20px;
}
}