base.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. body {
  12. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
  13. 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  14. height: 100%;
  15. color: black;
  16. }
  17. i {
  18. font-style: normal;
  19. }
  20. img {
  21. max-width: 100%;
  22. max-height: 100%;
  23. vertical-align: middle;
  24. object-fit: cover;
  25. }
  26. ul {
  27. list-style: none;
  28. }
  29. body {
  30. overflow: auto;
  31. overflow-y: overlay;
  32. }
  33. /* 文本域取消下拉 */
  34. textarea {
  35. resize: none !important;
  36. min-height: 100px !important;
  37. }
  38. /* 主题色 */
  39. :root {
  40. // --themeColor: #69c790;
  41. --themeColor: #4287b9;
  42. --themeColor2: #194292;
  43. }
  44. /* 找不到页面 */
  45. .noFindPage {
  46. opacity: 0;
  47. transition: opacity 0.5s;
  48. }
  49. /* 兼容360浏览器的下拉框 */
  50. .ant-select-selector {
  51. position: relative;
  52. background-color: #ffffff;
  53. border: 1px solid #d9d9d9;
  54. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  55. }
  56. // 气泡框闪烁问题
  57. .ant-popconfirm {
  58. width: 240px;
  59. }
  60. // 重置antd样式
  61. #root {
  62. width: 100vw;
  63. height: 100vh;
  64. min-width: 1600px;
  65. min-height: 900px;
  66. overflow: auto;
  67. overflow-y: overlay;
  68. a {
  69. text-decoration: none;
  70. color: black;
  71. outline: none;
  72. }
  73. // ?的提示
  74. .iconHoverTit {
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. }
  79. .iconHoverTitTxt {
  80. background-color: var(--themeColor);
  81. color: #fff;
  82. width: 16px;
  83. height: 16px;
  84. line-height: 16px;
  85. text-align: center;
  86. font-size: 12px;
  87. border-radius: 50%;
  88. }
  89. // a {
  90. // color: var(--themeColor);
  91. // }
  92. /* 普通文字按钮的颜色 */
  93. .ant-btn-text {
  94. color: var(--themeColor);
  95. }
  96. .ant-btn-text:disabled {
  97. cursor: not-allowed;
  98. color: rgba(0, 0, 0, 0.25);
  99. }
  100. /* 按钮的危险颜色 */
  101. .ant-btn-text.ant-btn-dangerous {
  102. color: #ff4d4d;
  103. }
  104. /* antd分页器样式 */
  105. // .ant-pagination .ant-pagination-item {
  106. // border-radius: 50%;
  107. // border: 1px solid #999;
  108. // background-color: transparent !important;
  109. // }
  110. // .ant-pagination .ant-pagination-item-active {
  111. // background-color: var(--themeColor) !important;
  112. // }
  113. // .ant-pagination .ant-pagination-item-active a {
  114. // color: #fff !important;
  115. // }
  116. // .ant-pagination .ant-pagination-item:hover {
  117. // background-color: var(--themeColor) !important;
  118. // }
  119. // .ant-pagination .ant-pagination-item:hover a {
  120. // color: #fff !important;
  121. // }
  122. // .ant-pagination-prev {
  123. // border-radius: 50% !important;
  124. // border: 1px solid #999;
  125. // }
  126. // .ant-pagination-prev:hover {
  127. // background-color: var(--themeColor);
  128. // }
  129. // .ant-pagination-prev:hover button {
  130. // color: #fff;
  131. // }
  132. // .ant-pagination-next {
  133. // border-radius: 50% !important;
  134. // border: 1px solid #999;
  135. // }
  136. // .ant-pagination-next:hover {
  137. // background-color: var(--themeColor);
  138. // }
  139. // .ant-pagination-next:hover button {
  140. // color: #fff;
  141. // }
  142. // .ant-pagination-disabled {
  143. // border: 1px solid #ccc;
  144. // }
  145. // .ant-pagination-disabled:hover {
  146. // background-color: transparent;
  147. // }
  148. /* 表格的图片居中 */
  149. .tableImgAuto {
  150. display: flex;
  151. justify-content: center;
  152. }
  153. /* antd图片预览组件 */
  154. .ant-image {
  155. display: none;
  156. }
  157. /* antd表格居中 */
  158. .ant-table-cell {
  159. text-align: center !important;
  160. }
  161. // 树型 表格 定制化
  162. #A2Table3 {
  163. .ant-table-row-expand-icon {
  164. background-color: var(--themeColor);
  165. color: #fff;
  166. }
  167. .ant-table-cell-with-append {
  168. display: flex;
  169. justify-content: flex-start;
  170. }
  171. }
  172. }
  173. [hidden] {
  174. display: none !important;
  175. }
  176. #upInput {
  177. display: none;
  178. }
  179. #upInput2 {
  180. display: none;
  181. }
  182. #upInputAudio {
  183. display: none;
  184. }
  185. // 页面标题
  186. .pageTitle {
  187. font-size: 18px;
  188. font-weight: 700;
  189. position: absolute;
  190. z-index: 11;
  191. top: -56px;
  192. left: -18px;
  193. padding-left: 40px;
  194. &::before {
  195. position: absolute;
  196. left: 20px;
  197. top: 50%;
  198. transform: translateY(-50%);
  199. content: '';
  200. width: 6px;
  201. height: 20px;
  202. background-color: var(--themeColor);
  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. .ant-notification-notice {
  237. max-height: 500px !important;
  238. overflow-y: auto !important;
  239. }
  240. // 多日期选择器居中 挡住 按钮(即必须失焦才能点击确定)
  241. .ant-picker-dropdown {
  242. text-align: center;
  243. }