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;
opacity: 0;
pointer-events: none;
max-width: 25vw;
}
#popup h3,
#popup p {
text-align: center;
margin: 0;
font-size: 0.8rem !important;
}

View File

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

View File

@ -459,29 +459,33 @@ em {
width: 100%;
background-color: white;
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 {
margin-top: 5px;
display: flex;
justify-content: space-between;
justify-content: start;
align-items: center;
flex-wrap: nowrap;
}
.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 {
width: 100%;
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 {
width: 50vw;
max-width: 150px;
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img {
width: 100%;
@ -489,16 +493,9 @@ em {
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 15vw;
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 {
display: flex;
width: 100%;
@ -509,30 +506,38 @@ em {
position: relative;
}
.layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 2vw;
width: 50%;
width: 100%;
}
.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;
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;
font-size: 0.8rem;
font-family: "Marianne", sans-serif;
font-weight: 800;
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 nav ul {
width: 50vw;
padding: 0 15vw;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li:last-of-type {
margin-left: 1rem;
}
.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) {
.layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 0;
width: auto;
}
}
.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 {
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 {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
font-size: 0.8rem;
width: 1.6rem;
height: 1.6rem;
padding-top: 0.2rem;
border-radius: 0.8rem;
color: white;
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 {
display: none;
}
.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) {
.layout-container > footer #footer_middle #footer_section #footer_right {
width: auto;
margin-right: 25px;
}
}
@media (min-width: 760px) {
@ -571,6 +578,7 @@ em {
}
@media (min-width: 760px) {
.layout-container > footer {
display: block;
padding: 0;
}
}

File diff suppressed because one or more lines are too long

View File

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