nouveau-theatre-de-besancon/assets/css/src/events-grid.css

88 lines
1.3 KiB
CSS
Raw Normal View History

.events-grid {
--padding-vertical: calc(var(--space-m) / 2);
}
2024-07-30 19:03:01 +02:00
2024-08-28 11:28:22 +02:00
.collapsable-sections + .events-grid {
border-top: none;
}
.events-grid h4 {
margin-bottom: calc(var(--space-m) / 2);
}
2024-07-31 07:59:51 +02:00
2024-09-04 16:09:25 +02:00
.event-card {
position: relative;
}
2024-09-19 08:06:58 +02:00
.event-card:hover .event-card__infos {
color: var(--color);
}
2024-07-31 07:59:51 +02:00
.event-card picture {
2024-09-05 12:23:07 +02:00
height: calc(((100vw - 9 * var(--space-m)) / 12) * var(--span));
2024-07-31 07:59:51 +02:00
margin-bottom: calc(var(--space-m) / 2);
}
.event-card__infos {
position: relative;
}
2024-07-31 12:09:03 +02:00
.event-card__infos > div a {
max-width: 85%;
2024-07-31 11:20:08 +02:00
}
.event-card__infos .ticket {
2024-09-20 16:31:57 +02:00
position: relative;
2024-09-05 12:23:07 +02:00
z-index: 5;
2024-07-31 11:20:08 +02:00
margin-top: 0.3rem;
padding: 0.5rem;
right: -0.5rem;
top: -0.5rem;
2024-07-31 11:20:08 +02:00
}
2024-07-31 07:59:51 +02:00
.event-card__infos > div {
2024-07-31 11:20:08 +02:00
display: flex;
justify-content: space-between;
align-items: flex-end;
2024-09-10 18:43:19 +02:00
column-gap: 2vw;
2024-07-31 07:59:51 +02:00
}
.event-card__infos > div:first-child {
align-items: start;
2024-07-31 07:59:51 +02:00
margin-bottom: calc(var(--space-m) / 2);
}
2024-09-04 16:09:25 +02:00
2024-09-05 12:23:07 +02:00
.event-card__link {
2024-09-04 16:09:25 +02:00
position: absolute;
inset: 0;
2024-09-05 12:23:07 +02:00
z-index: 3;
2024-09-04 16:09:25 +02:00
}
2024-09-20 14:57:29 +02:00
.hero__image {
position: relative;
}
.hero__image a {
position: absolute;
display: block;
inset: 0;
z-index: 3;
}
2024-09-21 15:55:55 +02:00
@media screen and (max-width: 1050px) {
.events-grid {
--padding-vertical: 10vw;
}
.events-grid h4 {
margin-bottom: 1.2rem;
}
.event-card {
margin-bottom: 1rem;
}
.event-card picture {
height: 70vw;
}
.event-card svg {
width: 2rem;
}
}