global.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. // Reset default browser styles
  2. * {
  3. box-sizing: border-box;
  4. }
  5. #root {
  6. min-height: 100vh;
  7. }
  8. html,
  9. body,
  10. ul,
  11. ol,
  12. li,
  13. dl,
  14. dt,
  15. dd,
  16. h1,
  17. h2,
  18. h3,
  19. h4,
  20. h5,
  21. h6,
  22. pre,
  23. code,
  24. form,
  25. fieldset,
  26. legend,
  27. input,
  28. textarea,
  29. p,
  30. blockquote,
  31. th,
  32. td,
  33. hr,
  34. button {
  35. margin: 0;
  36. padding: 0;
  37. font-size: 100%;
  38. font-family: inherit;
  39. vertical-align: baseline;
  40. border: 0 none;
  41. color: inherit;
  42. background: transparent;
  43. box-sizing: border-box;
  44. -webkit-font-smoothing: antialiased;
  45. -moz-osx-font-smoothing: grayscale;
  46. }
  47. body {
  48. color: #333;
  49. .ant-collapse-header {
  50. flex-direction: row-reverse;
  51. }
  52. .ant-collapse-item {
  53. background-color: white !important;
  54. border-radius: 6px !important;
  55. border-bottom: none !important;
  56. margin-bottom: 10px;
  57. }
  58. }
  59. // Remove list styles on ul, ol
  60. ul,
  61. ol {
  62. list-style: none;
  63. }
  64. // Remove link styles
  65. a {
  66. text-decoration: none;
  67. }
  68. // Remove table border
  69. table {
  70. border-collapse: collapse;
  71. border-spacing: 0;
  72. }
  73. // Remove input styling for IE
  74. input[type='text'],
  75. input[type='password'],
  76. input[type='number'],
  77. textarea {
  78. appearance: none;
  79. -webkit-appearance: none;
  80. -moz-appearance: none;
  81. // border-radius: 0;
  82. }
  83. // Remove button styling for IE
  84. button,
  85. input[type='submit'],
  86. input[type='reset'] {
  87. appearance: none;
  88. -webkit-appearance: none;
  89. -moz-appearance: none;
  90. border: 0 none;
  91. background: none;
  92. padding: 0;
  93. cursor: pointer;
  94. }
  95. // Remove outline on focus
  96. *:focus {
  97. outline: none;
  98. }
  99. .card-box {
  100. border-radius: 8px;
  101. box-shadow: 0px 0px 8px 2px rgba(191, 191, 191, 0.2);
  102. border: 1px solid #eee;
  103. background: rgba(255, 255, 255);
  104. }
  105. .password-eye {
  106. display: inline-block;
  107. vertical-align: middle;
  108. width: 30px;
  109. height: 30px;
  110. background: url('@/assets/icon-eye1.png') no-repeat center;
  111. background-size: 30px;
  112. &.open {
  113. background-image: url('@/assets/icon-eye2.png');
  114. }
  115. }
  116. .tabs {
  117. display: flex;
  118. width: 100%;
  119. overflow-x: auto;
  120. border: 1px solid #979797;
  121. &::-webkit-scrollbar {
  122. display: none;
  123. }
  124. .tabs-item {
  125. flex: 1;
  126. padding: 16px 24px;
  127. font-size: 24px;
  128. font-weight: 400;
  129. color: #4a4a4a;
  130. border-right: 1px solid #979797;
  131. white-space: nowrap;
  132. &:last-child {
  133. border-right: none;
  134. }
  135. &.active {
  136. color: #ffffff;
  137. background: #4a90e2;
  138. }
  139. }
  140. }
  141. .section-title {
  142. display: flex;
  143. align-items: center;
  144. font-size: 28px;
  145. font-weight: 400;
  146. color: #4a4a4a;
  147. line-height: 40px;
  148. .section-line {
  149. width: 4px;
  150. height: 30px;
  151. background: #4a90e2;
  152. margin-right: 8px;
  153. }
  154. }
  155. *::-webkit-scrollbar {
  156. width: 6px;
  157. height: 6px;
  158. }
  159. *::-webkit-scrollbar-thumb {
  160. background-color: #999;
  161. }
  162. *::-webkit-scrollbar-thumb:hover {
  163. background-color: #666;
  164. }
  165. *::-webkit-scrollbar-track {
  166. background-color: #eee;
  167. }
  168. :where(.css-dev-only-do-not-override-byeoj0).ant-btn-primary {
  169. background: #4a90e2;
  170. font-size: 16px;
  171. padding-top: 0;
  172. padding-bottom: 0;
  173. }
  174. .ant-table,
  175. .ant-table-cell,
  176. .ant-table-placeholder {
  177. background: transparent !important;
  178. }
  179. .ant-table,
  180. .ant-table-container,
  181. .ant-table-wrapper table {
  182. border-radius: 0 !important;
  183. }
  184. .ant-table-container {
  185. border: none !important;
  186. }
  187. .ant-table-cell::before {
  188. display: none;
  189. }
  190. .ant-table-thead {
  191. background: #cbe0f6;
  192. }
  193. .ant-table-thead > tr > th,
  194. .ant-table-tbody > tr > td {
  195. border-radius: 0 !important;
  196. padding: 16px 18px !important;
  197. font-size: 24px !important;
  198. color: #4a4a4a !important;
  199. line-height: 32px !important;
  200. font-weight: normal !important;
  201. vertical-align: middle;
  202. border: none !important;
  203. }
  204. .ant-table-tbody > tr:nth-child(even) {
  205. background: rgba(145, 192, 238, 0.16);
  206. }