_header.scss 3.1 KB

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