_header.scss 15 KB

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