This commit is contained in:
ouidade 2024-07-06 18:59:45 +02:00
parent ac44975dd1
commit 350a0bc5fc
7 changed files with 197 additions and 211 deletions

File diff suppressed because one or more lines are too long

View File

@ -172,18 +172,16 @@ h3 {
user-select: none; user-select: none;
} }
.layout-container header { .layout-container header {
flex: 0 0 100%; flex: 0 0 50%;
} }
.layout-container footer { .layout-container footer {
flex: 0 0 100%; flex: 0 0 100%;
} }
.layout-container main { .layout-container main {
width: 100%; width: 100%;
}
.layout-content {
padding-top: 320px; padding-top: 320px;
} }
@media (max-width: 500px) { @media (max-width: 500px) {
.layout-content { .layout-content {
padding-top: 50px; padding-top: 50px;
@ -225,26 +223,24 @@ svg.ext {
/*partials*/ /*partials*/
header { header {
display: grid; display: flex;
grid-template-columns: repeat(12, 1fr); flex-direction: row;
grid-template-rows: repeat(3, 1fr);
height: 320px; height: 320px;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
z-index: 99; z-index: 99;
width: 38vw; width: 38vw;
max-width: 100vw; max-width: 100vw;
position: fixed;
top: 0; top: 0;
border: 1px solid #808080;
} }
header .contextual-region { header .contextual-region {
width: max-content; width: max-content;
} }
header .header_left_container { header .header_left_container {
grid-column: 1/span 11; flex: 0 0 60%;
grid-row: 1/span 3;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
border-right: 1px solid #808080; border-bottom: 1px solid #808080;
padding-left: 2%; padding-left: 2%;
padding-right: 2%; padding-right: 2%;
} }
@ -277,7 +273,8 @@ header .header_left_container #block-quartiers-de-demain-logoquartiersdedemain {
header .header_left_container img { header .header_left_container img {
width: auto; width: auto;
margin: auto; margin: auto;
height: 320px; height: calc(320px - 5rem);
padding: 2rem;
} }
@media (max-width: 891px) { @media (max-width: 891px) {
header .header_left_container img { header .header_left_container img {
@ -295,6 +292,7 @@ header .header_left_container img {
} }
} }
header .header_right_container { header .header_right_container {
display: none;
margin: auto; margin: auto;
} }
@media (max-width: 660px) { @media (max-width: 660px) {
@ -335,84 +333,38 @@ header .header_right_container .language-switcher-language-url ul .is-active {
font-weight: 600; font-weight: 600;
} }
header .header_nav_container { header .header_nav_container {
display: none; flex: 0 0 30%;
grid-row: 3;
grid-column: 1/span 12;
top: 100%; top: 100%;
width: 100%; width: 100%;
background: rgb(232, 235, 244); background: rgb(7, 50, 194);
border-bottom: 1px solid #808080; border-bottom: 1px solid #808080;
border-top: 1px solid #808080; border-top: 1px solid #808080;
font-size: 1.2rem;
text-align: center; text-align: center;
} }
header .header_nav_container #block-quartiers-de-demain-entete {
grid-column: 1/span 11;
order: 2;
margin: auto;
}
header .header_nav_container #block-quartiers-de-demain-entete h2 { header .header_nav_container #block-quartiers-de-demain-entete h2 {
display: none; display: none;
} }
header .display-nav-opened { header .header_nav_container #block-quartiers-de-demain-entete ul {
display: grid; display: flex;
grid-template-columns: repeat(12, 1fr); flex-direction: column;
grid-gap: 10px; align-items: flex-start;
}
header .open-block, header .open-block.opened {
cursor: pointer;
}
header .open-block span, header .open-block.opened span {
display: block;
width: 58px;
height: 2px;
position: relative; position: relative;
background: black; top: 80px;
border-radius: 3px; padding-left: 1rem;
z-index: 1; margin: 0;
} }
@media (max-width: 660px) { header .header_nav_container #block-quartiers-de-demain-entete ul li a {
header .open-block span, header .open-block.opened span { text-transform: uppercase;
width: 25px; color: white;
} font-size: 0.5rem;
} }
header .open-block { header .header_nav_container #block-quartiers-de-demain-entete ul li:not(:last-of-type) ::after {
height: 100%; content: "";
display: grid; display: block;
align-items: center; width: 80px;
margin: auto; border-bottom: solid white 1px;
padding-bottom: 0.3rem;
} }
@media (max-width: 450px) {
header .open-block {
height: 50px;
}
}
header .open-block span {
margin-bottom: 13px;
transform-origin: 4px 0px;
}
@media (max-width: 660px) {
header .open-block span {
margin-bottom: 5px;
}
}
header .open-block.opened {
margin: auto;
}
header .open-block.opened span {
transform-origin: center;
margin-bottom: 0;
}
header .open-block.opened > div > span:first-child {
transform: translateY(57%) rotate(45deg);
}
header .open-block.opened > div > span:nth-child(2) {
transform: rotate(-45deg);
}
header .open-block.opened > div > span:nth-child(3) {
display: none;
}
footer { footer {
z-index: 100; z-index: 100;
} }
@ -1370,9 +1322,6 @@ footer span.totop #toTop .arrow-up::before {
#consultation { #consultation {
background-color: #f6f7f3; background-color: #f6f7f3;
} }
#consultation .layout-content {
padding-top: 1rem;
}
#consultation .layout-content .content_container { #consultation .layout-content .content_container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -14,28 +14,28 @@
} (Drupal)); } (Drupal));
jQuery(document).ready(function($){ // jQuery(document).ready(function($){
$('.open-block').click(function(){ // $('.open-block').click(function(){
$(this).toggleClass('opened'); // $(this).toggleClass('opened');
$('.header_nav_container').toggleClass('display-nav-opened'); // $('.header_nav_container').toggleClass('display-nav-opened');
if(mobile == true){ // if(mobile == true){
$("body").css("overflow","hidden"); // $("body").css("overflow","hidden");
} // }
}); // });
// Hide the header_nav_container when a link inside it is clicked // // Hide the header_nav_container when a link inside it is clicked
$('.header_nav_container li').click(function() { // $('.header_nav_container li').click(function() {
$('.header_nav_container').fadeOut(); // $('.header_nav_container').fadeOut();
}); // });
}); // });
// ///////////////// // /////////////////

View File

@ -28,7 +28,7 @@ $width-menu-slidedown : 550px;
user-select: none; user-select: none;
header{ header{
flex: 0 0 100%; flex: 0 0 50%;
} }
footer{ footer{
@ -36,6 +36,7 @@ $width-menu-slidedown : 550px;
} }
main{ main{
width: 100%; width: 100%;
padding-top: $header-height;
// display: grid; // display: grid;
// grid-template-columns: repeat(12, 1fr); // grid-template-columns: repeat(12, 1fr);
} }
@ -47,7 +48,7 @@ $width-menu-slidedown : 550px;
.layout-content{ .layout-content{
// grid-column: 1 / span 12; // grid-column: 1 / span 12;
padding-top: $header-height; // padding-top: $header-height;
@media(max-width: 500px){ @media(max-width: 500px){
padding-top: $header-height-ultrasmall; padding-top: $header-height-ultrasmall;

View File

@ -3,7 +3,7 @@
.layout-content{ .layout-content{
padding-top: 1rem; // padding-top: 1rem;
.content_container{ .content_container{
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -1,16 +1,18 @@
header{ header{
display: grid; // display: grid;
grid-template-columns: repeat(12, 1fr); // grid-template-columns: 2.5fr 1fr;
// grid-gap: 10px; // // grid-gap: 10px;
grid-template-rows: repeat(3, 1fr); // grid-template-rows: repeat(3, 1fr);
display: flex;
flex-direction: row;
height: $header-height; height: $header-height;
background-color: $white-header; background-color: $white-header;
z-index: 99; z-index: 99;
width: 38vw; width: 38vw;
max-width: 100vw; max-width: 100vw;
// position: fixed; position: fixed;
top: 0; top: 0;
border: 1px solid #808080; // border: 1px solid #808080;
// @media (max-width:810px) { // @media (max-width:810px) {
// // width: 800px; // // width: 800px;
// height: $header-height-pad; // height: $header-height-pad;
@ -26,54 +28,57 @@ header{
width: max-content; width: max-content;
} }
.header_left_container{ .header_left_container{
grid-column: 1 /span 11; // grid-column: 1 ;
grid-row: 1 /span 3; // grid-row: 1 /span 3;
flex: 0 0 60%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
border-right: 1px solid #808080; border-bottom: 1px solid #808080;
padding-left: 2%; padding-left: 2%;
padding-right: 2%; padding-right: 2%;
@media(max-width: 660px){ @media(max-width: 660px){
height: inherit; height: inherit;
}
#block-quartiers-de-demain-logorepu-2{
display: none;
@media(max-width: 891px){
height: $header-height-pad;
}
}
#block-quartiers-de-demain-logoepau-2{
display: none;
height: $header-height;
@media(max-width: 891px){
height: $header-height-pad;
} }
#block-quartiers-de-demain-logorepu-2{ }
display: none; #block-quartiers-de-demain-logoquartiersdedemain{
@media(max-width: 891px){ // margin-left: auto;
height: $header-height-pad; padding-right: 5%;
} margin: auto;
}
#block-quartiers-de-demain-logoepau-2{ }
display: none; img{
height: $header-height; width: auto;
margin: auto;
height: calc($header-height - 5rem);
padding: 2rem;
@media(max-width: 891px){ @media(max-width: 891px){
height: $header-height-pad; height: $header-height-pad;
} }
@media(max-width: 660px){
} height: $header-height-small;
#block-quartiers-de-demain-logoquartiersdedemain{ }
// margin-left: auto; @media(max-width: 450px){
padding-right: 5%; height: $header-height-ultrasmall;
margin: auto; }
}
} }
img{ .header_right_container{
width: auto; display: none;
margin: auto;
height: $header-height;
@media(max-width: 891px){
height: $header-height-pad;
}
@media(max-width: 660px){
height: $header-height-small;
}
@media(max-width: 450px){
height: $header-height-ultrasmall;
}
}
}
.header_right_container{
margin: auto; margin: auto;
@media(max-width: 660px){ @media(max-width: 660px){
padding-right: 0; padding-right: 0;
@ -111,88 +116,119 @@ header{
} }
} }
}
}
.header_nav_container{ .header_nav_container{
display: none; // display: none;
grid-row: 3; // grid-row: 3;
grid-column: 1 /span 12; // grid-column: 1 /span 2;
// position: absolute; // position: absolute;
flex: 0 0 30%;
top: 100%; top: 100%;
width: 100%; width: 100%;
background: $bleu_fond_header; background: $blue_QDD;
border-bottom: 1px solid #808080; border-bottom: 1px solid #808080;
border-top: 1px solid #808080; border-top: 1px solid #808080;
font-size: $font-big; // font-size: $font-big;
text-align: center; text-align: center;
#block-quartiers-de-demain-entete{ #block-quartiers-de-demain-entete{
grid-column: 1 /span 11; // grid-column: 1 /span 11;
order: 2;
margin: auto; // order: 2;
// margin: auto;
h2{ h2{
display: none; display: none;
} }
ul {
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
top: calc($header-height / 4 );
padding-left: 1rem;
margin: 0;
li{
a{
text-transform: uppercase;
color: white;
font-size: 0.5rem;
}
&:not(:last-of-type){
::after{
content: "";
display: block;
width: 80px;
border-bottom: solid white 1px;
padding-bottom: 0.3rem;
}
}
}
}
@media(max-width: 660px){ @media(max-width: 660px){
} }
} }
} }
.display-nav-opened{ // .display-nav-opened{
display: grid; // display: grid;
grid-template-columns: repeat(12, 1fr); // grid-template-columns: repeat(12, 1fr);
grid-gap: 10px; // grid-gap: 10px;
} // }
.open-block, .open-block.opened{ // .open-block, .open-block.opened{
cursor:pointer; // cursor:pointer;
span{ // span{
display: block; // display: block;
width: 58px; // width: 58px;
height: 2px; // height: 2px;
position: relative; // position: relative;
background: black; // background: black;
border-radius: 3px; // border-radius: 3px;
z-index: 1; // z-index: 1;
@media(max-width: 660px){ // @media(max-width: 660px){
width: 25px; // width: 25px;
} // }
} // }
} // }
.open-block{ // .open-block{
height: 100%; // height: 100%;
display: grid; // display: grid;
align-items: center; // align-items: center;
margin: auto; // margin: auto;
@media(max-width: 450px){ // @media(max-width: 450px){
height: $header-height-ultrasmall; // height: $header-height-ultrasmall;
} // }
span{ // span{
margin-bottom: 13px; // margin-bottom: 13px;
transform-origin: 4px 0px; // transform-origin: 4px 0px;
@media(max-width: 660px){ // @media(max-width: 660px){
margin-bottom: 5px; // margin-bottom: 5px;
} // }
} // }
} // }
.open-block.opened { // .open-block.opened {
margin: auto; // margin: auto;
span { // span {
transform-origin: center; // transform-origin: center;
margin-bottom: 0; // margin-bottom: 0;
} // }
&>div>span:first-child { // &>div>span:first-child {
transform: translateY(57%) rotate(45deg); // transform: translateY(57%) rotate(45deg);
} // }
&>div>span:nth-child(2) { // &>div>span:nth-child(2) {
transform: rotate(-45deg); // transform: rotate(-45deg);
} // }
&>div>span:nth-child(3) { // &>div>span:nth-child(3) {
display: none; // display: none;
} // }
} // }
} }

View File

@ -24,12 +24,12 @@
</div> </div>
</div> #} </div> #}
</div> </div>
<div class="open-block" > {# <div class="open-block" >
<div> <div>
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>
</div> </div>
</div> </div> #}
{% endif %} {% endif %}