_header.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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: 80%;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: start;
  81. padding-left: 2.5rem;
  82. }
  83. ul{
  84. width: 70%;
  85. display: flex;
  86. flex-direction: column;
  87. li{
  88. margin-bottom: 3rem;
  89. }
  90. }
  91. ul:last-of-type{
  92. a{
  93. text-transform: uppercase;
  94. padding: 1rem;
  95. border: solid black 1px;
  96. margin-bottom: 1rem;
  97. background-color: $white-button;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. #block-reha-config-pages{
  104. grid-column: 10;
  105. .bouton-contact{
  106. padding-right: 4rem;
  107. ::before{
  108. content: url(../images/noun-letter-1064628.svg);
  109. padding-right: 1rem;
  110. }
  111. }
  112. display: flex;
  113. flex-direction: column;
  114. height: fit-content;
  115. .contacts {
  116. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  117. width: 100%;
  118. .contacts-full {
  119. display: none;
  120. background-color: $white-header;
  121. position: absolute;
  122. right:0px;
  123. top: 100%;
  124. width: $width-menu-slidedown;
  125. padding-left: 3.5rem;
  126. padding-top: 1rem;
  127. // width: 30vw;
  128. height: 200vh;
  129. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  130. clip-path: inset(0px -10px -10px -10px);
  131. .titre{
  132. padding-left:3rem ;
  133. ::after{
  134. left: 320px;
  135. }
  136. }
  137. .field__item{
  138. display: flex;
  139. flex-direction: column;
  140. padding-left: 3rem;
  141. }
  142. }
  143. }
  144. }
  145. #block-reha-views-block-current-user-block-block-1{
  146. grid-column: 9;
  147. .bouton-connected{
  148. padding-right: 3rem;
  149. :before{
  150. content: url(../images/noun-contact-2495375.svg);
  151. padding-right: 1rem;
  152. }
  153. }
  154. display: flex;
  155. flex-direction: column;
  156. height: fit-content;
  157. .connected{
  158. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  159. width: 100%;
  160. position: relative;
  161. .connected-full{
  162. display: none;
  163. right:-267px;
  164. top: 36px; // Positionnez-les sous les boutons
  165. position: absolute;
  166. background-color: $white-header;
  167. // width: 30vw;
  168. width: $width-menu-slidedown;
  169. height: 200vh;
  170. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  171. clip-path: inset(0px -10px -10px -10px);
  172. padding: 5% 10% 5% 45%;
  173. ul{
  174. width: 70%;
  175. display: flex;
  176. flex-direction: column;
  177. padding-left: 0;
  178. li{
  179. // margin-bottom: 3rem;
  180. text-transform: uppercase;
  181. padding: 1rem;
  182. border: solid black 1px;
  183. margin-bottom: 1rem;
  184. background-color: $white-button;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. .bouton{
  192. align-self: flex-end;
  193. width: fit-content;
  194. h2{
  195. text-transform: lowercase;
  196. display: inline-flex;
  197. }
  198. }
  199. .titre{
  200. display: inline-flex;
  201. font-weight: 800;
  202. position: relative;
  203. margin-top: 2rem;
  204. ::after{
  205. content: url(../images/noun-cross-1151731.svg);
  206. float: right;
  207. position: relative;
  208. left: 200px;
  209. // bottom: 100px;
  210. cursor: pointer;
  211. }
  212. }
  213. }