_header.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. .form-item-persistent-login{
  80. flex-direction: row-reverse;
  81. #edit-persistent-login{
  82. width: fit-content;
  83. }
  84. label{
  85. flex-grow: 0;
  86. }
  87. }
  88. }
  89. ul{
  90. font-size: 1.2rem;
  91. width: 70%;
  92. display: flex;
  93. flex-direction: column;
  94. margin-top: 0;
  95. margin-bottom: 4rem;
  96. padding-bottom: 4rem;
  97. .create-account-link{
  98. display: none;
  99. }
  100. .request-password-link{
  101. margin-bottom: 4rem;
  102. font-size: 1rem;
  103. }
  104. .request-password-link:hover{
  105. text-decoration: $yellow-puca underline;
  106. }
  107. li p{
  108. font-style: italic;
  109. font-size: 0.9rem;
  110. padding-top: 1rem;
  111. }
  112. }
  113. ul:first-of-type{
  114. border-bottom: 1px solid black;
  115. }
  116. ul:last-of-type{
  117. a{
  118. text-transform: uppercase;
  119. padding: 1rem;
  120. border: solid black 1px;
  121. margin-bottom: 1rem;
  122. background-color: $white-button;
  123. p{
  124. font-style: italic;
  125. }
  126. }
  127. }
  128. ul:last-of-type a:hover{
  129. background-color: $yellow-puca;
  130. }
  131. }
  132. }
  133. }
  134. #block-reha-config-pages{
  135. grid-column: 10;
  136. .bouton-contact{
  137. padding-right: 4rem;
  138. ::before{
  139. content: url(../images/noun-letter-1064628.svg);
  140. padding-right: 1rem;
  141. }
  142. }
  143. display: flex;
  144. flex-direction: column;
  145. height: fit-content;
  146. .contacts {
  147. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  148. width: 100%;
  149. .contacts-full {
  150. display: none;
  151. background-color: $white-header;
  152. position: absolute;
  153. right:0px;
  154. top: 100%;
  155. width: $width-menu-slidedown;
  156. padding-left: 3.5rem;
  157. padding-top: 1rem;
  158. // width: 30vw;
  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. .titre{
  163. padding-left:3rem ;
  164. ::after{
  165. left: 320px;
  166. }
  167. }
  168. .field__item{
  169. display: flex;
  170. flex-direction: column;
  171. padding-left: 3rem;
  172. }
  173. }
  174. }
  175. }
  176. #block-reha-views-block-current-user-block-block-1{
  177. grid-column: 9;
  178. .bouton-connected{
  179. padding-right: 3rem;
  180. :before{
  181. content: url(../images/noun-contact-2495375.svg);
  182. padding-right: 1rem;
  183. }
  184. }
  185. display: flex;
  186. flex-direction: column;
  187. height: fit-content;
  188. .connected{
  189. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  190. width: 100%;
  191. position: relative;
  192. .connected-full{
  193. display: none;
  194. right:-267px;
  195. top: 36px; // Positionnez-les sous les boutons
  196. position: absolute;
  197. background-color: $white-header;
  198. width: $width-menu-slidedown;
  199. height: 200vh;
  200. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  201. clip-path: inset(0px -10px -10px -10px);
  202. padding: 5% 10% 5% 45%;
  203. footer{
  204. font-weight: 400;
  205. font-size: 1rem;
  206. margin-top: 2rem;
  207. border-top: 1px solid black;
  208. padding-top: 1.5rem;
  209. ul{
  210. width: 45%;
  211. display: flex;
  212. flex-direction: column-reverse;
  213. padding-left: 0;
  214. li:first-of-type{
  215. margin-top: 4rem;
  216. border-bottom: 1px solid black ;
  217. }
  218. li{
  219. text-transform: uppercase;
  220. padding: 1rem;
  221. border: solid black 1px;
  222. margin-bottom: 1rem;
  223. background-color: $white-button;
  224. }
  225. li:hover{
  226. background-color: $yellow-puca;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. }
  234. .bouton{
  235. align-self: flex-end;
  236. width: fit-content;
  237. h2{
  238. text-transform: lowercase;
  239. display: inline-flex;
  240. }
  241. }
  242. .titre{
  243. display: inline-flex;
  244. font-weight: 800;
  245. font-size: 1.8rem;
  246. position: relative;
  247. ::after{
  248. content: url(../images/noun-cross-1151731.svg);
  249. float: right;
  250. position: relative;
  251. left: 90px;
  252. cursor: pointer;
  253. }
  254. }
  255. }