_header.scss 14 KB

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