_header.scss 4.6 KB

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