104 lines
1.4 KiB
SCSS
104 lines
1.4 KiB
SCSS
|
@import "normalize.css";
|
||
|
|
||
|
$listing-content-line-height: 1.15em;
|
||
|
|
||
|
.listing-wrapper {
|
||
|
max-width: 75%;
|
||
|
margin: 1rem auto;
|
||
|
padding: 0 1rem;
|
||
|
}
|
||
|
|
||
|
.listing-item {
|
||
|
display: flex;
|
||
|
height: 175px;
|
||
|
|
||
|
& + & {
|
||
|
margin-top: 2rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.listing-left {
|
||
|
width: 25%;
|
||
|
max-width: 300px;
|
||
|
|
||
|
img {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
object-fit: cover;
|
||
|
}
|
||
|
|
||
|
&.slim {
|
||
|
width: 12.5%;
|
||
|
max-width: 150px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.listing-right {
|
||
|
padding: 0.5rem 1rem;
|
||
|
flex-grow: 1;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
width: 75%;
|
||
|
|
||
|
h2 {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
.item-details,
|
||
|
.item-tags {
|
||
|
margin: 0.25rem 0;
|
||
|
list-style: none;
|
||
|
padding: 0;
|
||
|
|
||
|
li {
|
||
|
display: inline;
|
||
|
|
||
|
& + li {
|
||
|
margin-left: 1rem;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.item-tags {
|
||
|
margin-top: auto;
|
||
|
}
|
||
|
|
||
|
.listing-content {
|
||
|
margin: auto 0;
|
||
|
line-height: $listing-content-line-height;
|
||
|
max-height: calc($listing-content-line-height * 4);
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (max-width: 700px) {
|
||
|
.listing-item {
|
||
|
flex-direction: column;
|
||
|
height: fit-content;
|
||
|
|
||
|
.listing-left {
|
||
|
width: 100%;
|
||
|
height: 200px;
|
||
|
max-width: unset;
|
||
|
|
||
|
&.slim {
|
||
|
height: 100px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.listing-right {
|
||
|
padding: 0.5rem 0rem;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.listing-content {
|
||
|
max-height: calc($listing-content-line-height * 8);
|
||
|
}
|
||
|
|
||
|
.item-tags {
|
||
|
margin-top: 0.25rem;
|
||
|
}
|
||
|
}
|
||
|
}
|