_header.scss 13 KB

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