css timeline

This commit is contained in:
ouidade 2024-09-20 15:19:36 +02:00
parent 912964a61a
commit fc14bd11d5
2 changed files with 23 additions and 14 deletions

View File

@ -1141,6 +1141,7 @@ footer {
width: fit-content; width: fit-content;
margin: auto; margin: auto;
margin-top: 0; margin-top: 0;
margin-bottom: 8rem;
padding-bottom: 2rem; padding-bottom: 2rem;
} }
@media (max-width: 1090px) { @media (max-width: 1090px) {
@ -1148,6 +1149,9 @@ footer {
margin-bottom: 9rem; margin-bottom: 9rem;
} }
} }
#home .timeline .__timeline-arrows #arrowPrev {
padding-inline: 0;
}
#home .timeline .__timeline-arrows button { #home .timeline .__timeline-arrows button {
background-color: transparent; background-color: transparent;
border: none; border: none;
@ -1171,7 +1175,7 @@ footer {
#home .timeline .__timeline-content .__paragraphs { #home .timeline .__timeline-content .__paragraphs {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
width: 700px; width: 500px;
height: 1px; height: 1px;
background: black; background: black;
} }
@ -1203,7 +1207,7 @@ footer {
left: -18px; left: -18px;
top: -16px; top: -16px;
transform: translateY(-100%); transform: translateY(-100%);
width: 600px; width: 400px;
height: 300px; height: 300px;
font-size: 1rem; font-size: 1rem;
white-space: normal; white-space: normal;
@ -1292,8 +1296,7 @@ footer {
border-radius: 5%; border-radius: 5%;
padding: 0.6rem 0.6rem; padding: 0.6rem 0.6rem;
line-height: 1.1; line-height: 1.1;
width: fit-content; width: 50%;
min-width: 35%;
} }
@media (max-width: 1090px) { @media (max-width: 1090px) {
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text { #home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text {
@ -1302,8 +1305,8 @@ footer {
} }
} }
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_titre { #home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_titre {
font-size: 0.6rem; font-size: 0.8rem;
font-weight: 800; font-family: "gilroy-semibold";
} }
@media (max-width: 1090px) { @media (max-width: 1090px) {
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_titre { #home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_titre {
@ -1314,7 +1317,7 @@ footer {
font-family: "gilroy-regular"; font-family: "gilroy-regular";
} }
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_description p { #home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_description p {
font-size: 0.6rem !important; font-size: 0.8rem !important;
margin: 0; margin: 0;
} }
@media (max-width: 1090px) { @media (max-width: 1090px) {

View File

@ -40,16 +40,21 @@
width: fit-content; width: fit-content;
margin: auto; margin: auto;
margin-top: 0; margin-top: 0;
margin-bottom: 8rem;
padding-bottom: 2rem; padding-bottom: 2rem;
@media(max-width:1090px){ @media(max-width:1090px){
// top: -211px; // top: -211px;
// display: none; // display: none;
margin-bottom: 9rem; margin-bottom: 9rem;
} }
#arrowPrev{
padding-inline: 0;
}
button{ button{
background-color: transparent; background-color: transparent;
border: none; border: none;
padding-left: 1rem; padding-left: 1rem;
&:hover{ &:hover{
opacity: 0.5; opacity: 0.5;
} }
@ -71,7 +76,7 @@
.__paragraphs{ .__paragraphs{
position: relative; position: relative;
display: inline-flex; display: inline-flex;
width: 700px; width: 500px;
height: 1px; height: 1px;
background: black; background: black;
// &:last-of-type{ // &:last-of-type{
@ -108,7 +113,7 @@
left: -18px; left: -18px;
top: -16px; top: -16px;
transform: translateY(-100%); transform: translateY(-100%);
width: 600px; width: 400px;
height: 300px; height: 300px;
font-size: 1rem; font-size: 1rem;
white-space: normal; white-space: normal;
@ -207,15 +212,16 @@
border-radius: 5%; border-radius: 5%;
padding: 0.6rem 0.6rem; padding: 0.6rem 0.6rem;
line-height: 1.1; line-height: 1.1;
width: fit-content; width: 50%;
min-width: 35%; // min-width: fit-content;
@media(max-width:1090px){ @media(max-width:1090px){
height: 200px; height: 200px;
min-width: 80%; min-width: 80%;
} }
.field_field_titre{ .field_field_titre{
font-size: 0.6rem; font-size: 0.8rem;
font-weight: 800; font-family: 'gilroy-semibold';
// font-weight: 800;
@media(max-width:1090px){ @media(max-width:1090px){
font-size: 1rem; font-size: 1rem;
} }
@ -223,7 +229,7 @@
.field_field_description{ .field_field_description{
font-family: 'gilroy-regular'; font-family: 'gilroy-regular';
p{ p{
font-size: 0.6rem !important; font-size: 0.8rem !important;
margin: 0; margin: 0;
@media(max-width:1090px){ @media(max-width:1090px){
font-size: 1rem !important; font-size: 1rem !important;