_header.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. header{
  2. display: block;
  3. height: $header-height;
  4. background-color: $white-header;
  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. .region-header{
  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. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  54. width: 100%;
  55. position: relative;
  56. .connexion-full{
  57. display: none;
  58. right:-235px;
  59. top: 36px; // Positionnez-les sous les boutons
  60. position: absolute;
  61. background-color: $white-header;
  62. // width: 30vw;
  63. width: $width-menu-slidedown;
  64. height: 100vh;
  65. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  66. clip-path: inset(0px -10px -10px -10px);
  67. padding: 5% 10% 5% 5%;
  68. }
  69. }
  70. }
  71. #block-reha-config-pages{
  72. grid-column: 10;
  73. .bouton-contact{
  74. padding-right: 4rem;
  75. ::before{
  76. content: url(../images/noun-letter-1064628.svg);
  77. padding-right: 1rem;
  78. }
  79. }
  80. display: flex;
  81. flex-direction: column;
  82. height: fit-content;
  83. .config_pages--contact--full {
  84. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  85. width: 100%;
  86. .field--type-text-long {
  87. display: none;
  88. background-color: $white-header;
  89. position: absolute;
  90. right:0px;
  91. top: 100%;
  92. width: $width-menu-slidedown;
  93. // width: 30vw;
  94. height: 100vh;
  95. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  96. clip-path: inset(0px -10px -10px -10px);
  97. .field__item{
  98. display: flex;
  99. flex-direction: column;
  100. padding: 5% 10% 5% 5%;
  101. }
  102. }
  103. }
  104. }
  105. #block-reha-views-block-current-user-block-block-1{
  106. grid-column: 9;
  107. .bouton-connected{
  108. padding-right: 3rem;
  109. :before{
  110. content: url(../images/noun-contact-2495375.svg);
  111. padding-right: 1rem;
  112. }
  113. }
  114. display: flex;
  115. flex-direction: column;
  116. height: fit-content;
  117. .connected{
  118. height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
  119. width: 100%;
  120. position: relative;
  121. .connected-full{
  122. display: none;
  123. right:-267px;
  124. top: 36px; // Positionnez-les sous les boutons
  125. position: absolute;
  126. background-color: $white-header;
  127. // width: 30vw;
  128. width: $width-menu-slidedown;
  129. height: 100vh;
  130. box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  131. clip-path: inset(0px -10px -10px -10px);
  132. padding: 5% 10% 5% 5%;
  133. }
  134. }
  135. }
  136. }
  137. .bouton{
  138. align-self: flex-end;
  139. width: fit-content;
  140. h2{
  141. text-transform: lowercase;
  142. display: inline-flex;
  143. }
  144. }
  145. }