_header.scss 11 KB

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