corrections footer + popups map projects

This commit is contained in:
Valentin Le Moign 2025-02-07 16:58:27 +01:00
parent 1a22f4c4c3
commit 9709130f0c
5 changed files with 96 additions and 71 deletions

View File

@ -26,10 +26,12 @@
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
max-width: 25vw;
} }
#popup h3, #popup h3,
#popup p { #popup p {
text-align: center; text-align: center;
margin: 0; margin: 0;
font-size: 0.8rem !important;
} }

View File

@ -272,6 +272,9 @@ document.addEventListener('DOMContentLoaded', () => {
}) })
if (containerImg.complete) { if (containerImg.complete) {
placeProjectsIcons(projectsIcons, containerImg); placeProjectsIcons(projectsIcons, containerImg);
window.addEventListener('resize', () => {
placeProjectsIcons(projectsIcons, containerImg);
});
} }
}); });

View File

@ -459,29 +459,33 @@ em {
width: 100%; width: 100%;
background-color: white; background-color: white;
margin-top: 50px; margin-top: 50px;
padding: 0 3vw; padding: 0 3vw !important;
}
@media screen and (min-width: 1080px) {
.layout-container > footer {
width: calc(100% - 50vw);
margin-left: 25vw;
}
}
.layout-container > footer #footer_middle {
display: flex;
} }
.layout-container > footer #footer_middle #footer_left > div { .layout-container > footer #footer_middle #footer_left > div {
margin-top: 5px; margin-top: 5px;
display: flex; display: flex;
justify-content: space-between; justify-content: start;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 30vw; max-width: 100px;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep img { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 10vw;
}
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 50vw; max-width: 150px;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img {
width: 100%; width: 100%;
@ -489,16 +493,9 @@ em {
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 15vw;
padding-left: 2vw; padding-left: 2vw;
} }
} }
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div {
width: 25vw;
padding-left: 3vw;
}
}
.layout-container > footer #footer_middle #footer_section { .layout-container > footer #footer_middle #footer_section {
display: flex; display: flex;
width: 100%; width: 100%;
@ -509,30 +506,38 @@ em {
position: relative; position: relative;
} }
.layout-container > footer #footer_middle #footer_section #footer_center { .layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 2vw; width: 100%;
width: 50%;
} }
.layout-container > footer #footer_middle #footer_section #footer_center nav ul { .layout-container > footer #footer_middle #footer_section #footer_center > div {
display: flex;
justify-content: space-around;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.layout-container > footer #footer_middle #footer_section #footer_center nav ul li a { .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li a {
color: #314e41; color: #314e41;
font-size: 0.8rem;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
font-weight: 800; font-weight: 800;
text-decoration: underline; text-decoration: underline;
font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
} }
@media (min-width: 760px) { .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li:last-of-type {
.layout-container > footer #footer_middle #footer_section #footer_center nav ul { margin-left: 1rem;
width: 50vw; }
padding: 0 15vw; .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:first-of-type {
} margin-left: 1rem;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:last-of-type {
margin-right: 1rem;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_center { .layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 0; padding-left: 0;
width: auto;
} }
} }
.layout-container > footer #footer_middle #footer_section #footer_right { .layout-container > footer #footer_middle #footer_section #footer_right {
@ -540,28 +545,30 @@ em {
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul {
display: flex; display: flex;
justify-content: space-between; justify-content: end;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a span { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a span {
font-weight: lighter; font-weight: lighter;
font-size: 1.4rem; font-size: 0.8rem;
width: 2.2rem; width: 1.6rem;
height: 2.2rem; height: 1.6rem;
padding: 0.4rem; padding-top: 0.2rem;
border-radius: 1.1rem; border-radius: 0.8rem;
color: white; color: white;
background-color: #038788; background-color: #038788;
display: flex;
justify-content: center;
align-items: center;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a svg.ext { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a svg.ext {
display: none; display: none;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li:last-of-type { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li:last-of-type {
margin-left: 25px; margin-left: 5px;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_right { .layout-container > footer #footer_middle #footer_section #footer_right {
width: auto; width: auto;
margin-right: 25px;
} }
} }
@media (min-width: 760px) { @media (min-width: 760px) {
@ -571,6 +578,7 @@ em {
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer { .layout-container > footer {
display: block;
padding: 0; padding: 0;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -2,39 +2,36 @@
width: 100%; width: 100%;
background-color: white; background-color: white;
margin-top: 50px; margin-top: 50px;
padding: 0 $x_margin; padding: 0 $x_margin !important;
@media screen and (min-width: $breakpoint_desktop) {
width: calc(100% - 50vw);
margin-left: 25vw;
}
#footer_middle { #footer_middle {
display: flex;
#footer_left > div { #footer_left > div {
margin-top: 5px; margin-top: 5px;
display: flex; display: flex;
justify-content: space-between; justify-content: start;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
#block-erabletheme-logorep { #block-erabletheme-logorep {
width: 30vw; max-width: 100px;
img { img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: $breakpoint_tablet) {
width: 10vw;
}
} }
#block-erabletheme-logoepau { #block-erabletheme-logoepau {
width: 50vw; max-width: 150px;
img { img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
width: 15vw;
padding-left: 2vw; padding-left: 2vw;
} }
} }
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: $x_margin;
}
} }
#footer_section { #footer_section {
display: flex; display: flex;
@ -45,26 +42,38 @@
margin-bottom: 20px; margin-bottom: 20px;
position: relative; position: relative;
#footer_center { #footer_center {
padding-left: 2vw; width: 100%;
width: 50%; > div {
nav ul {
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
li a { nav ul {
color: $dark_green; display: flex;
font-size: $sm_font_size; justify-content: space-between;
font-family: 'Marianne', sans-serif; li {
font-weight: 800; a {
text-decoration: underline; color: $dark_green;
} font-family: 'Marianne', sans-serif;
@media (min-width: $breakpoint_tablet) { font-weight: 800;
width: 50vw; text-decoration: underline;
padding: 0 15vw; font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
}
&:last-of-type {
margin-left: 1rem;
}
}
&:first-of-type {
margin-left: 1rem;
}
&:last-of-type {
margin-right: 1rem;
}
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
padding-left: 0; padding-left: 0;
width: auto;
} }
} }
@ -72,31 +81,33 @@
width: 30%; width: 30%;
#block-erabletheme-socialmedialinks-2 ul { #block-erabletheme-socialmedialinks-2 ul {
display: flex; display: flex;
justify-content: space-between; justify-content: end;
li { li {
a { a {
span { span {
font-weight: lighter; font-weight: lighter;
font-size: 1.4rem; font-size: 0.8rem;
width: 2.2rem; width: 1.6rem;
height: 2.2rem; height: 1.6rem;
padding: 0.4rem; padding-top: 0.2rem;
border-radius: 1.1rem; border-radius: 0.8rem;
color: white; color: white;
background-color: $teal; background-color: $teal;
display: flex;
justify-content: center;
align-items: center;
} }
svg.ext { svg.ext {
display: none; display: none;
} }
} }
&:last-of-type { &:last-of-type {
margin-left: 25px; margin-left: 5px;
} }
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
width: auto; width: auto;
margin-right: 25px;
} }
} }
@ -106,6 +117,7 @@
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
display: block;
padding: 0; padding: 0;
} }
} }