messing around with event items, grid and order

This commit is contained in:
elisejakob
2024-06-21 14:36:26 +02:00
parent 7aab8c154d
commit 82f451cb14
3 changed files with 85 additions and 14 deletions

View File

@ -1,6 +1,8 @@
.eventItem {
position: relative;
list-style: none;
display: grid;
align-items: flex-start;
&.small {
@ -12,19 +14,59 @@
&.medium {
--size-image-width: 8rem;
display: grid;
grid-template-rows: 1fr 2fr;
grid-template-columns: var(--size-image-width) auto;
column-gap: .6rem;
align-items: center;
width: var(--size-item-width);
.image {
width: var(--size-image-width);
grid-row: span 2;
}
.dates,
.title,
.details {
font-size: var(--font-size-body);
}
.dates {
font-size: var(--font-size-caption);
}
.text {
align-self: start;
}
.time {
align-self: start;
}
.dates {
margin: auto 0 0 0;
}
.details {
display: none;
}
}
&.large {
align-content: start;
.time {
order: 1;
}
.image {
width: var(--size-image-width);
order: 2;
margin-bottom: var(--spacing-xs);
}
.text {
order: 3;
}
}
}
@ -43,15 +85,38 @@
}
}
.text {
padding: .8rem 0;
.title {
font-size: var(--font-size-h2);
}
.title,
.details {
font-size: 1.6rem;
font-size: var(--font-size-lead);
}
.dates,
.details {
font-family: var(--font-serif);
}
.time {
position: relative;
}
.dates {
font-size: var(--font-size-body);
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.moreDates {
display: inline-block;
background: var(--color-background-secondary);
color: var(--color-chateauBlue);
border-radius: 2rem;
padding: 0 .4rem;
font-size: var(--font-size-xs);
font-family: var(--font-main);
}