_header.scss 8.2 KB

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