_header.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. header{
  2. display: block;
  3. height: $header-height;
  4. background-color: white;
  5. // position: fixed;
  6. z-index: 99;
  7. 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. // .sticky{
  13. // position: fixed;
  14. // }
  15. div{
  16. display: inline-grid;
  17. align-items: center;
  18. grid-template-columns: repeat(10, 1fr) ;
  19. #block-reha-logoministere{
  20. grid-column: 1;
  21. width: fit-content;
  22. padding-left: 4rem;
  23. height: $header-height;
  24. }
  25. #block-reha-logoreha{
  26. grid-column: 2;
  27. max-height: 90%;
  28. height: $header-height;
  29. .field--name-field-logo{
  30. height: $header-height;
  31. .field__item{
  32. height: $header-height;
  33. img{
  34. height: 150px;
  35. width: fit-content;
  36. }
  37. }
  38. }
  39. }
  40. #block-reha-connexionutilisateur{
  41. grid-column: 9;
  42. .bouton-connexion{
  43. padding-right: 3rem;
  44. :before{
  45. content: url(../images/noun-contact-2495375.svg);
  46. padding-right: 1rem;
  47. }
  48. }
  49. display: flex;
  50. flex-direction: column;
  51. height: fit-content;
  52. .connexion{
  53. float: right;
  54. // display: none; /* Cacher initialement le contenu */
  55. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  56. // transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
  57. width: 100%;
  58. position: relative;
  59. .connexion-full{
  60. display: none;
  61. background-color: $white;
  62. width: 400px;
  63. height: 100vh;
  64. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  65. clip-path: inset(0px -10px -10px -10px);
  66. padding: 5% 10% 5% 5%;
  67. position: relative;
  68. right:-150px;
  69. }
  70. }
  71. // .user-login-form{
  72. // display: none;
  73. // background-color: $white;
  74. // width: 100%;
  75. // height: 100vh;
  76. // box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  77. // clip-path: inset(0px -10px -10px -10px);
  78. // padding: 5% 10% 5% 5%;
  79. // }
  80. // ul{
  81. // display: none;
  82. // // transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
  83. // background-color: $white;
  84. // width: 100%;
  85. // height: 100vh;
  86. // box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  87. // clip-path: inset(0px -10px -10px -10px);
  88. // padding: 5% 10% 5% 5%;
  89. // }
  90. }
  91. #block-reha-config-pages{
  92. grid-column: 10;
  93. .bouton-contact{
  94. padding-right: 4rem;
  95. ::before{
  96. content: url(../images/noun-letter-1064628.svg);
  97. padding-right: 1rem;
  98. }
  99. }
  100. display: flex;
  101. flex-direction: column;
  102. height: fit-content;
  103. .config_pages--contact--full {
  104. float: right;
  105. display: none; /* Cacher initialement le contenu */
  106. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  107. // transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
  108. width: 100%;
  109. }
  110. .field--type-text-long {
  111. transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
  112. background-color: $white;
  113. display: block;
  114. width: 100%;
  115. height: 100vh;
  116. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  117. clip-path: inset(0px -10px -10px -10px);
  118. .field__item{
  119. padding: 5% 10% 5% 5%;
  120. }
  121. }
  122. }
  123. }
  124. .bouton{
  125. align-self: flex-end;
  126. width: fit-content;
  127. h2{
  128. text-transform: lowercase;
  129. display: inline-flex;
  130. }
  131. }
  132. }
  133. // pop in biographie
  134. // .config_pages--contact--full {
  135. // position: fixed;
  136. // z-index: 1;
  137. // top: $header-height;
  138. // right: 0;
  139. // bottom: 0;
  140. // left: 0;
  141. // display: none;
  142. // }
  143. // .config_pages--contact--full.open{
  144. // display: block;
  145. // // .bouton {
  146. // // border: solid !important;
  147. // // background-color: transparent;
  148. // // text-transform: uppercase;
  149. // // align-self: flex-end;
  150. // // margin:auto;
  151. // // margin-bottom: 2rem;
  152. // // }
  153. // }
  154. // .config_pages--contact--full .field--type-text-long{
  155. // position: absolute;
  156. // background: white !important;
  157. // top: 50%;
  158. // left: 50%;
  159. // transform: translateX(-50%) translateY(-50%);
  160. // width: 50%;
  161. // height: content;
  162. // min-height: 50px;
  163. // border: solid;
  164. // color: black;
  165. // .field__item{
  166. // padding: 5% 10% 5% 5%;
  167. // }
  168. // // a.close{
  169. // // position: absolute;
  170. // // right: 5%;
  171. // // top:5%;
  172. // // color: black;
  173. // // font-size: 30px;
  174. // // }
  175. // // a.close:hover{
  176. // // color: black;
  177. // // }
  178. // @media (max-width: 442px) {
  179. // transform: translateX(-50%) translateY(-50%);
  180. // width: 85%;
  181. // height: 80%;
  182. // overflow-y: scroll;
  183. // // a.close {
  184. // // font-size: 0.8rem;
  185. // // position: absolute;
  186. // // right: 2%;
  187. // // top:0.8%;
  188. // // }
  189. // p {
  190. // font-size: 0.8rem;
  191. // margin-top: 0;
  192. // }
  193. // .field__item{
  194. // padding: 5% 5% 5% 5%;
  195. // }
  196. // }
  197. // @media (max-width: 1024px) {
  198. // transform: translateX(-50%) translateY(-50%);
  199. // width: 75%;
  200. // height: 65%;
  201. // overflow-y: scroll;
  202. // a.close {
  203. // font-size: 0.8rem;
  204. // position: absolute;
  205. // right: 2%;
  206. // top:0.8%;
  207. // }
  208. // p {
  209. // font-size: 0.8rem;
  210. // margin-top: 0;
  211. // }
  212. // .field__item{
  213. // padding: 5% 5% 5% 5%;
  214. // }
  215. // }
  216. // }