global.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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: 0.06rem !important;
  55. border-bottom: none !important;
  56. margin-bottom: 0.1rem;
  57. }
  58. .ant-select-dropdown .ant-select-item {
  59. font-size: 0.26rem;
  60. }
  61. .ant-picker-dropdown {
  62. font-size: 0.24rem;
  63. }
  64. .ant-picker-dropdown .ant-picker-content td {
  65. width: 0.3rem;
  66. }
  67. .ant-picker-dropdown .ant-picker-cell::before {
  68. height: 0.3rem;
  69. }
  70. .ant-picker-dropdown .ant-picker-cell .ant-picker-cell-inner {
  71. min-width: 0.3rem;
  72. height: 0.3rem;
  73. line-height: 0.3rem;
  74. }
  75. }
  76. // Remove list styles on ul, ol
  77. ul,
  78. ol {
  79. list-style: none;
  80. }
  81. // Remove link styles
  82. a {
  83. text-decoration: none;
  84. }
  85. // Remove table border
  86. table {
  87. border-collapse: collapse;
  88. border-spacing: 0;
  89. background-color: white;
  90. }
  91. // Remove input styling for IE
  92. input[type='text'],
  93. input[type='password'],
  94. input[type='number'],
  95. textarea {
  96. appearance: none;
  97. -webkit-appearance: none;
  98. -moz-appearance: none;
  99. // border-radius: 0;
  100. }
  101. // Remove button styling for IE
  102. button,
  103. input[type='submit'],
  104. input[type='reset'] {
  105. appearance: none;
  106. -webkit-appearance: none;
  107. -moz-appearance: none;
  108. border: 0 none;
  109. background: none;
  110. padding: 0;
  111. cursor: pointer;
  112. }
  113. // Remove outline on focus
  114. *:focus {
  115. outline: none;
  116. }
  117. .box {
  118. border-radius: 0.08rem;
  119. box-shadow: 0rem 0rem 0.08rem 0.02rem rgba(191, 191, 191, 0.2);
  120. border: 0.01rem solid #eee;
  121. background: rgba(255, 255, 255);
  122. }
  123. .card-box {
  124. border-radius: 0.4rem 0 0.4rem 0;
  125. background: #ffffff;
  126. box-shadow: 0.01rem 0.06rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  127. }
  128. .content-tab {
  129. padding-left: 0.05rem;
  130. padding-top: 0.05rem;
  131. padding-right: 0.05rem;
  132. height: calc(100vh - 1.3rem);
  133. overflow-x: hidden;
  134. overflow-y: auto;
  135. }
  136. .content-title {
  137. padding-left: 0.05rem;
  138. padding-right: 0.05rem;
  139. height: calc(100vh - 1.1rem);
  140. overflow-x: hidden;
  141. overflow-y: auto;
  142. }
  143. .password-eye {
  144. display: inline-block;
  145. vertical-align: middle;
  146. width: 0.3rem;
  147. height: 0.3rem;
  148. background: url('@/assets/icon-eye1.png') no-repeat center;
  149. background-size: 0.3rem;
  150. &.open {
  151. background-image: url('@/assets/icon-eye2.png');
  152. }
  153. }
  154. .tabs {
  155. display: flex;
  156. width: 100%;
  157. overflow-x: auto;
  158. border: 0.01rem solid #979797;
  159. &::-webkit-scrollbar {
  160. display: none;
  161. }
  162. .tabs-item {
  163. flex: 1;
  164. padding: 0.16rem 0.24rem;
  165. font-size: 0.24rem;
  166. font-weight: 400;
  167. color: #4a4a4a;
  168. border-right: 0.01rem solid #979797;
  169. white-space: nowrap;
  170. &:last-child {
  171. border-right: none;
  172. }
  173. &.active {
  174. color: #ffffff;
  175. background: #4a90e2;
  176. }
  177. }
  178. }
  179. .section-title {
  180. display: flex;
  181. align-items: center;
  182. font-size: 0.28rem;
  183. font-weight: 400;
  184. color: #4a4a4a;
  185. line-height: 0.4rem;
  186. .section-line {
  187. width: 0.04rem;
  188. height: 0.3rem;
  189. background: #4a90e2;
  190. margin-right: 0.08rem;
  191. }
  192. }
  193. *::-webkit-scrollbar {
  194. width: 0.06rem;
  195. height: 0.06rem;
  196. }
  197. *::-webkit-scrollbar-thumb {
  198. background-color: #999;
  199. }
  200. *::-webkit-scrollbar-thumb:hover {
  201. background-color: #666;
  202. }
  203. *::-webkit-scrollbar-track {
  204. background-color: #eee;
  205. }
  206. .ant-btn-primary {
  207. background: #4a90e2;
  208. font-size: 0.16rem;
  209. padding-top: 0;
  210. padding-bottom: 0;
  211. }
  212. .ant-table {
  213. background-color: white !important;
  214. }
  215. .ant-table-cell,
  216. .ant-table-placeholder {
  217. background: transparent !important;
  218. }
  219. .ant-table,
  220. .ant-table-container,
  221. .ant-table-wrapper table {
  222. border-radius: 0 !important;
  223. }
  224. .ant-table-container {
  225. border: none !important;
  226. }
  227. .ant-table-cell::before {
  228. display: none;
  229. }
  230. .ant-table-thead {
  231. background: #cbe0f6;
  232. }
  233. .ant-table-thead > tr > th,
  234. .ant-table-tbody > tr > td {
  235. border-radius: 0 !important;
  236. padding: 0.16rem 0.18rem !important;
  237. font-size: 0.24rem !important;
  238. color: #4a4a4a !important;
  239. line-height: 0.32rem !important;
  240. font-weight: normal !important;
  241. vertical-align: middle;
  242. border: none !important;
  243. }
  244. .ant-table-tbody > tr:nth-child(even) {
  245. background: rgba(145, 192, 238, 0.16);
  246. }
  247. .ant-picker {
  248. font-size: 0.26rem;
  249. .ant-picker-input > input {
  250. font-size: 0.24rem;
  251. }
  252. .ant-picker-separator {
  253. font-size: 0.24rem;
  254. }
  255. }
  256. .ant-select-selection-item {
  257. font-size: 0.26rem;
  258. }
  259. .ant-select-selector {
  260. height: 0.4rem;
  261. padding: 0.04rem 0.11rem;
  262. }
  263. .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
  264. height: 0.4rem;
  265. padding: 0.04rem 0.11rem;
  266. }
  267. .ant-select-single .ant-select-selector {
  268. font-size: 0.26rem;
  269. }