_header.scss 15 KB

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