js header

This commit is contained in:
2023-11-22 13:20:06 +01:00
parent d0b2b2e424
commit 26da70efc2
12 changed files with 384 additions and 43 deletions
@@ -17,6 +17,7 @@
header{
flex: 0 0 100%;
height: 150px;
}
main{
position: relative;
@@ -6,4 +6,5 @@ a{
}
:link{
color: black;
}
}
@@ -7,6 +7,7 @@
border: solid black 1px;
margin-bottom: 1rem;
background-color: white;
}
@@ -4,6 +4,8 @@
$background-home: rgba(153, 147, 174, 0.1);
$white: white;
$yellow-puca: #fdc300;
// $blue-light: rgb(0,158,227);
+10 -2
View File
@@ -8,9 +8,17 @@
.block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f{
display: flex;
justify-content: flex-end; }
justify-content: flex-end;
:hover{
background-color: $yellow-puca;
}
}
.block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0{
display: flex;
justify-content: flex-end; }
justify-content: flex-end;
:hover{
background-color: $yellow-puca;
}
}
}
}
@@ -3,7 +3,7 @@ footer{
// display: flex;
// flex-direction: row;
background-color: white;
background-color: $white;
font-family: "Marianne";
font-weight: 800;
@@ -31,8 +31,8 @@ footer{
#block-reha-operateurduprogramme{
display: flex;
flex-direction: column;
border-left: #fdc300 solid 5px;
border-right: #fdc300 solid 5px;
border-left: $yellow-puca solid 5px;
border-right: $yellow-puca solid 5px;
padding-left: 3rem;
// font-family: 'Marianne';
+171 -15
View File
@@ -1,25 +1,181 @@
header{
display: block;
width: 100%;
background-color: white;
position: fixed;
z-index: 99;
width: 100vw;
header{
display: block;
background-color: white;
position: fixed;
z-index: 99;
width: 100vw;
position: -webkit-sticky;
position: sticky;
top: 0;
// .sticky{
// position: fixed;
// }
// height: 150px;
div{
display:flex;
flex-direction: row;
justify-content: space-between;
position: -webkit-sticky;
position: sticky;
top: 0;
.sticky{
position: fixed;
#block-reha-logoministere{
width: fit-content;
}
div{
display:flex;
flex-direction: row;
#block-reha-logoreha{
max-height: 90%;
img{
// max-height: ;
}
}
#block-reha-connexionutilisateur{
display: flex;
flex-direction: column;
width: 15%;
.user-login-form{
display: none;
}
ul{
display: none;
}
}
#block-reha-config-pages{
width: 15%;
display: flex;
flex-direction: column;
.config_pages--contact--full {
display: none; /* Cacher initialement le contenu */
}
.open{
display: block;
}
.field--type-text-long {
transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
}
}
}
}
// pop in biographie
// .config_pages--contact--full {
// position: fixed;
// z-index: 1;
// top: 0;
// right: 0;
// bottom: 0;
// left: 0;
// display: none;
// }
// .config_pages--contact--full.open{
// display: block;
// // .bouton {
// // border: solid !important;
// // background-color: transparent;
// // text-transform: uppercase;
// // align-self: flex-end;
// // margin:auto;
// // margin-bottom: 2rem;
// // }
// }
// // #modal .mask{
// // background: none !important;
// // opacity: 1;
// // position: absolute;
// // top: 0;
// // right: 0;
// // bottom: 0;
// // left: 0;
// //
// // }
// // #body .grey {
// // opacity: 0.5;
// // }
// .config_pages--contact--full{
// position: absolute;
// background: white !important;
// top: 50%;
// left: 45%;
// // transform: translateX(-50%) translateY(-50%);
// width:fit-content;
// height: fit-content;
// min-height: 50px;
// border: solid;
// color: black;
// // .message{
// // padding: 5% 10% 5% 5%;
// // }
// a.close{
// position: absolute;
// right: 5%;
// top:5%;
// color: black;
// font-size: 30px;
// }
// a.close:hover{
// color: black;
// }
// @media (max-width: 442px) {
// transform: translateX(-50%) translateY(-50%);
// width: 85%;
// height: 80%;
// overflow-y: scroll;
// a.close {
// font-size: 0.8rem;
// position: absolute;
// right: 2%;
// top:0.8%;
// }
// p {
// font-size: 0.8rem;
// margin-top: 0;
// }
// .message{
// padding: 5% 5% 5% 5%;
// }
// }
// @media (max-width: 1024px) {
// transform: translateX(-50%) translateY(-50%);
// width: 75%;
// height: 65%;
// overflow-y: scroll;
// a.close {
// font-size: 0.8rem;
// position: absolute;
// right: 2%;
// top:0.8%;
// }
// p {
// font-size: 0.8rem;
// margin-top: 0;
// }
// .message{
// padding: 5% 5% 5% 5%;
// }
// }
// }
+11 -9
View File
@@ -1,17 +1,19 @@
/*reha*/
/*global*/
@import "global/variables/_colors";
@import "global/variables/_typography.scss";
@import "global/_fonts";
@import "global/_layout";
@import "global/_reset";
@import "global/variables/colors";
@import "global/variables/typography.scss";
@import "global/variables/buttons.scss";
@import "global/fonts";
@import "global/layout";
@import "global/reset";
@import "global/variables/_buttons.scss";
/*partials*/
@import "partials/_header";
@import "partials/_footer";
@import "partials/header";
@import "partials/footer";
@import "pages/_home";
/*pages*/
@import "pages/home";