_header.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. a {
  60. color: $black;
  61. }
  62. .is-active{
  63. color:$blue-light;
  64. }
  65. :hover{
  66. color: $blue-light;
  67. }
  68. }
  69. }
  70. ul div:first-child li div{
  71. display: none;
  72. }
  73. ul div:nth-child(2) li div{
  74. display: none;
  75. }
  76. // ul:is(.ul1 .sous-liste .ul2){
  77. // display: none;
  78. // }
  79. :hover ul div:first-child{
  80. li div{
  81. display: block;
  82. background-color: $white;
  83. padding: 1rem;
  84. a{
  85. color: $black;
  86. &:hover{
  87. color: $blue-light;
  88. }
  89. }
  90. }
  91. }
  92. :hover ul div:nth-child(2){
  93. li div{
  94. display: block;
  95. background-color: $white;
  96. padding: 1rem;
  97. a{
  98. color: $black;
  99. &:hover{
  100. color: $blue-light;
  101. }
  102. }
  103. }
  104. }
  105. }
  106. #block-burger { // menu burger à droite
  107. z-index: 1;
  108. background-color: $blue-light;
  109. font-size: 0.7rem;
  110. color: $white;
  111. display: block;
  112. width: 7rem;
  113. height: 100%;
  114. margin-top: 0;
  115. :hover{
  116. cursor: pointer;
  117. }
  118. h2{
  119. padding-top: 1rem;
  120. }
  121. h2:after{
  122. display: block;
  123. margin:auto;
  124. // height: 60px;
  125. 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>');
  126. }
  127. #block-burger-menu{
  128. display: block;
  129. margin: 0;
  130. align-self: center;
  131. text-align: center;
  132. // height:7rem;
  133. }
  134. // block menu open fond bleu
  135. .ul1:not(.sous-liste){
  136. width: 300%;
  137. position: relative;
  138. right: 260px;
  139. margin: 0;
  140. padding-top: 2rem;
  141. padding-bottom: 2rem;
  142. z-index: 99;
  143. }
  144. ul {
  145. display: none;
  146. background-color: $blue-light;
  147. line-height: 2rem;
  148. list-style: none;
  149. .ul1 .sous-liste{
  150. a{
  151. opacity: 1;
  152. }
  153. }
  154. a{
  155. opacity: 0.6;
  156. color: $white;
  157. font-weight: 800;
  158. font-size: 1rem;
  159. }
  160. }
  161. &.opened ul {
  162. display: block;
  163. }
  164. }
  165. }