index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @import '../../app.less';
  2. #page {
  3. padding-top: 44px;
  4. }
  5. #header {
  6. width: 100%;
  7. box-shadow: 0 4px 14px 0 rgba(189, 199, 215, 0.25);
  8. background-color: #ffffff;
  9. text-align: center;
  10. position: fixed;
  11. top: 0;
  12. z-index: 1;
  13. .body {
  14. margin: 0 auto;
  15. width: @content_width;
  16. height: 44px;
  17. line-height: 44px;
  18. position: relative;
  19. }
  20. .left {
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. width: 60px;
  25. }
  26. .center {
  27. text-align: center;
  28. .tabs {
  29. .tab {
  30. display: inline-block;
  31. margin: 0 8px;
  32. width: 96px;
  33. position: relative;
  34. text-align: center;
  35. font-size: 18px;
  36. color: @base_color;
  37. }
  38. .tab::after {
  39. content: '';
  40. width: 0;
  41. height: 4px;
  42. background: @theme_color;
  43. transform: translateX(-50%);
  44. transition: all 0.25s;
  45. position: absolute;
  46. bottom: 0;
  47. left: 50%;
  48. }
  49. .tab:hover,
  50. .tab.active {
  51. color: #444;
  52. }
  53. .tab:hover::after,
  54. .tab.active::after {
  55. width: 100%;
  56. }
  57. }
  58. }
  59. .right {
  60. position: absolute;
  61. right: 0;
  62. top: 0;
  63. .button {
  64. font-size: 14px;
  65. padding: 5px 22px;
  66. line-height: 20px;
  67. }
  68. .info {
  69. line-height: 24px;
  70. .assets {
  71. margin-right: 5px;
  72. width: 24px;
  73. height: 24px;
  74. border-radius: 50%;
  75. }
  76. span {}
  77. }
  78. }
  79. }
  80. .main #header {
  81. .body {
  82. width: 1200px;
  83. }
  84. }