App.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. @import "./theme.scss";
  2. :root {
  3. --primary-color: #{$primaryColor};
  4. --second-color: #{$secondColor};
  5. --border-color: #ececec;
  6. --index-normal: 1;
  7. --index-top: 1000;
  8. --index-popper: 2000;
  9. }
  10. body,
  11. ol,
  12. ul,
  13. h1,
  14. h2,
  15. h3,
  16. h4,
  17. h5,
  18. h6,
  19. p,
  20. th,
  21. td,
  22. dl,
  23. dd,
  24. form,
  25. fieldset,
  26. legend,
  27. input,
  28. textarea,
  29. select {
  30. margin: 0;
  31. padding: 0;
  32. }
  33. ul {
  34. list-style: none;
  35. }
  36. body {
  37. font-family: Source Han Sans CN-Regular;
  38. font-size: 16px;
  39. color: #242424;
  40. }
  41. .limit-line {
  42. display: -webkit-box;
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. -webkit-line-clamp: 1;
  46. -webkit-box-orient: vertical;
  47. word-break: break-all;
  48. word-wrap: break-word;
  49. }
  50. .line-2 {
  51. -webkit-line-clamp: 2;
  52. }
  53. .line-3 {
  54. -webkit-line-clamp: 3;
  55. }
  56. .w100 {
  57. width: 100%;
  58. }
  59. .w160 {
  60. width: 160px;
  61. }
  62. .w220 {
  63. width: 220px;
  64. }
  65. .w450 {
  66. width: 450px;
  67. }
  68. .mw650 {
  69. max-width: 650px;
  70. }
  71. .mw1125 {
  72. max-width: 1125px;
  73. }
  74. * {
  75. box-sizing: border-box;
  76. }
  77. @font-face {
  78. font-family: "Source Han Serif CN-Bold";
  79. src: url("~/public/fonts/SOURCEHANSERIFCN-BOLD.OTF") format("opentype");
  80. font-display: swap;
  81. }
  82. @font-face {
  83. font-family: "Source Han Sans CN-Regular";
  84. src: url("~/public/fonts/SOURCEHANSERIFCN-REGULAR.OTF") format("opentype");
  85. font-display: swap;
  86. }
  87. .ant-btn {
  88. box-shadow: none !important;
  89. }
  90. .ant-input:focus {
  91. box-shadow: none;
  92. }
  93. .page-table {
  94. margin-top: 20px;
  95. }
  96. .custom-pro-table {
  97. .ant-table-content {
  98. .ant-table-thead {
  99. .ant-table-cell {
  100. background: #e0f3ff;
  101. }
  102. }
  103. .ant-table-cell {
  104. padding: 6px 16px !important;
  105. }
  106. }
  107. }
  108. .cus-table {
  109. &.gray {
  110. .ant-table-tbody {
  111. background: rgba(217, 217, 217, 0.1);
  112. }
  113. }
  114. .ant-table-content {
  115. .ant-table-thead {
  116. .ant-table-cell {
  117. background: #e0f3ff;
  118. }
  119. }
  120. .ant-table-cell {
  121. padding: 6px 16px;
  122. }
  123. }
  124. .ant-table-container table > thead > tr:first-child > *:first-child {
  125. border-start-start-radius: 0;
  126. }
  127. .ant-table-container table > thead > tr:first-child > *:last-child {
  128. border-start-end-radius: 0;
  129. }
  130. }
  131. .inline-form {
  132. gap: 15px;
  133. .ant-form-item {
  134. margin-inline-end: 0;
  135. }
  136. }
  137. .primary-button {
  138. font-size: 12px;
  139. & + .ant-btn {
  140. margin-left: 15px;
  141. }
  142. }
  143. .second-button {
  144. font-size: 12px;
  145. background: var(--second-color);
  146. & + .ant-btn {
  147. margin-left: 15px;
  148. }
  149. }
  150. .ant-btn-lg.ant-btn {
  151. font-size: 14px;
  152. }
  153. .ant-btn {
  154. border-radius: 0;
  155. }
  156. .ant-pro-card .ant-pro-card-body {
  157. padding-inline: 0;
  158. }
  159. .empty-text {
  160. color: rgba(36, 36, 36, 0.5);
  161. font-size: 12px;
  162. }
  163. .ant-tree
  164. .ant-tree-treenode.ant-tree-treenode-disabled.ant-tree-treenode-selected
  165. .ant-tree-node-content-wrapper {
  166. background: none;
  167. }
  168. .no-list .ant-upload-list {
  169. display: none;
  170. }