_header.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. *::selection {
  2. background: rgb(0, 255, 0);
  3. }
  4. header{
  5. position: fixed;
  6. width: 100%;
  7. height: 40px;
  8. top: 0;
  9. padding: 0 20px;
  10. display: -webkit-box;
  11. display: -ms-flexbox;
  12. display: flex;
  13. -webkit-box-pack: justify;
  14. -ms-flex-pack: justify;
  15. justify-content: space-between;
  16. background-color: white;
  17. border-bottom: 2px solid rgb(0,0,0);
  18. z-index: 999;
  19. h1{
  20. margin: auto 0;
  21. }
  22. nav{
  23. margin: auto 0;
  24. .burger{
  25. display: none;
  26. }
  27. ul{
  28. display: -webkit-box;
  29. display: -ms-flexbox;
  30. display: flex;
  31. -ms-flex-wrap: wrap;
  32. flex-wrap: wrap;
  33. -webkit-box-pack: end;
  34. -ms-flex-pack: end;
  35. justify-content: flex-end;
  36. li{
  37. height: 40px;
  38. margin-right: 50px;
  39. -webkit-box-align: center;
  40. -ms-flex-align: center;
  41. align-items: center;
  42. display: -webkit-box;
  43. display: -ms-flexbox;
  44. display: flex;
  45. transition: margin-right 1s;
  46. &:last-child{
  47. margin-right: 0px!important;
  48. }
  49. }
  50. &.tags{
  51. visibility: hidden;
  52. position: absolute;
  53. border-left: 2px solid black;
  54. border-bottom: 2px solid black;
  55. background: white;
  56. top: 40px;
  57. right: 0px;
  58. width: auto;
  59. z-index: 999;
  60. a{
  61. display: -webkit-box;
  62. display: -ms-flexbox;
  63. display: flex;
  64. width: auto;
  65. height: 50px;
  66. padding: 0 20px;
  67. -webkit-transition: padding 0.5s;
  68. transition: padding 0.5s;
  69. & > li{
  70. margin: auto;
  71. position: relative;
  72. &::after{
  73. content: " ";
  74. position: absolute;
  75. height: 10px;
  76. margin: auto;
  77. background: rgb(0, 255, 0);
  78. z-index: -1;
  79. width: 0%;
  80. -webkit-transition: all 0s;
  81. transition: all 0s;
  82. }
  83. }
  84. }
  85. }
  86. &.visible, &.active{
  87. visibility: visible;
  88. a{
  89. & > li{
  90. &::after{
  91. background: rgb(0, 255, 0);
  92. width: 0%;
  93. -webkit-transition: all 0.5s;
  94. transition: all 0.5s;
  95. }
  96. }
  97. &:hover{
  98. & > li{
  99. &::after{
  100. background: rgb(0, 255, 0);
  101. width: 100%;
  102. -webkit-transition: all 0.5s;
  103. transition: all 0.5s;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. // fleche
  111. & > ul:nth-child(1) {
  112. & > li:nth-child(1){
  113. display: -webkit-box;
  114. display: -ms-flexbox;
  115. display: flex;
  116. position: relative;
  117. margin-right: 50px;
  118. transition: margin-right 1s;
  119. .cat{
  120. width: 120%;
  121. height: auto;
  122. margin-left: 10px;
  123. cursor: pointer;
  124. img{
  125. vertical-align: middle!important;
  126. -webkit-transition: all 0.5s;
  127. transition: all 0.5s;
  128. }
  129. }
  130. &.act{
  131. img{
  132. -webkit-transform: rotate(180deg);
  133. transform: rotate(180deg);
  134. -webkit-transition: all 0.5s;
  135. transition: all 0.5s;
  136. }
  137. }
  138. a{
  139. width: auto;
  140. text-align: right;
  141. }
  142. }
  143. }
  144. }
  145. }