index.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. .assets {
  25. width: 131px;
  26. height: 24px;
  27. }
  28. }
  29. .center {
  30. text-align: center;
  31. .tabs {
  32. .tab {
  33. display: inline-block;
  34. margin: 0 8px;
  35. width: 96px;
  36. position: relative;
  37. text-align: center;
  38. font-size: 18px;
  39. color: @base_color;
  40. }
  41. .tab.active::after {
  42. content: '';
  43. width: 0;
  44. height: 4px;
  45. background: @theme_color;
  46. transform: translateX(-50%);
  47. transition: all 0.25s;
  48. position: absolute;
  49. bottom: 0;
  50. left: 50%;
  51. }
  52. .tab:hover {
  53. color: @theme_color;
  54. }
  55. .tab.active {
  56. color: #444;
  57. }
  58. .tab.active::after {
  59. width: 100%;
  60. }
  61. }
  62. }
  63. .right {
  64. position: absolute;
  65. right: 0;
  66. top: 0;
  67. .button {
  68. font-size: 14px;
  69. padding: 5px 22px;
  70. line-height: 20px;
  71. }
  72. .info {
  73. line-height: 24px;
  74. .assets {
  75. margin-right: 5px;
  76. width: 24px;
  77. height: 24px;
  78. border-radius: 50%;
  79. }
  80. span {}
  81. }
  82. }
  83. }
  84. .ready #header,
  85. .question #header,
  86. .textbook #header,
  87. .main #header,
  88. .course #header {
  89. .body {
  90. width: 1200px;
  91. }
  92. }
  93. .header-user-overlay {
  94. background: #fff;
  95. box-shadow: 0px 4px 14px 0px rgba(189, 199, 215, 0.25);
  96. width: 180px;
  97. .list {
  98. cursor: pointer;
  99. .item {
  100. line-height: 14px;
  101. padding: 20px;
  102. border-bottom: 1px solid #D8D8D8FF;
  103. .assets {
  104. margin-right: 5px;
  105. path {
  106. fill: #303139FF !important;
  107. }
  108. }
  109. }
  110. .item.more-message {
  111. line-height: 16px;
  112. padding: 20px;
  113. path {
  114. fill: #4292F0FF !important;
  115. }
  116. }
  117. .item:last-child {
  118. border-bottom: none;
  119. }
  120. }
  121. }