base.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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: #042b8f;
  42. --themeColor2: #69c690;
  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. // max-width: 500px;
  63. margin: 0 auto;
  64. width: 100vw;
  65. height: 100vh;
  66. overflow: auto;
  67. overflow-y: overlay;
  68. & > div {
  69. width: 100%;
  70. height: 100%;
  71. }
  72. a {
  73. text-decoration: none;
  74. color: black;
  75. outline: none;
  76. }
  77. // ?的提示
  78. .iconHoverTit {
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. }
  83. .iconHoverTitTxt {
  84. background-color: var(--themeColor);
  85. color: #fff;
  86. width: 16px;
  87. height: 16px;
  88. line-height: 16px;
  89. text-align: center;
  90. font-size: 12px;
  91. border-radius: 50%;
  92. }
  93. // a {
  94. // color: var(--themeColor);
  95. // }
  96. /* 普通文字按钮的颜色 */
  97. .ant-btn-text {
  98. color: var(--themeColor);
  99. }
  100. .ant-btn-text:disabled {
  101. cursor: not-allowed;
  102. color: rgba(0, 0, 0, 0.25);
  103. }
  104. /* 按钮的危险颜色 */
  105. .ant-btn-text.ant-btn-dangerous {
  106. color: #ff4d4d;
  107. }
  108. /* antd分页器样式 */
  109. // .ant-pagination .ant-pagination-item {
  110. // border-radius: 50%;
  111. // border: 1px solid #999;
  112. // background-color: transparent !important;
  113. // }
  114. // .ant-pagination .ant-pagination-item-active {
  115. // background-color: var(--themeColor) !important;
  116. // }
  117. // .ant-pagination .ant-pagination-item-active a {
  118. // color: #fff !important;
  119. // }
  120. // .ant-pagination .ant-pagination-item:hover {
  121. // background-color: var(--themeColor) !important;
  122. // }
  123. // .ant-pagination .ant-pagination-item:hover a {
  124. // color: #fff !important;
  125. // }
  126. // .ant-pagination-prev {
  127. // border-radius: 50% !important;
  128. // border: 1px solid #999;
  129. // }
  130. // .ant-pagination-prev:hover {
  131. // background-color: var(--themeColor);
  132. // }
  133. // .ant-pagination-prev:hover button {
  134. // color: #fff;
  135. // }
  136. // .ant-pagination-next {
  137. // border-radius: 50% !important;
  138. // border: 1px solid #999;
  139. // }
  140. // .ant-pagination-next:hover {
  141. // background-color: var(--themeColor);
  142. // }
  143. // .ant-pagination-next:hover button {
  144. // color: #fff;
  145. // }
  146. // .ant-pagination-disabled {
  147. // border: 1px solid #ccc;
  148. // }
  149. // .ant-pagination-disabled:hover {
  150. // background-color: transparent;
  151. // }
  152. /* 表格的图片居中 */
  153. .tableImgAuto {
  154. display: flex;
  155. justify-content: center;
  156. }
  157. /* antd图片预览组件 */
  158. .ant-image {
  159. display: none;
  160. }
  161. /* antd表格居中 */
  162. .ant-table-cell {
  163. text-align: center !important;
  164. }
  165. // 树型 表格 定制化
  166. #A2Table3 {
  167. .ant-table-row-expand-icon {
  168. background-color: var(--themeColor);
  169. color: #fff;
  170. }
  171. .ant-table-cell-with-append {
  172. display: flex;
  173. justify-content: flex-start;
  174. }
  175. }
  176. }
  177. [hidden] {
  178. display: none !important;
  179. }
  180. #upInput {
  181. display: none;
  182. }
  183. #upInput2 {
  184. display: none;
  185. }
  186. #upInputAudio {
  187. display: none;
  188. }
  189. // 页面标题
  190. .pageTitle {
  191. font-size: 18px;
  192. font-weight: 700;
  193. position: absolute;
  194. z-index: 11;
  195. top: -56px;
  196. left: -18px;
  197. padding-left: 40px;
  198. &::before {
  199. position: absolute;
  200. left: 20px;
  201. top: 50%;
  202. transform: translateY(-50%);
  203. content: '';
  204. width: 6px;
  205. height: 20px;
  206. background-color: var(--themeColor);
  207. }
  208. }
  209. // 滚动条
  210. .mySorrl::-webkit-scrollbar {
  211. /*滚动条整体样式*/
  212. width: 5px;
  213. /*高宽分别对应横竖滚动条的尺寸*/
  214. height: 1px;
  215. }
  216. .mySorrl::-webkit-scrollbar-thumb {
  217. /*滚动条里面小方块*/
  218. border-radius: 10px;
  219. -webkit-box-shadow: inset 0 0 5px transparent;
  220. background: var(--themeColor);
  221. }
  222. .mySorrl::-webkit-scrollbar-track {
  223. /*滚动条里面轨道*/
  224. -webkit-box-shadow: inset 0 0 5px transparent;
  225. border-radius: 10px;
  226. background: transparent;
  227. }
  228. .ant-image-preview-operations {
  229. background-color: rgba(0, 0, 0, 0.8) !important;
  230. }
  231. .ant-image-preview-mask {
  232. z-index: 9999 !important;
  233. }
  234. .ant-image-preview-wrap {
  235. z-index: 9999 !important;
  236. }
  237. .ant-image-preview-operations-wrapper {
  238. z-index: 9999 !important;
  239. }
  240. .ant-notification-notice {
  241. max-height: 500px !important;
  242. overflow-y: auto !important;
  243. }
  244. // 多日期选择器居中 挡住 按钮(即必须失焦才能点击确定)
  245. .ant-picker-dropdown {
  246. text-align: center;
  247. }
  248. .ant-picker-selection-item-remove {
  249. display: none !important;
  250. }
  251. // .ant-picker-year-btn,
  252. // .ant-picker-header-super-prev-btn,
  253. // .ant-picker-header-super-next-btn {
  254. // display: none;
  255. // }
  256. // 横屏 竖屏的切换
  257. #ScreenChange {
  258. position: fixed;
  259. top: 0;
  260. left: 0;
  261. width: 100%;
  262. height: 100%;
  263. z-index: 10000;
  264. background-color: rgba(0, 0, 0, 0.8);
  265. display: flex;
  266. flex-direction: column;
  267. justify-content: center;
  268. align-items: center;
  269. opacity: 0;
  270. pointer-events: none;
  271. transition: all 0.5s;
  272. & > img {
  273. width: 200px;
  274. }
  275. & > p {
  276. margin-top: 20px;
  277. color: #fff;
  278. font-size: 18px;
  279. height: 40px;
  280. }
  281. }
  282. /*横屏*/
  283. @media screen and (orientation: landscape) {
  284. #ScreenChange {
  285. opacity: 1;
  286. pointer-events: auto;
  287. }
  288. }