_header.scss 14 KB

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