_header.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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: 4%;
  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. min-width: 80px;
  33. width: 70%;
  34. height: auto;
  35. }
  36. }
  37. #block-logoeql{
  38. display: flex;
  39. height: 100%;
  40. align-items: center;
  41. img{
  42. min-width: 80px;
  43. width: 80%;
  44. height: auto;
  45. }
  46. }
  47. ul{
  48. font-size: 1.2rem;
  49. list-style: none;
  50. display: flex;
  51. flex-direction: row;
  52. width: 100%;
  53. :is(.sous-liste){
  54. display: flex;
  55. flex-direction: column;
  56. padding: 1rem;
  57. }
  58. .ul1.sous-liste{
  59. // padding-right: 2rem;
  60. }
  61. li{
  62. // width: 200px;
  63. a {
  64. color: $black;
  65. }
  66. .is-active{
  67. color:$blue-light;
  68. }
  69. :hover{
  70. color: $blue-light;
  71. }
  72. }
  73. }
  74. ul div:first-child li div{
  75. display: none;
  76. }
  77. // ul div:nth-child(2) li div{
  78. // display: none;
  79. // }
  80. // ul:is(.ul1 .sous-liste .ul2){
  81. // display: none;
  82. // }
  83. :hover ul {
  84. div:first-child li div{
  85. display: block;
  86. background-color: $white;
  87. padding: 1rem;
  88. a{
  89. color: $black;
  90. &:hover{
  91. color: $blue-light;
  92. }
  93. }
  94. }
  95. }
  96. :hover ul {
  97. div:nth-child(2) li div{
  98. display: block;
  99. background-color: $white;
  100. padding: 1rem;
  101. a{
  102. color: $black;
  103. &:hover{
  104. color: $blue-light;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. #block-burger { // menu burger à droite
  111. z-index: 1;
  112. background-color: $blue-light;
  113. font-size: 0.7rem;
  114. color: $white;
  115. display: block;
  116. width: 7rem;
  117. height: 100%;
  118. margin-top: 0;
  119. :hover{
  120. cursor: pointer;
  121. }
  122. h2{
  123. padding-top: 1rem;
  124. }
  125. h2:after{
  126. display: block;
  127. margin:auto;
  128. align-self: center;
  129. height: 70px;
  130. 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 30,13 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-3" d="M 30,25 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-6" d="M 30,37 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/></svg>');
  131. }
  132. #block-burger-menu{
  133. display: block;
  134. margin: 0;
  135. align-self: center;
  136. text-align: center;
  137. // height:7rem;
  138. }
  139. // block menu open fond bleu
  140. .ul1:not(.sous-liste){
  141. width: 300%;
  142. position: relative;
  143. right: 260px;
  144. margin: 0;
  145. padding-top: 2rem;
  146. padding-bottom: 2rem;
  147. z-index: 99;
  148. }
  149. ul {
  150. display: none;
  151. background-color: $blue-light;
  152. line-height: 2rem;
  153. list-style: none;
  154. .ul1 .sous-liste{
  155. a{
  156. opacity: 1;
  157. }
  158. }
  159. a{
  160. opacity: 0.6;
  161. color: $white;
  162. font-weight: 800;
  163. font-size: 1rem;
  164. }
  165. }
  166. &.opened ul {
  167. display: block;
  168. }
  169. }
  170. }