_header.scss 9.7 KB

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