Files
drupal-reha/web/themes/custom/reha/scss/partials/_header.scss
T
2023-11-27 16:06:28 +01:00

233 lines
7.2 KiB
SCSS

header{
display: block;
height: $header-height;
background-color: $white-header;
// position: fixed;
z-index: 99;
width: 100vw;
position: -webkit-sticky;
position: sticky;
top: 0;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
// .sticky{
// position: fixed;
// }
.region-header{
display: inline-grid;
align-items: center;
grid-template-columns: repeat(10, 1fr) ;
#block-reha-logoministere{
grid-column: 1;
width: fit-content;
padding-left: 4rem;
height: $header-height;
}
#block-reha-logoreha{
grid-column: 2;
max-height: 90%;
height: $header-height;
.field--name-field-logo{
height: $header-height;
.field__item{
height: $header-height;
img{
height: 150px;
width: fit-content;
}
}
}
}
#block-reha-connexionutilisateur{
grid-column: 9;
.bouton-connexion{
padding-right: 3rem;
:before{
content: url(../images/noun-contact-2495375.svg);
padding-right: 1rem;
}
}
display: flex;
flex-direction: column;
height: fit-content;
.connexion{
height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
width: 100%;
position: relative;
.connexion-full{
display: none;
right:-235px;
top: 36px; // Positionnez-les sous les boutons
position: absolute;
background-color: $white-header;
// width: 30vw;
width: $width-menu-slidedown;
height: 200vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
padding: 5% 10% 5% 5%;
.titre{
width: 100%;
position: relative;
::after{
position: relative;
left: 430px;
}
}
#user-login-form{
width: 80%;
display: flex;
flex-direction: column;
align-items: start;
padding-left: 2.5rem;
}
ul{
width: 70%;
display: flex;
flex-direction: column;
li{
margin-bottom: 3rem;
}
}
ul:last-of-type{
a{
text-transform: uppercase;
padding: 1rem;
border: solid black 1px;
margin-bottom: 1rem;
background-color: $white-button;
}
}
}
}
}
#block-reha-config-pages{
grid-column: 10;
.bouton-contact{
padding-right: 4rem;
::before{
content: url(../images/noun-letter-1064628.svg);
padding-right: 1rem;
}
}
display: flex;
flex-direction: column;
height: fit-content;
.contacts {
height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
width: 100%;
.contacts-full {
display: none;
background-color: $white-header;
position: absolute;
right:0px;
top: 100%;
width: $width-menu-slidedown;
padding-left: 3.5rem;
padding-top: 1rem;
// width: 30vw;
height: 200vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
.titre{
padding-left:3rem ;
::after{
left: 320px;
}
}
.field__item{
display: flex;
flex-direction: column;
padding-left: 3rem;
}
}
}
}
#block-reha-views-block-current-user-block-block-1{
grid-column: 9;
.bouton-connected{
padding-right: 3rem;
:before{
content: url(../images/noun-contact-2495375.svg);
padding-right: 1rem;
}
}
display: flex;
flex-direction: column;
height: fit-content;
.connected{
height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
width: 100%;
position: relative;
.connected-full{
display: none;
right:-267px;
top: 36px; // Positionnez-les sous les boutons
position: absolute;
background-color: $white-header;
// width: 30vw;
width: $width-menu-slidedown;
height: 200vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
padding: 5% 10% 5% 45%;
ul{
width: 70%;
display: flex;
flex-direction: column;
padding-left: 0;
li{
// margin-bottom: 3rem;
text-transform: uppercase;
padding: 1rem;
border: solid black 1px;
margin-bottom: 1rem;
background-color: $white-button;
}
}
}
}
}
}
.bouton{
align-self: flex-end;
width: fit-content;
h2{
text-transform: lowercase;
display: inline-flex;
}
}
.titre{
display: inline-flex;
font-weight: 800;
position: relative;
margin-top: 2rem;
::after{
content: url(../images/noun-cross-1151731.svg);
float: right;
position: relative;
left: 200px;
// bottom: 100px;
cursor: pointer;
}
}
}