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

View File

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

View File

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

View File

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

View File

@ -1,16 +1,18 @@
header{
display: grid;
grid-template-columns: repeat(12, 1fr);
// grid-gap: 10px;
grid-template-rows: repeat(3, 1fr);
// display: grid;
// grid-template-columns: 2.5fr 1fr;
// // grid-gap: 10px;
// grid-template-rows: repeat(3, 1fr);
display: flex;
flex-direction: row;
height: $header-height;
background-color: $white-header;
z-index: 99;
width: 38vw;
max-width: 100vw;
// position: fixed;
position: fixed;
top: 0;
border: 1px solid #808080;
// border: 1px solid #808080;
// @media (max-width:810px) {
// // width: 800px;
// height: $header-height-pad;
@ -27,11 +29,12 @@ header{
}
.header_left_container{
grid-column: 1 /span 11;
grid-row: 1 /span 3;
// grid-column: 1 ;
// grid-row: 1 /span 3;
flex: 0 0 60%;
display: flex;
flex-direction: row;
border-right: 1px solid #808080;
border-bottom: 1px solid #808080;
padding-left: 2%;
padding-right: 2%;
@media(max-width: 660px){
@ -61,7 +64,8 @@ header{
img{
width: auto;
margin: auto;
height: $header-height;
height: calc($header-height - 5rem);
padding: 2rem;
@media(max-width: 891px){
height: $header-height-pad;
}
@ -74,6 +78,7 @@ header{
}
}
.header_right_container{
display: none;
margin: auto;
@media(max-width: 660px){
padding-right: 0;
@ -111,88 +116,119 @@ header{
}
}
}
.header_nav_container{
display: none;
grid-row: 3;
grid-column: 1 /span 12;
// display: none;
// grid-row: 3;
// grid-column: 1 /span 2;
// position: absolute;
flex: 0 0 30%;
top: 100%;
width: 100%;
background: $bleu_fond_header;
background: $blue_QDD;
border-bottom: 1px solid #808080;
border-top: 1px solid #808080;
font-size: $font-big;
// font-size: $font-big;
text-align: center;
#block-quartiers-de-demain-entete{
grid-column: 1 /span 11;
order: 2;
margin: auto;
// grid-column: 1 /span 11;
// order: 2;
// margin: auto;
h2{
display: none;
}
@media(max-width: 660px){
ul {
}
}
}
.display-nav-opened{
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-gap: 10px;
}
.open-block, .open-block.opened{
cursor:pointer;
span{
display: block;
width: 58px;
height: 2px;
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
background: black;
border-radius: 3px;
z-index: 1;
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){
width: 25px;
}
}
}
.open-block{
height: 100%;
display: grid;
align-items: center;
margin: auto;
@media(max-width: 450px){
height: $header-height-ultrasmall;
}
span{
margin-bottom: 13px;
transform-origin: 4px 0px;
@media(max-width: 660px){
margin-bottom: 5px;
}
}
}
.open-block.opened {
margin: auto;
span {
transform-origin: center;
margin-bottom: 0;
}
&>div>span:first-child {
transform: translateY(57%) rotate(45deg);
}
&>div>span:nth-child(2) {
transform: rotate(-45deg);
}
&>div>span:nth-child(3) {
display: none;
}
}
// .display-nav-opened{
// display: grid;
// grid-template-columns: repeat(12, 1fr);
// grid-gap: 10px;
// }
// .open-block, .open-block.opened{
// cursor:pointer;
// span{
// display: block;
// width: 58px;
// height: 2px;
// position: relative;
// background: black;
// border-radius: 3px;
// z-index: 1;
// @media(max-width: 660px){
// width: 25px;
// }
// }
// }
// .open-block{
// height: 100%;
// display: grid;
// align-items: center;
// margin: auto;
// @media(max-width: 450px){
// height: $header-height-ultrasmall;
// }
// span{
// margin-bottom: 13px;
// transform-origin: 4px 0px;
// @media(max-width: 660px){
// margin-bottom: 5px;
// }
// }
// }
// .open-block.opened {
// margin: auto;
// span {
// transform-origin: center;
// margin-bottom: 0;
// }
// &>div>span:first-child {
// transform: translateY(57%) rotate(45deg);
// }
// &>div>span:nth-child(2) {
// transform: rotate(-45deg);
// }
// &>div>span:nth-child(3) {
// display: none;
// }
// }
}

View File

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