index.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. }
  69. }
  70. .main #header {
  71. .body {
  72. width: 1200px;
  73. }
  74. }