modif header

This commit is contained in:
Valentin 2024-03-18 21:45:12 +01:00
parent 652f8ef333
commit ebadb23dcd
4 changed files with 229 additions and 227 deletions

View File

@ -48,6 +48,11 @@ a {
#block-erabletheme-contenudelapageprincipale { #block-erabletheme-contenudelapageprincipale {
margin-top: 10vh; margin-top: 10vh;
} }
@media (min-width: 1080px) {
#block-erabletheme-contenudelapageprincipale {
margin-top: 16vh;
}
}
strong { strong {
font-weight: bold; font-weight: bold;
@ -77,137 +82,102 @@ body.toolbar-fixed header {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
z-index: 99; z-index: 99;
} box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
.layout-container header div {
max-width: 100%;
max-height: 10vh;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
}
.layout-container header div #block-erabletheme-logorepublique {
width: 15%;
}
.layout-container header div #block-erabletheme-logorepublique a {
display: flex;
align-items: center;
}
.layout-container header div #block-erabletheme-logorepublique a img {
padding-left: 3vw;
height: auto;
width: 100%;
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-logorepublique a img { .layout-container header {
padding-right: 1.5vw; box-shadow: none;
} }
} }
.layout-container header > div {
height: 10vh;
display: grid;
grid-template-columns: repeat(16, 1fr);
}
.layout-container header > div > div {
height: 10vh;
grid-row: 1;
max-height: 100%;
width: 100%;
}
.layout-container header > div > div > div {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.layout-container header > div > div > div > div {
height: 10vh;
}
.layout-container header > div > div > div > div a {
display: block;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.layout-container header > div > div > div > div img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
.layout-container header > div #block-erabletheme-logorep-2 {
grid-column: 1/5;
}
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container header div #block-erabletheme-logorepublique { .layout-container header > div #block-erabletheme-logorep-2 {
padding-right: 2rem; grid-column: 0/4;
} }
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-logorepublique { .layout-container header > div #block-erabletheme-logorep-2 {
width: 10%; grid-column: 1/3;
padding-right: 1%;
} }
} }
.layout-container header div #block-erabletheme-logoerable { .layout-container header > div #block-erabletheme-logoepau-2 {
max-height: 100%; grid-column: 5/10;
width: 20%;
} }
.layout-container header div #block-erabletheme-logoerable > div { @media (min-width: 760px) {
width: auto; .layout-container header > div #block-erabletheme-logoepau-2 {
grid-column: 4/7;
} }
.layout-container header div #block-erabletheme-logoerable > div a {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.layout-container header div #block-erabletheme-logoerable > div a img {
height: 100%;
width: auto;
padding-top: 3px;
padding-bottom: 3px;
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-logoerable { .layout-container header > div #block-erabletheme-logoepau-2 {
width: 10%; grid-column: 3/6;
padding-left: 3%; }
padding-top: 0.4rem; .layout-container header > div #block-erabletheme-logoepau-2 img {
padding-bottom: 0.4rem; padding: 0 1rem;
} }
} }
.layout-container header div #block-erabletheme-navigationprincipale { .layout-container header > div #block-erabletheme-logoerable {
display: none; grid-column: 11/15;
width: 60%;
}
.layout-container header div #block-erabletheme-navigationprincipale ul {
width: 100%;
display: flex;
height: 100%;
align-items: center;
justify-content: space-around;
padding: 0 2vw;
}
.layout-container header div #block-erabletheme-navigationprincipale ul li {
font-family: "Marianne", sans-serif;
font-size: 0.9rem;
}
.layout-container header div #block-erabletheme-navigationprincipale ul li a {
font-weight: 800;
padding: 4px 6px;
color: black;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
}
.layout-container header div #block-erabletheme-navigationprincipale ul li a:hover {
background-color: #00ff80;
}
.layout-container header div #block-erabletheme-navigationprincipale ul li a.is-active {
background-color: #00ff80;
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-navigationprincipale { .layout-container header > div #block-erabletheme-logoerable {
display: block; grid-column: 14/16;
} }
} }
.layout-container header div #block-erabletheme-socialmedialinks { .layout-container header > div #block-erabletheme-logoerable img {
width: 7%; padding: 0 1.5rem;
margin: 0 calc((20% - (7% + 7vh)) / 2); }
.layout-container header > div #block-erabletheme-socialmedialinks {
display: none; display: none;
} }
.layout-container header div #block-erabletheme-socialmedialinks ul { .layout-container header > div #block-erabletheme-header {
height: 100%; grid-column: 15/17;
display: flex;
align-items: center;
justify-content: space-between;
}
.layout-container header div #block-erabletheme-socialmedialinks ul li a span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: #038788;
}
.layout-container header div #block-erabletheme-socialmedialinks ul li a svg.ext {
display: none;
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-socialmedialinks { .layout-container header > div #block-erabletheme-header {
display: block; grid-column: 16/17;
} }
} }
.layout-container header div #block-erabletheme-header #hamburger { .layout-container header > div #block-erabletheme-header #hamburger {
cursor: pointer; cursor: pointer;
width: 10vh; width: 100%;
height: 100%; height: 100%;
background-color: #00ff80; background-color: #00ff80;
display: flex; display: flex;
@ -216,13 +186,13 @@ body.toolbar-fixed header {
justify-content: space-around; justify-content: space-around;
padding: 0.5rem 0; padding: 0.5rem 0;
} }
.layout-container header div #block-erabletheme-header #hamburger h2 { .layout-container header > div #block-erabletheme-header #hamburger h2 {
font-size: 0.8rem; font-size: 0.8rem;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
font-weight: 800; font-weight: 800;
text-align: center; text-align: center;
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon { .layout-container header > div #block-erabletheme-header #hamburger .burger-icon {
width: 2rem; width: 2rem;
height: 1.5rem; height: 1.5rem;
display: flex; display: flex;
@ -230,7 +200,7 @@ body.toolbar-fixed header {
justify-content: space-between; justify-content: space-between;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon div { .layout-container header > div #block-erabletheme-header #hamburger .burger-icon div {
border-bottom: solid 1px black; border-bottom: solid 1px black;
width: 100%; width: 100%;
background-color: black; background-color: black;
@ -238,16 +208,16 @@ body.toolbar-fixed header {
transition: opacity 0.2s ease-out, transform 0.4s ease-out; transition: opacity 0.2s ease-out, transform 0.4s ease-out;
transform: none; transform: none;
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:first-of-type { .layout-container header > div #block-erabletheme-header #hamburger .burger-icon.open div:first-of-type {
transform: translate(0rem, 0.5rem) rotate(-45deg); transform: translate(0rem, 0.5rem) rotate(-45deg);
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:nth-of-type(2) { .layout-container header > div #block-erabletheme-header #hamburger .burger-icon.open div:nth-of-type(2) {
opacity: 0; opacity: 0;
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:last-of-type { .layout-container header > div #block-erabletheme-header #hamburger .burger-icon.open div:last-of-type {
transform: translate(0rem, -0.5rem) rotate(45deg); transform: translate(0rem, -0.5rem) rotate(45deg);
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) {
display: none; display: none;
height: auto; height: auto;
max-height: 0vh; max-height: 0vh;
@ -262,7 +232,7 @@ body.toolbar-fixed header {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -271,7 +241,7 @@ body.toolbar-fixed header {
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
max-width: 60vw; max-width: 60vw;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a {
text-align: center; text-align: center;
line-height: 1.2; line-height: 1.2;
color: white; color: white;
@ -281,61 +251,97 @@ body.toolbar-fixed header {
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease, color 0.3s ease; transition: background-color 0.3s ease, color 0.3s ease;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a:hover { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a:hover {
background-color: white; background-color: white;
color: #314e41; color: #314e41;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a.is-active { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a.is-active {
background-color: white; background-color: white;
color: #314e41; color: #314e41;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
max-width: 30vw; max-width: 30vw;
} }
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper {
display: flex; display: flex;
width: auto; width: auto;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li {
width: auto; width: auto;
padding: 0 1rem; padding: 0 1rem;
margin-top: 1rem; margin-top: 1rem;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a span { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a span {
color: white; color: white;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a svg { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a svg {
display: none; display: none;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li.visible { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li.visible {
opacity: 1; opacity: 1;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(1), .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(1),
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(2), .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(2),
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(6) { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(6) {
border-bottom: solid 1px white; border-bottom: solid 1px white;
padding: 12px 0; padding: 12px 0;
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) {
width: 25vw; width: 25vw;
right: 0; right: 0;
left: auto; left: auto;
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) li { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) li {
width: calc(100% - 6vw); width: calc(100% - 6vw);
} }
.layout-container header div #block-erabletheme-header ul:not(.social-media-links--platforms) li a { .layout-container header > div #block-erabletheme-header ul:not(.social-media-links--platforms) li a {
width: 100%; width: 100%;
text-align: left; text-align: left;
} }
} }
.layout-container header div #block-erabletheme-header ul.active { .layout-container header > div #block-erabletheme-header ul.active {
padding: 30px 0; padding: 30px 0;
max-height: 100vh; max-height: 100vh;
} }
.layout-container header > div #block-erabletheme-navigationprincipale {
display: none;
grid-column: 1/17;
grid-row: 2;
background-color: white;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
}
@media (min-width: 1080px) {
.layout-container header > div #block-erabletheme-navigationprincipale {
display: block;
}
}
.layout-container header > div #block-erabletheme-navigationprincipale ul {
width: 100%;
display: flex;
padding: 1rem 10vw;
justify-content: space-around;
border-top: solid 1px #314e41;
}
.layout-container header > div #block-erabletheme-navigationprincipale ul li {
font-family: "Marianne", sans-serif;
font-size: 0.9rem;
}
.layout-container header > div #block-erabletheme-navigationprincipale ul li a {
font-weight: 800;
padding: 4px 6px;
color: black;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
}
.layout-container header > div #block-erabletheme-navigationprincipale ul li a:hover {
background-color: #00ff80;
}
.layout-container header > div #block-erabletheme-navigationprincipale ul li a.is-active {
background-color: #00ff80;
}
.layout-container > footer { .layout-container > footer {
width: 100vw; width: 100vw;

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,8 @@
#block-erabletheme-contenudelapageprincipale { #block-erabletheme-contenudelapageprincipale {
margin-top: 10vh; margin-top: 10vh;
@media (min-width: $breakpoint_desktop) {
margin-top: 16vh;
}
} }
strong { strong {

View File

@ -17,126 +17,85 @@ body.toolbar-fixed header {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
z-index: 99; z-index: 99;
div { box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
max-width: 100%; @media (min-width: $breakpoint_desktop) {
max-height: 10vh; box-shadow: none;
display: flex; }
flex-wrap: nowrap; > div {
justify-content: space-between; height: 10vh;
#block-erabletheme-logorepublique { display: grid;
width: 15%; grid-template-columns: repeat(16, 1fr);
a { > div{
display: flex; height: 10vh;
align-items: center; grid-row: 1;
img { max-height: 100%;
padding-left: $x_margin;
height: auto;
width: 100%; width: 100%;
@media (min-width: $breakpoint_desktop) { > div {
padding-right: 1.5vw; width: 100%;
display: flex;
justify-content: center;
align-items: center;
> div {
height: 10vh;
a {
display: block;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
} }
} }
} }
}
#block-erabletheme-logorep-2 {
grid-column: 1 / 5;
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
padding-right: 2rem; grid-column: 0 / 4;
} }
@media (min-width: $breakpoint_desktop) { @media (min-width: $breakpoint_desktop) {
width: 10%; grid-column: 1 / 3;
padding-right: 1%; }
}
#block-erabletheme-logoepau-2 {
grid-column: 5 / 10;
@media (min-width: $breakpoint_tablet) {
grid-column: 4 / 7;
}
@media (min-width: $breakpoint_desktop) {
grid-column: 3 / 6;
img {
padding: 0 1rem;
}
} }
} }
#block-erabletheme-logoerable { #block-erabletheme-logoerable {
max-height: 100%; grid-column: 11 / 15;
width: 20%; @media (min-width: $breakpoint_desktop) {
> div { grid-column: 14 / 16;
width: auto; }
a {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
img { img {
height: 100%; padding: 0 1.5rem;
width: auto;
padding-top: 3px;
padding-bottom: 3px;
}
}
}
@media (min-width: $breakpoint_desktop) {
width: 10%;
padding-left: 3%;
padding-top: 0.4rem;
padding-bottom: 0.4rem;
}
}
#block-erabletheme-navigationprincipale {
display: none;
width: 60%;
ul {
width: 100%;
display: flex;
height: 100%;
align-items: center;
justify-content: space-around;
padding: 0 2vw;
li {
font-family: 'Marianne', sans-serif;
font-size: $m_font_size;
a {
font-weight: 800;
padding: 4px 6px;
color: black;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
}
a:hover {
background-color: $fluo_green;
}
a.is-active {
background-color: $fluo_green;
}
}
}
@media (min-width: $breakpoint_desktop) {
display: block;
} }
} }
#block-erabletheme-socialmedialinks { #block-erabletheme-socialmedialinks {
width: 7%;
margin: 0 calc((20% - (7% + 7vh)) / 2);
display: none; display: none;
ul {
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
li a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
display: none;
}
}
}
@media (min-width: $breakpoint_desktop) {
display: block;
}
} }
#block-erabletheme-header { #block-erabletheme-header {
grid-column: 15 / 17;
@media (min-width: $breakpoint_desktop) {
grid-column: 16 / 17;
}
#hamburger { #hamburger {
cursor: pointer; cursor: pointer;
width: 10vh; width: 100%;
height: 100%; height: 100%;
background-color: $fluo_green; background-color: $fluo_green;
display: flex; display: flex;
@ -268,6 +227,40 @@ body.toolbar-fixed header {
max-height: 100vh; max-height: 100vh;
} }
} }
#block-erabletheme-navigationprincipale {
display: none;
grid-column: 1 / 17;
grid-row: 2;
background-color: white;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
@media (min-width: $breakpoint_desktop) {
display: block;
}
ul {
width: 100%;
display: flex;
padding: 1rem 10vw;
justify-content: space-around;
border-top: solid 1px $dark_green;
li {
font-family: 'Marianne', sans-serif;
font-size: $m_font_size;
a {
font-weight: 800;
padding: 4px 6px;
color: black;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
}
a:hover {
background-color: $fluo_green;
}
a.is-active {
background-color: $fluo_green;
}
}
}
}
} }
} }
} }