_header.scss 12 KB

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