nouveau-theatre-de-besancon/assets/css/src/hero.css

99 lines
1.7 KiB
CSS
Raw Normal View History

2024-07-30 12:07:47 +02:00
.hero {
2024-09-19 11:33:41 +02:00
--empty-space: 11.9rem;
2024-09-18 17:38:43 +02:00
background-color: var(--color-beige-light);
--padding-vertical: calc(var(--space-m) / 1.5);
2024-07-30 12:07:47 +02:00
display: grid;
2024-09-03 14:48:28 +02:00
grid-template-columns: 1.6fr 3fr;
column-gap: calc(var(--space-m) / 1.5);
2024-09-19 11:33:41 +02:00
height: calc(100vh - var(--empty-space));
2024-07-30 12:07:47 +02:00
}
2024-09-03 17:06:25 +02:00
.hero__text {
position: relative;
}
2024-07-30 12:07:47 +02:00
.hero__text h2 {
2024-09-03 14:48:28 +02:00
font-size: var(--font-size-xl);
2024-07-30 12:07:47 +02:00
width: 100%;
2024-07-31 18:29:16 +02:00
margin-bottom: var(--padding-vertical);
2024-07-30 12:07:47 +02:00
}
.hero__text h2.big {
font-size: var(--font-size-xxl);
}
2024-07-30 12:07:47 +02:00
.hero__text h3 {
2024-09-19 16:21:15 +02:00
/* color: var(--color-season); */
2024-09-03 14:48:28 +02:00
font-size: var(--font-size-h2);
}
.hero__text h3:nth-child(odd) {
text-align: end;
2024-07-30 12:07:47 +02:00
}
.hero__text p:not(:last-of-type) {
margin-bottom: 1rem;
}
.hero__text p:first-of-type {
2024-07-31 18:29:16 +02:00
margin-top: var(--padding-vertical);
2024-07-30 12:07:47 +02:00
}
2024-09-03 17:06:25 +02:00
.hero__link {
position: absolute;
bottom: 0;
font-weight: bold;
}
.hero__link::before {
2024-09-19 11:46:23 +02:00
display: inline-block;
2024-09-03 17:06:25 +02:00
content: "→";
margin-right: 1rem;
2024-09-19 11:46:23 +02:00
transform: translateX(0rem);
transition: all 0.3s var(--curve-quick-slow);
}
.hero__link:hover:before {
margin-right: 2rem;
}
2024-09-19 11:31:47 +02:00
.hero__image {
2024-09-19 11:33:41 +02:00
height: calc(100vh - var(--empty-space) - 2 * var(--padding-vertical));
2024-09-19 11:31:47 +02:00
}
.hero__image picture {
height: 100%;
}
.hero__image img {
object-fit: cover;
}
@media screen and (max-width: 800px) {
.hero__text h2 {
text-align: center;
}
2024-09-18 17:37:34 +02:00
.hero__text h2.big {
font-size: calc(var(--font-size-xxl) / 1.2);
text-align: left;
}
.hero__text p:first-of-type {
margin-top: 1rem;
}
.hero__link {
position: relative;
display: block;
margin: 1rem 0;
}
.hero {
2024-09-20 09:11:18 +02:00
padding: calc(var(--padding-vertical) / 1.2) var(--space-m) 2rem
var(--space-m) !important;
border-bottom: none !important;
2024-09-20 09:11:18 +02:00
height: auto;
}
.hero__image {
height: 60vw;
}
}