Merge branch 'master' of gitea-figureslibres.io:bachir/drupal-erable

This commit is contained in:
Bachir Soussi Chiadmi 2024-03-20 22:32:05 +01:00
commit fa8bcef1c3
4 changed files with 285 additions and 289 deletions

View File

@ -44,7 +44,10 @@ a {
text-decoration: none; }
main[role="main"] {
margin-top: 13vh; }
margin-top: 10vh; }
@media (min-width: 1080px) {
main[role="main"] {
margin-top: 16vh; } }
strong {
font-weight: bold; }
@ -69,209 +72,205 @@ body.toolbar-fixed header[role="banner"] {
position: fixed;
top: 0;
left: 0;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
z-index: 99; }
.layout-container header[role="banner"] div {
max-width: 100%;
max-height: 10vh;
display: flex;
flex-wrap: nowrap;
justify-content: space-between; }
.layout-container header[role="banner"] div #block-erabletheme-logorepublique {
width: 15%; }
.layout-container header[role="banner"] div #block-erabletheme-logorepublique a {
display: flex;
align-items: center; }
.layout-container header[role="banner"] div #block-erabletheme-logorepublique a img {
padding-left: 3vw;
height: auto;
width: 100%; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-logorepublique a img {
padding-right: 1.5vw; } }
@media (min-width: 760px) {
.layout-container header[role="banner"] div #block-erabletheme-logorepublique {
padding-right: 2rem; } }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-logorepublique {
width: 10%;
padding-right: 1%; } }
.layout-container header[role="banner"] div #block-erabletheme-logoerable {
z-index: 99;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2); }
@media (min-width: 1080px) {
.layout-container header[role="banner"] {
box-shadow: none; } }
.layout-container header[role="banner"] > div {
height: 10vh;
display: grid;
grid-template-columns: repeat(16, 1fr); }
.layout-container header[role="banner"] > div > div {
height: 10vh;
grid-row: 1;
max-height: 100%;
width: 20%; }
.layout-container header[role="banner"] div #block-erabletheme-logoerable > div {
width: auto; }
.layout-container header[role="banner"] div #block-erabletheme-logoerable > div a {
width: 100%;
display: flex;
align-items: center;
justify-content: center; }
.layout-container header[role="banner"] div #block-erabletheme-logoerable > div a img {
height: 100%;
width: auto;
padding-top: 3px;
padding-bottom: 3px; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-logoerable {
width: 10%;
padding-left: 3%;
padding-top: 0.4rem;
padding-bottom: 0.4rem; } }
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale {
display: none;
width: 60%; }
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale ul {
width: 100%; }
.layout-container header[role="banner"] > div > div > div {
width: 100%;
display: flex;
justify-content: center;
align-items: center; }
.layout-container header[role="banner"] > div > div > div > div {
height: 10vh; }
.layout-container header[role="banner"] > div > div > div > div a {
display: block;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center; }
.layout-container header[role="banner"] > div > div > div > div img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%; }
.layout-container header[role="banner"] > div #block-erabletheme-logorep-2 {
grid-column: 1 / 5; }
@media (min-width: 760px) {
.layout-container header[role="banner"] > div #block-erabletheme-logorep-2 {
grid-column: 0 / 4; } }
@media (min-width: 1080px) {
.layout-container header[role="banner"] > div #block-erabletheme-logorep-2 {
grid-column: 1 / 3; } }
.layout-container header[role="banner"] > div #block-erabletheme-logoepau-2 {
grid-column: 5 / 10; }
@media (min-width: 760px) {
.layout-container header[role="banner"] > div #block-erabletheme-logoepau-2 {
grid-column: 4 / 7; } }
@media (min-width: 1080px) {
.layout-container header[role="banner"] > div #block-erabletheme-logoepau-2 {
grid-column: 3 / 6; }
.layout-container header[role="banner"] > div #block-erabletheme-logoepau-2 img {
padding: 0 1rem; } }
.layout-container header[role="banner"] > div #block-erabletheme-logoerable {
grid-column: 11 / 15; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] > div #block-erabletheme-logoerable {
grid-column: 14 / 16; } }
.layout-container header[role="banner"] > div #block-erabletheme-logoerable img {
padding: 0 1.5rem; }
.layout-container header[role="banner"] > div #block-erabletheme-socialmedialinks {
display: none; }
.layout-container header[role="banner"] > div #block-erabletheme-header {
grid-column: 15 / 17; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] > div #block-erabletheme-header {
grid-column: 16 / 17; } }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger {
cursor: pointer;
width: 100%;
height: 100%;
background-color: #00ff80;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding: 0 2vw; }
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale ul li {
padding: 0.5rem 0; }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger h2 {
font-size: 0.8rem;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-align: center; }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger .burger-icon {
width: 2rem;
height: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 0.5rem; }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger .burger-icon div {
border-bottom: solid 1px black;
width: 100%;
background-color: black;
opacity: 1;
transition: opacity 0.2s ease-out, transform 0.4s ease-out;
transform: none; }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger .burger-icon.open div:first-of-type {
transform: translate(0rem, 0.5rem) rotate(-45deg); }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger .burger-icon.open div:nth-of-type(2) {
opacity: 0; }
.layout-container header[role="banner"] > div #block-erabletheme-header #hamburger .burger-icon.open div:last-of-type {
transform: translate(0rem, -0.5rem) rotate(45deg); }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) {
display: none;
height: auto;
max-height: 0vh;
transition: max-height 0.9s ease, padding 0.5s ease-out;
position: fixed;
background-color: #314e41;
top: 10vh;
left: 0;
width: 100vw;
z-index: 0;
padding: 0;
align-items: center;
flex-direction: column; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
width: 100%;
display: flex;
justify-content: center;
padding: 6px 0;
opacity: 0;
transition: opacity 0.3s ease;
max-width: 60vw; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a {
text-align: center;
line-height: 1.2;
color: white;
font-family: 'Marianne', sans-serif;
font-weight: 800;
padding: 4px 6px;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease, color 0.3s ease; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a:hover {
background-color: white;
color: #314e41; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a.is-active {
background-color: white;
color: #314e41; }
@media (min-width: 760px) {
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
max-width: 30vw; } }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper {
display: flex;
width: auto; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li {
width: auto;
padding: 0 1rem;
margin-top: 1rem; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a span {
color: white; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a svg {
display: none; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li.visible {
opacity: 1; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(1),
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(2),
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(6) {
border-bottom: solid 1px white;
padding: 12px 0; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) {
width: 25vw;
right: 0;
left: auto; }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) li {
width: calc(100% - $x_margin * 2); }
.layout-container header[role="banner"] > div #block-erabletheme-header ul:not(.social-media-links--platforms) li a {
width: 100%;
text-align: left; } }
.layout-container header[role="banner"] > div #block-erabletheme-header ul.active {
padding: 30px 0;
max-height: 100vh; }
.layout-container header[role="banner"] > 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[role="banner"] > div #block-erabletheme-navigationprincipale {
display: block; } }
.layout-container header[role="banner"] > div #block-erabletheme-navigationprincipale ul {
width: 100%;
display: flex;
padding: 1rem 10vw;
justify-content: space-around;
border-top: solid 1px #314e41; }
.layout-container header[role="banner"] > div #block-erabletheme-navigationprincipale ul li {
font-family: 'Marianne', sans-serif;
font-size: 0.9rem; }
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale ul li a {
.layout-container header[role="banner"] > 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[role="banner"] div #block-erabletheme-navigationprincipale ul li a:hover {
.layout-container header[role="banner"] > div #block-erabletheme-navigationprincipale ul li a:hover {
background-color: #00ff80; }
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale ul li a.is-active {
.layout-container header[role="banner"] > div #block-erabletheme-navigationprincipale ul li a.is-active {
background-color: #00ff80; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-navigationprincipale {
display: block; } }
.layout-container header[role="banner"] div #block-erabletheme-socialmedialinks {
width: 7%;
margin: 0 calc((20% - (7% + 7vh)) / 2);
display: none; }
.layout-container header[role="banner"] div #block-erabletheme-socialmedialinks ul {
height: 100%;
display: flex;
align-items: center;
justify-content: space-between; }
.layout-container header[role="banner"] 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[role="banner"] div #block-erabletheme-socialmedialinks ul li a svg.ext {
display: none; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-socialmedialinks {
display: block; } }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger {
cursor: pointer;
width: 10vh;
height: 100%;
background-color: #00ff80;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding: 0.5rem 0; }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger h2 {
font-size: 0.8rem;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-align: center; }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger .burger-icon {
width: 2rem;
height: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 0.5rem; }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger .burger-icon div {
border-bottom: solid 1px black;
width: 100%;
background-color: black;
opacity: 1;
transition: opacity 0.2s ease-out, transform 0.4s ease-out;
transform: none; }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger .burger-icon.open div:first-of-type {
transform: translate(0rem, 0.5rem) rotate(-45deg); }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger .burger-icon.open div:nth-of-type(2) {
opacity: 0; }
.layout-container header[role="banner"] div #block-erabletheme-header #hamburger .burger-icon.open div:last-of-type {
transform: translate(0rem, -0.5rem) rotate(45deg); }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) {
display: none;
height: auto;
max-height: 0vh;
transition: max-height 0.9s ease, padding 0.5s ease-out;
position: fixed;
background-color: #314e41;
top: 10vh;
left: 0;
width: 100vw;
z-index: 0;
padding: 0;
align-items: center;
flex-direction: column; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
width: 100%;
display: flex;
justify-content: center;
padding: 6px 0;
opacity: 0;
transition: opacity 0.3s ease;
max-width: 60vw; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a {
text-align: center;
line-height: 1.2;
color: white;
font-family: 'Marianne', sans-serif;
font-weight: 800;
padding: 4px 6px;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease, color 0.3s ease; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a:hover {
background-color: white;
color: #314e41; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li > a.is-active {
background-color: white;
color: #314e41; }
@media (min-width: 760px) {
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li {
max-width: 30vw; } }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper {
display: flex;
width: auto; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li {
width: auto;
padding: 0 1rem;
margin-top: 1rem; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a span {
color: white; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li #socials-in-menu-wrapper li a svg {
display: none; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li.visible {
opacity: 1; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(1),
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(2),
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) > li:nth-of-type(6) {
border-bottom: solid 1px white;
padding: 12px 0; }
@media (min-width: 1080px) {
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) {
width: 25vw;
right: 0;
left: auto; }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) li {
width: calc(100% - $x_margin * 2); }
.layout-container header[role="banner"] div #block-erabletheme-header ul:not(.social-media-links--platforms) li a {
width: 100%;
text-align: left; } }
.layout-container header[role="banner"] div #block-erabletheme-header ul.active {
padding: 30px 0;
max-height: 100vh; }
.layout-container > footer {
width: 100vw;

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,9 @@
main[role="main"] {
margin-top: 13vh;
margin-top: 10vh;
@media (min-width: $breakpoint_desktop) {
margin-top: 16vh;
}
}
strong {

View File

@ -17,126 +17,85 @@ body.toolbar-fixed header[role="banner"] {
position: fixed;
top: 0;
left: 0;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
z-index: 99;
div {
max-width: 100%;
max-height: 10vh;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
#block-erabletheme-logorepublique {
width: 15%;
a {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
@media (min-width: $breakpoint_desktop) {
box-shadow: none;
}
> div {
height: 10vh;
display: grid;
grid-template-columns: repeat(16, 1fr);
> div{
height: 10vh;
grid-row: 1;
max-height: 100%;
width: 100%;
> div {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
img {
padding-left: $x_margin;
height: auto;
width: 100%;
@media (min-width: $breakpoint_desktop) {
padding-right: 1.5vw;
> 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) {
padding-right: 2rem;
grid-column: 0 / 4;
}
@media (min-width: $breakpoint_desktop) {
width: 10%;
padding-right: 1%;
grid-column: 1 / 3;
}
}
#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 {
max-height: 100%;
width: 20%;
> div {
width: auto;
a {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
img {
height: 100%;
width: auto;
padding-top: 3px;
padding-bottom: 3px;
}
}
}
grid-column: 11 / 15;
@media (min-width: $breakpoint_desktop) {
width: 10%;
padding-left: 3%;
padding-top: 0.4rem;
padding-bottom: 0.4rem;
grid-column: 14 / 16;
}
}
#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;
img {
padding: 0 1.5rem;
}
}
#block-erabletheme-socialmedialinks {
width: 7%;
margin: 0 calc((20% - (7% + 7vh)) / 2);
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 {
grid-column: 15 / 17;
@media (min-width: $breakpoint_desktop) {
grid-column: 16 / 17;
}
#hamburger {
cursor: pointer;
width: 10vh;
width: 100%;
height: 100%;
background-color: $fluo_green;
display: flex;
@ -268,6 +227,40 @@ body.toolbar-fixed header[role="banner"] {
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;
}
}
}
}
}
}
}