_header.scss 9.0 KB

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