_header.scss 8.2 KB

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