index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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::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. .tab.active {
  54. color: #444;
  55. }
  56. .tab:hover::after,
  57. .tab.active::after {
  58. width: 100%;
  59. }
  60. }
  61. }
  62. .right {
  63. position: absolute;
  64. right: 0;
  65. top: 0;
  66. .button {
  67. font-size: 14px;
  68. padding: 5px 22px;
  69. line-height: 20px;
  70. }
  71. .info {
  72. line-height: 24px;
  73. .assets {
  74. margin-right: 5px;
  75. width: 24px;
  76. height: 24px;
  77. border-radius: 50%;
  78. }
  79. span {}
  80. }
  81. }
  82. }
  83. .ready #header,
  84. .question #header,
  85. .textbook #header,
  86. .main #header,
  87. .course #header {
  88. .body {
  89. width: 1200px;
  90. }
  91. }
  92. .header-user-overlay {
  93. background: #fff;
  94. box-shadow: 0px 4px 14px 0px rgba(189, 199, 215, 0.25);
  95. width: 180px;
  96. .list {
  97. cursor: pointer;
  98. .item {
  99. line-height: 14px;
  100. padding: 20px;
  101. border-bottom: 1px solid #D8D8D8FF;
  102. .assets {
  103. margin-right: 5px;
  104. path {
  105. fill: #303139FF !important;
  106. }
  107. }
  108. }
  109. .item.more-message {
  110. line-height: 16px;
  111. padding: 20px;
  112. path {
  113. fill: #4292F0FF !important;
  114. }
  115. }
  116. .item:last-child {
  117. border-bottom: none;
  118. }
  119. }
  120. }