Files
drupal-reha/web/themes/custom/reha/scss/partials/_header.scss
T
2023-11-24 14:04:28 +01:00

127 lines
3.6 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;
// }
div{
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;
height: 100vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
padding: 5% 10% 5% 5%;
}
}
}
#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;
.config_pages--contact--full {
height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
width: 100%;
.field--type-text-long {
display: none;
background-color: $white-header;
position: absolute;
right:0px;
top: 100%;
width: 30vw;
height: 100vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
.field__item{
display: flex;
flex-direction: column;
padding: 5% 10% 5% 5%;
}
}
}
}
}
.bouton{
align-self: flex-end;
width: fit-content;
h2{
text-transform: lowercase;
display: inline-flex;
}
}
}