_header.scss 15 KB

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