Files
drupal-reha/web/themes/custom/reha/scss/partials/_header.scss
T

443 lines
15 KiB
SCSS

header{
display: block;
height: 120px;
background-color: $white-header;
z-index: 101;
width: 100vw;
max-width: 100vw;
position: -webkit-sticky;
position: sticky;
top: 0;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
@media (max-width:800px) {
width: 800px;
}
.region-header{
display: inline-grid;
align-items: center;
grid-template-columns: repeat(10, 1fr) ;
@media (max-width:891px) {
display: flex;
flex-direction: row;
justify-content: space-between;
}
#block-reha-logoministere{
grid-column: 1;
width: 135px;
min-width: 100px;
padding-left: 80px;
height: 100%;
img{
max-width: 100%;
object-fit: contain;
}
@media (max-width:891px) {
// width: 10%;
padding-left: 5%;
padding-top: 0%;
}
}
#block-reha-logoreha{
grid-column: 2;
height: $header-height;
padding-left: 1rem;
.field--name-field-logo{
height: $header-height;
.field__item{
height: $header-height;
img{
max-height: 92px;
width: auto;
}
}
}
}
#block-reha-navigationprincipale {
grid-column: 3 / span 5 ;
ul{
display: flex;
flex-direction: row;
justify-content: space-evenly;
@media (max-width:1400px) {
flex-direction: column;
}
li{
&.has-active {
text-decoration: underline;
font-weight: 1000;
}
a{
font-weight: 800;
&.is-active{
text-decoration: underline;
font-weight: 1000;
}
&:hover{
text-decoration: underline;
}
}
}
}
ul > li a.active{
text-decoration: underline;
font-weight: 1000;
}
}
#block-reha-connexionutilisateur{
grid-column: 9;
display: flex;
flex-direction: column;
height: fit-content;
@media (max-width:891px) {
// width: 10%;
padding-left: 1rem;
}
.bouton-connexion{
:before{
content: url(../images/noun-contact-2495375.svg);
}
}
//// drop down menu connexion
.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: $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%;
@media (max-width:891px) {
top: 50px;
right: -250px;
width: 500px;
height: fit-content;
}
@media (max-width:500px) {
top: 55px;
right: -90px;
width: 400px;
height: fit-content;
}
.titre{
width: 90%;
position: relative;
::after{
position: relative;
left: 430px;
@media (max-width:500px) {
left: 325px;
}
}
}
#user-login-form{
width: 80%;
display: flex;
flex-direction: column;
align-items: start;
padding-left: 2.5rem;
.form-item-persistent-login{
flex-direction: row-reverse;
#edit-persistent-login{
width: fit-content;
}
label{
flex-grow: 0;
}
}
}
ul{
font-size: 1.2rem;
width: 70%;
display: flex;
flex-direction: column;
margin-top: 0;
margin-bottom: 4rem;
padding-bottom: 4rem;
.create-account-link{
display: none;
}
.request-password-link{
margin-bottom: 4rem;
font-size: 1rem;
&:hover{
text-decoration: $yellow-puca underline;
}
}
li p{
font-style: italic;
font-size: 0.9rem;
padding-top: 1rem;
}
}
ul:first-of-type{
border-bottom: 1px solid black;
}
ul:last-of-type{
a{
text-transform: uppercase;
padding: 1rem;
border: solid black 1px;
margin-bottom: 1rem;
background-color: $white-button;
@media (max-width:891px) {
font-size: 1rem;
}
p{
font-style: italic;
}
}
///// arrêt candidatures phase 1
display: none;
/////////////
}
ul:last-of-type a:hover{
background-color: $yellow-puca;
}
}
}
}
#block-reha-config-pages{
grid-column: 10;
.bouton-contact{
padding-right: 4rem;
padding-left: 1rem;
::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:0%;
top: $header-height;
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);
@media(max-width: 891px){
right: 0px;
top: 100%;
width: 500px;
padding-left: 0;
padding-top: 1rem;
height: fit-content;
}
@media (max-width:500px) {
width: 100%;
width: -moz-available; /* For Mozzila */
width: -webkit-fill-available; /* For Chrome */
width: stretch; /* Unprefixed */
}
.titre{
padding-right: 2rem;
padding-left:3rem ;
@media (max-width:500px) {
padding-left: 1.5rem;
}
::after{
left: 290px;
@media(max-width: 891px){
left: 242px;
}
@media (max-width:500px) {
left: 150px;
}
}
}
}
.field__item{
display: flex;
flex-direction: column;
padding-left: 3rem;
@media (max-width:891px) {
padding-bottom: 2rem;
}
@media (max-width:500px) {
padding-left: 2rem;
padding-bottom: 2rem;
padding-right: 1.5rem;
}
}
}
}
}
#block-reha-views-block-current-user-block-block-1{
grid-column: 9;
width: 400px;
.bouton-connected{
// padding-right: 3rem;
h2{
// width: fit-content;
font-size: 1rem;
color: black;
display: flex;
flex-direction: column;
// display: inline-flex;
flex-wrap: nowrap;
}
: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:-40%;
// top: 36px;
position: absolute;
background-color: $white-header;
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% $header-height 20%;
.titre{
@media (max-width:500px) {
font-size: 1.4rem;
}
::after{
@media (max-width:500px) {
left: 50px;
}
}
}
footer{
font-weight: 400;
font-size: 1rem;
margin-top: 2rem;
border-top: 1px solid black;
padding-top: 1.5rem;
ul{
width: 45%;
display: flex;
flex-direction: column-reverse;
padding-left: 0;
li:first-of-type{
margin-top: 4rem;
border-bottom: 1px solid black ;
}
li{
text-transform: uppercase;
padding: 1rem;
border: solid black 1px;
margin-bottom: 1rem;
background-color: $white-button;
}
li:hover{
background-color: $yellow-puca;
}
///// arrêt candidatures phase 1
// li:last-of-type{
// display: none;
// }
li.addoperation{
display: none;
}
/////////////
}
}
}
}
}
}
.bouton{
align-self: flex-end;
width: fit-content;
@media (max-width:891px) {
font-size: 0.1rem;
color: white;
padding-right: 0 !important;
}
h2{
text-transform: lowercase;
display: inline-flex;
font-size: 0.001rem;
color: white;
@media (max-width:891px) {
font-size: 0rem;
color: white;
padding-right: 0 !important;
}
}
}
.titre{
// display: inline-flex;
font-weight: 800;
font-size: 1.8rem;
// position: relative;
display: flex;
justify-content: space-between;
align-items: center;
&::after{
content: url(../images/noun-cross-1151731.svg);
// float: right;
// position: relative;
// left: 90px;
cursor: pointer;
}
}