_header.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. header{
  2. display: block;
  3. height: $header-height;
  4. background-color: $white-header;
  5. // position: fixed;
  6. z-index: 99;
  7. width: 100vw;
  8. position: -webkit-sticky;
  9. position: sticky;
  10. top: 0;
  11. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  12. // .sticky{
  13. // position: fixed;
  14. // }
  15. .region-header{
  16. display: inline-grid;
  17. align-items: center;
  18. grid-template-columns: repeat(10, 1fr) ;
  19. #block-reha-logoministere{
  20. grid-column: 1;
  21. width: fit-content;
  22. padding-left: 4rem;
  23. height: $header-height;
  24. }
  25. #block-reha-logoreha{
  26. grid-column: 2;
  27. max-height: 90%;
  28. height: $header-height;
  29. .field--name-field-logo{
  30. height: $header-height;
  31. .field__item{
  32. height: $header-height;
  33. img{
  34. height: 150px;
  35. width: fit-content;
  36. }
  37. }
  38. }
  39. }
  40. #block-reha-connexionutilisateur{
  41. grid-column: 9;
  42. .bouton-connexion{
  43. padding-right: 3rem;
  44. :before{
  45. content: url(../images/noun-contact-2495375.svg);
  46. padding-right: 1rem;
  47. }
  48. }
  49. display: flex;
  50. flex-direction: column;
  51. height: fit-content;
  52. .connexion{
  53. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  54. width: 100%;
  55. position: relative;
  56. .connexion-full{
  57. display: none;
  58. right:-235px;
  59. top: 36px; // Positionnez-les sous les boutons
  60. position: absolute;
  61. background-color: $white-header;
  62. // width: 30vw;
  63. width: $width-menu-slidedown;
  64. height: 200vh;
  65. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  66. clip-path: inset(0px -10px -10px -10px);
  67. padding: 5% 10% 5% 5%;
  68. .titre{
  69. width: 100%;
  70. position: relative;
  71. ::after{
  72. position: relative;
  73. left: 430px;
  74. }
  75. }
  76. #user-login-form{
  77. width: 70%;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: end;
  81. }
  82. ul{
  83. width: 70%;
  84. display: flex;
  85. flex-direction: column;
  86. li{
  87. margin-bottom: 3rem;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. #block-reha-config-pages{
  94. grid-column: 10;
  95. .bouton-contact{
  96. padding-right: 4rem;
  97. ::before{
  98. content: url(../images/noun-letter-1064628.svg);
  99. padding-right: 1rem;
  100. }
  101. }
  102. display: flex;
  103. flex-direction: column;
  104. height: fit-content;
  105. .contacts {
  106. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  107. width: 100%;
  108. .contacts-full {
  109. display: none;
  110. background-color: $white-header;
  111. position: absolute;
  112. right:0px;
  113. top: 100%;
  114. width: $width-menu-slidedown;
  115. padding-left: 3.5rem;
  116. padding-top: 1rem;
  117. // width: 30vw;
  118. height: 200vh;
  119. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  120. clip-path: inset(0px -10px -10px -10px);
  121. .titre{
  122. padding-left:3rem ;
  123. ::after{
  124. left: 320px;
  125. }
  126. }
  127. .field__item{
  128. display: flex;
  129. flex-direction: column;
  130. padding-left: 3rem;
  131. }
  132. }
  133. }
  134. }
  135. #block-reha-views-block-current-user-block-block-1{
  136. grid-column: 9;
  137. .bouton-connected{
  138. padding-right: 3rem;
  139. :before{
  140. content: url(../images/noun-contact-2495375.svg);
  141. padding-right: 1rem;
  142. }
  143. }
  144. display: flex;
  145. flex-direction: column;
  146. height: fit-content;
  147. .connected{
  148. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  149. width: 100%;
  150. position: relative;
  151. .connected-full{
  152. display: none;
  153. right:-267px;
  154. top: 36px; // Positionnez-les sous les boutons
  155. position: absolute;
  156. background-color: $white-header;
  157. // width: 30vw;
  158. width: $width-menu-slidedown;
  159. height: 200vh;
  160. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  161. clip-path: inset(0px -10px -10px -10px);
  162. padding: 5% 10% 5% 45%;
  163. }
  164. }
  165. }
  166. }
  167. .bouton{
  168. align-self: flex-end;
  169. width: fit-content;
  170. h2{
  171. text-transform: lowercase;
  172. display: inline-flex;
  173. }
  174. }
  175. .titre{
  176. display: inline-flex;
  177. font-weight: 800;
  178. position: relative;
  179. margin-top: 2rem;
  180. ::after{
  181. content: url(../images/noun-cross-1151731.svg);
  182. float: right;
  183. position: relative;
  184. left: 200px;
  185. // bottom: 100px;
  186. cursor: pointer;
  187. }
  188. }
  189. }