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

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

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;
}
}
}
}
}
}
}