Navigator.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @import "~assets/less/variable";
  2. .header {
  3. height: 68px;
  4. background-color: @blue;
  5. box-shadow: @header-box-shadow;
  6. flex-shrink: 0;
  7. z-index: @header-index;
  8. display: flex;
  9. flex-direction: row;
  10. justify-content: space-between;
  11. align-items: center;
  12. &.hide {
  13. display: none;
  14. }
  15. }
  16. .logo {
  17. //width: 359px;
  18. height: 68px;
  19. padding-left: 15px;
  20. display: flex;
  21. flex-direction: column;
  22. justify-content: center;
  23. align-items: center;
  24. a {
  25. line-height: 0;
  26. }
  27. img {
  28. width: 359px;
  29. height: 50px;
  30. }
  31. }
  32. @media (min-width: 768px) {
  33. .logoPc {
  34. display: flex;
  35. }
  36. .logoMobile {
  37. display: none;
  38. }
  39. }
  40. @media (max-width: 768px) {
  41. .logoPc {
  42. display: none;
  43. }
  44. .logoMobile {
  45. display: flex;
  46. img {
  47. margin-left: -142px;
  48. }
  49. }
  50. }
  51. .menus {
  52. //line-height: 64px;
  53. display: flex;
  54. margin-left: 40px;
  55. align-content: center;
  56. li {
  57. font-size: 16px;
  58. font-weight: 400;
  59. text-align: left;
  60. color: #ffffff;
  61. height: 68px;
  62. display: flex;
  63. align-items: center;
  64. a {
  65. width: 100%;
  66. height: 100%;
  67. display: flex;
  68. padding: 0 20px;
  69. align-items: center;
  70. color: #ffffff;
  71. position: relative;
  72. &:after {
  73. content: '';
  74. position: absolute;
  75. bottom: 0;
  76. left: 0;
  77. width: 100%;
  78. height: 3px;
  79. background: #ffc12f;
  80. transform: rotateY(-90deg);
  81. transition: transform .5s;
  82. }
  83. }
  84. &:hover {
  85. background: rgba(0, 0, 0, 0.25);
  86. }
  87. &.active {
  88. a {
  89. background: rgba(0, 0, 0, 0.25);
  90. &:after {
  91. transform: rotateY(0deg);
  92. }
  93. }
  94. }
  95. }
  96. }
  97. .tools {
  98. margin-right: 16px;
  99. display: flex;
  100. flex-direction: row;
  101. li {
  102. width: 50px;
  103. height: 50px;
  104. display: flex;
  105. flex-direction: column;
  106. justify-content: center;
  107. align-items: center;
  108. color: #fff;
  109. i {
  110. font-size: 24px;
  111. cursor: pointer;
  112. }
  113. }
  114. }