57 lines
750 B
SCSS
57 lines
750 B
SCSS
.eventItem {
|
|
position: relative;
|
|
list-style: none;
|
|
|
|
&.small {
|
|
|
|
.title,
|
|
.details {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
&.medium {
|
|
--size-image-width: 8rem;
|
|
display: grid;
|
|
grid-template-columns: var(--size-image-width) auto;
|
|
column-gap: .6rem;
|
|
align-items: center;
|
|
width: var(--size-item-width);
|
|
|
|
.title,
|
|
.details {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.image {
|
|
width: var(--size-image-width);
|
|
}
|
|
}
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
padding-top: 60%;
|
|
position: relative;
|
|
|
|
img {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.text {
|
|
padding: .8rem 0;
|
|
}
|
|
|
|
.title,
|
|
.details {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.details {
|
|
font-family: var(--font-serif);
|
|
} |