base.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. html {
  7. height: 100%;
  8. font-size: 14px;
  9. // user-select: none;
  10. }
  11. /* 主题色 */
  12. :root {
  13. --themeColor: #002c15;
  14. --themeColor2: #fddb77;
  15. --boxBcaColor: #f7efed;
  16. }
  17. body {
  18. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
  19. 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  20. height: 100%;
  21. color: var(--themeColor) !important;
  22. }
  23. i {
  24. font-style: normal;
  25. }
  26. img {
  27. max-width: 100%;
  28. max-height: 100%;
  29. vertical-align: middle;
  30. object-fit: cover;
  31. }
  32. ul {
  33. list-style: none;
  34. }
  35. body {
  36. overflow: auto;
  37. overflow-y: overlay;
  38. }
  39. /* 文本域取消下拉 */
  40. textarea {
  41. resize: none !important;
  42. min-height: 100px !important;
  43. }
  44. /* 找不到页面 */
  45. .noFindPage {
  46. opacity: 0;
  47. transition: opacity 0.5s;
  48. .ant-result-title {
  49. display: none;
  50. }
  51. }
  52. /* 兼容360浏览器的下拉框 */
  53. .ant-select-selector {
  54. position: relative;
  55. background-color: #ffffff;
  56. border: 1px solid #d9d9d9;
  57. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  58. }
  59. // 气泡框闪烁问题
  60. .ant-popconfirm {
  61. width: 240px;
  62. }
  63. // 重置antd样式
  64. #root {
  65. width: 100vw;
  66. height: 100vh;
  67. min-width: 1600px;
  68. min-height: 900px;
  69. overflow: auto;
  70. overflow-y: overlay;
  71. a {
  72. text-decoration: none;
  73. color: black;
  74. outline: none;
  75. }
  76. // ?的提示
  77. .iconHoverTit {
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. }
  82. .iconHoverTitTxt {
  83. background-color: var(--themeColor);
  84. color: #fff;
  85. width: 16px;
  86. height: 16px;
  87. line-height: 16px;
  88. text-align: center;
  89. font-size: 12px;
  90. border-radius: 50%;
  91. }
  92. // a {
  93. // color: var(--themeColor);
  94. // }
  95. /* 普通文字按钮的颜色 */
  96. .ant-btn-text {
  97. color: var(--themeColor);
  98. }
  99. .ant-btn-text:disabled {
  100. cursor: not-allowed;
  101. color: rgba(0, 0, 0, 0.25);
  102. }
  103. /* 按钮的危险颜色 */
  104. .ant-btn-text.ant-btn-dangerous {
  105. color: #ff4d4d;
  106. }
  107. /* antd分页器样式 */
  108. // .ant-pagination .ant-pagination-item {
  109. // border-radius: 50%;
  110. // border: 1px solid #999;
  111. // background-color: transparent !important;
  112. // }
  113. // .ant-pagination .ant-pagination-item-active {
  114. // background-color: var(--themeColor) !important;
  115. // }
  116. // .ant-pagination .ant-pagination-item-active a {
  117. // color: #fff !important;
  118. // }
  119. // .ant-pagination .ant-pagination-item:hover {
  120. // background-color: var(--themeColor) !important;
  121. // }
  122. // .ant-pagination .ant-pagination-item:hover a {
  123. // color: #fff !important;
  124. // }
  125. // .ant-pagination-prev {
  126. // border-radius: 50% !important;
  127. // border: 1px solid #999;
  128. // }
  129. // .ant-pagination-prev:hover {
  130. // background-color: var(--themeColor);
  131. // }
  132. // .ant-pagination-prev:hover button {
  133. // color: #fff;
  134. // }
  135. // .ant-pagination-next {
  136. // border-radius: 50% !important;
  137. // border: 1px solid #999;
  138. // }
  139. // .ant-pagination-next:hover {
  140. // background-color: var(--themeColor);
  141. // }
  142. // .ant-pagination-next:hover button {
  143. // color: #fff;
  144. // }
  145. // .ant-pagination-disabled {
  146. // border: 1px solid #ccc;
  147. // }
  148. // .ant-pagination-disabled:hover {
  149. // background-color: transparent;
  150. // }
  151. /* 表格的图片居中 */
  152. .tableImgAuto {
  153. display: flex;
  154. justify-content: center;
  155. }
  156. /* antd图片预览组件 */
  157. .ant-image {
  158. display: none;
  159. }
  160. // 树型 表格 定制化
  161. #A2Table3 {
  162. .ant-table-row-expand-icon {
  163. background-color: var(--themeColor);
  164. color: #fff;
  165. }
  166. .ant-table-cell-with-append {
  167. display: flex;
  168. justify-content: flex-start;
  169. }
  170. }
  171. }
  172. [hidden] {
  173. display: none !important;
  174. }
  175. #upInput {
  176. display: none;
  177. }
  178. #upInput2 {
  179. display: none;
  180. }
  181. #upInputAudio {
  182. display: none;
  183. }
  184. // 页面标题
  185. .pageTitle {
  186. font-size: 18px;
  187. font-weight: 700;
  188. position: absolute;
  189. z-index: 11;
  190. top: -73px;
  191. left: -18px;
  192. padding-left: 40px;
  193. color: var(--themeColor2);
  194. text-shadow: 1px 1px 1px black;
  195. letter-spacing: 2px;
  196. &::before {
  197. position: absolute;
  198. left: 0px;
  199. content: '|';
  200. font-size: 20px;
  201. font-weight: 700;
  202. top: -3px;
  203. }
  204. }
  205. // 滚动条
  206. .mySorrl::-webkit-scrollbar {
  207. /*滚动条整体样式*/
  208. width: 5px;
  209. /*高宽分别对应横竖滚动条的尺寸*/
  210. height: 1px;
  211. }
  212. .mySorrl::-webkit-scrollbar-thumb {
  213. /*滚动条里面小方块*/
  214. border-radius: 10px;
  215. -webkit-box-shadow: inset 0 0 5px transparent;
  216. background: var(--themeColor);
  217. }
  218. .mySorrl::-webkit-scrollbar-track {
  219. /*滚动条里面轨道*/
  220. -webkit-box-shadow: inset 0 0 5px transparent;
  221. border-radius: 10px;
  222. background: transparent;
  223. }
  224. .ant-image-preview-operations {
  225. background-color: rgba(0, 0, 0, 0.8) !important;
  226. }
  227. // .ant-image-preview-mask {
  228. // z-index: 9999 !important;
  229. // }
  230. // .ant-image-preview-wrap {
  231. // z-index: 9999 !important;
  232. // }
  233. // .ant-image-preview-operations-wrapper {
  234. // z-index: 9999 !important;
  235. // }
  236. .AIdroRow {
  237. display: block;
  238. width: 100%;
  239. height: 100%;
  240. text-align: center;
  241. }
  242. // --------关于表格
  243. .ant-table-body {
  244. background-color: var(--boxBcaColor) !important;
  245. }
  246. /* antd表格居中 */
  247. .ant-table-cell {
  248. text-align: center !important;
  249. }
  250. .ant-table-header {
  251. .ant-table-cell {
  252. color: var(--themeColor) !important;
  253. }
  254. }
  255. .ant-table-body {
  256. .ant-table-cell {
  257. border-color: #ccc !important;
  258. }
  259. }
  260. // .ant-table-placeholder {
  261. // background-color: transparent !important;
  262. // .ant-empty-description {
  263. // color: var(--themeColor) !important;
  264. // }
  265. // ellipse {
  266. // fill: var(--boxBcaColor) !important;
  267. // }
  268. // path {
  269. // fill: transparent !important;
  270. // }
  271. // g {
  272. // stroke: var(--themeColor) !important;
  273. // }
  274. // }