_header.scss 15 KB

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