_header.scss 16 KB

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