events-grid - finish
This commit is contained in:
parent
024e142a23
commit
41a7b7b4cb
5 changed files with 36 additions and 11 deletions
|
|
@ -10,14 +10,22 @@
|
|||
margin-bottom: calc(var(--space-m) / 2);
|
||||
}
|
||||
|
||||
.event-card__infos h5 {
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
.event-card__infos .ticket {
|
||||
margin-top: 0.3rem;
|
||||
}
|
||||
|
||||
.event-card__infos > div {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.event-card__infos > div:first-child {
|
||||
margin-bottom: calc(var(--space-m) / 2);
|
||||
}
|
||||
|
||||
.event-card__infos > div > *:not(h5):last-child {
|
||||
place-self: end;
|
||||
/* place-self: end; */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ body.progress * {
|
|||
.grid {
|
||||
--column-gap: calc(var(--space-m) * 1.5);
|
||||
--row-gap: calc(var(--space-m) / 2);
|
||||
--row-length: calc(12 / var(--span));
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
column-gap: var(--column-gap);
|
||||
|
|
@ -16,8 +17,11 @@ body.progress * {
|
|||
}
|
||||
|
||||
.grid__item picture {
|
||||
--white-space: calc(var(--column-gap) + var(--space-m) * 2);
|
||||
--width: calc((100vw - var(--white-space)) / 2);
|
||||
--column-gap-nbr: var(--row-length) - 1;
|
||||
--white-space: calc(
|
||||
(var(--column-gap) * var(--column-gap-nbr)) + var(--space-m) * 2
|
||||
);
|
||||
--width: calc((100vw - var(--white-space)) / var(--row-length));
|
||||
height: calc(var(--width) / 1.4);
|
||||
}
|
||||
|
||||
|
|
@ -59,6 +63,10 @@ body.progress * {
|
|||
}
|
||||
}
|
||||
|
||||
.ticket {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.ticket:hover svg {
|
||||
animation: vibrate 0.5s forwards;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue