_header.scss 9.8 KB

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