_header.scss 12 KB

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