global.less 5.4 KB

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