_header.scss 14 KB

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