PageHeader.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .header-wrap {
  2. height: 80px;
  3. display: flex;
  4. align-items: center;
  5. justify-content: space-between;
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. right: 0;
  10. z-index: 999;
  11. padding: 0 40px;
  12. }
  13. .logo-wrap {
  14. width: 120px;
  15. height: 40px;
  16. display: block;
  17. background: url(../../assets/logo_words.png) no-repeat center;
  18. background-size: 100% 100%;
  19. }
  20. .header-nav {
  21. display: flex;
  22. text-align: center;
  23. & > li {
  24. width: 80px;
  25. height: 24px;
  26. line-height: 24px;
  27. color: rgba(255, 255, 255, .5);
  28. font-size: 12px;
  29. cursor: pointer;
  30. border-right: 1px solid rgba(255, 255, 255, .5);
  31. transition: all .3s ease 0s;
  32. position: relative;
  33. }
  34. & > li:last-child {
  35. border-right: 0;
  36. }
  37. & > li:hover {
  38. color: #fff;
  39. transition: all .3s ease 0s;
  40. }
  41. .qrcode-wrap {
  42. display: none;
  43. position: absolute;
  44. top: 100%;
  45. left: 50%;
  46. transform: translate(-50%, 0);
  47. padding-top: 20px;
  48. }
  49. .qrcode-img-wrap {
  50. background: #fff;
  51. border-radius: 10px;
  52. padding: 10px;
  53. }
  54. .qrcode-wrap .qrcode-img {
  55. width: 106px;
  56. height: 106px;
  57. display: block;
  58. margin: 0;
  59. }
  60. & > .qrcode-li:hover {
  61. // color: rgba(255,255,255,1);
  62. transition: all .3s ease 0s;
  63. .qrcode-wrap {
  64. display: block;
  65. }
  66. }
  67. li.nav-active {
  68. color: #fff;
  69. &:after {
  70. content: '';
  71. position: absolute;
  72. left: 50%;
  73. bottom: -1px;
  74. transform: translate(-50%, 0);
  75. height: 2px;
  76. width: 12px;
  77. background: #FF4D79;
  78. border-radius: 1px;
  79. }
  80. }
  81. }
  82. .header-white {
  83. box-shadow: 0px 4px 10px rgba(0,0,0,0.04);
  84. .logo-wrap {
  85. background: url(../../assets/logo_words_02.png) no-repeat center;
  86. background-size: 100% 100%;
  87. }
  88. .header-nav {
  89. & > li {
  90. color: rgba(0, 0, 0, .5);
  91. border-right: 1px solid rgba(0,0,0,0.25);
  92. }
  93. & > li:last-child {
  94. border-right: 0;
  95. }
  96. & > li:hover {
  97. color: #000000;
  98. }
  99. }
  100. li.nav-active {
  101. color: #000000;
  102. }
  103. .qrcode-img-wrap {
  104. box-shadow: 0px 0px 4px rgba(0,0,0,0.04);
  105. border: 1px solid rgba(0,0,0, 0.1);
  106. }
  107. }