base.less 4.3 KB

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