_header.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. // display: block;
  6. width: 100%;
  7. position: fixed;
  8. z-index: 99;
  9. }
  10. #header-top {
  11. height: 7rem;
  12. background-color: $white;
  13. // box-shadow: 1px 0px 8px $black;
  14. display: flex;
  15. flex-direction: row;
  16. justify-content: space-between;
  17. color: $black;
  18. top:0%;
  19. .region-header-top-left { // logo + menu déroulant
  20. display:flex;
  21. flex-direction: row;
  22. padding: 1rem;
  23. padding-left: 3rem;
  24. align-items:start;
  25. color: $black;
  26. font-weight: 800;
  27. #block-logogouv{
  28. display: flex;
  29. height: 100%;
  30. align-items: center;
  31. img{
  32. width: 70%;
  33. height: auto;
  34. }
  35. }
  36. #block-logoeql{
  37. display: flex;
  38. height: 100%;
  39. align-items: center;
  40. img{
  41. width: 80%;
  42. height: auto;
  43. }
  44. }
  45. ul{
  46. list-style: none;
  47. display: flex;
  48. flex-direction: row;
  49. width: 100%;
  50. :is(.sous-liste){
  51. display: flex;
  52. flex-direction: column;
  53. padding: 1rem;
  54. }
  55. .ul1.sous-liste{
  56. padding-right: 2rem;
  57. }
  58. li{
  59. width: 200px;
  60. a {
  61. color: $black;
  62. }
  63. .is-active{
  64. color:$blue-light;
  65. }
  66. :hover{
  67. color: $blue-light;
  68. }
  69. }
  70. }
  71. ul div:first-child li div{
  72. display: none;
  73. }
  74. ul div:nth-child(2) li div{
  75. display: none;
  76. }
  77. // ul:is(.ul1 .sous-liste .ul2){
  78. // display: none;
  79. // }
  80. :hover ul {
  81. div:first-child li div{
  82. display: block;
  83. background-color: $white;
  84. padding: 1rem;
  85. a{
  86. color: $black;
  87. &:hover{
  88. color: $blue-light;
  89. }
  90. }
  91. }
  92. }
  93. :hover ul {
  94. div:nth-child(2) li div{
  95. display: block;
  96. background-color: $white;
  97. padding: 1rem;
  98. a{
  99. color: $black;
  100. &:hover{
  101. color: $blue-light;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. #block-burger { // menu burger à droite
  108. z-index: 1;
  109. background-color: $blue-light;
  110. font-size: 0.7rem;
  111. color: $white;
  112. display: block;
  113. width: 7rem;
  114. height: 100%;
  115. margin-top: 0;
  116. :hover{
  117. cursor: pointer;
  118. }
  119. h2{
  120. padding-top: 1rem;
  121. }
  122. h2:after{
  123. display: block;
  124. margin:auto;
  125. // height: 60px;
  126. content:url('data:image/svg+xml,<svg width="100" height="70" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 20,10 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-3" d="M 20,25 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-6" d="M 20,40 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/></svg>');
  127. }
  128. #block-burger-menu{
  129. display: block;
  130. margin: 0;
  131. align-self: center;
  132. text-align: center;
  133. // height:7rem;
  134. }
  135. // block menu open fond bleu
  136. .ul1:not(.sous-liste){
  137. width: 300%;
  138. position: relative;
  139. right: 260px;
  140. margin: 0;
  141. padding-top: 2rem;
  142. padding-bottom: 2rem;
  143. z-index: 99;
  144. }
  145. ul {
  146. display: none;
  147. background-color: $blue-light;
  148. line-height: 2rem;
  149. list-style: none;
  150. .ul1 .sous-liste{
  151. a{
  152. opacity: 1;
  153. }
  154. }
  155. a{
  156. opacity: 0.6;
  157. color: $white;
  158. font-weight: 800;
  159. font-size: 1rem;
  160. }
  161. }
  162. &.opened ul {
  163. display: block;
  164. }
  165. }
  166. }