base.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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: #a89170;
  41. --themeColor2: #272727;
  42. }
  43. /* 找不到页面 */
  44. .noFindPage {
  45. opacity: 0;
  46. transition: opacity 0.5s;
  47. }
  48. /* 兼容360浏览器的下拉框 */
  49. .ant-select-selector {
  50. position: relative;
  51. background-color: #ffffff;
  52. border: 1px solid #d9d9d9;
  53. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  54. }
  55. // 气泡框闪烁问题
  56. .ant-popconfirm {
  57. width: 240px;
  58. }
  59. // 重置antd样式
  60. #root {
  61. width: 100vw;
  62. height: 100vh;
  63. min-width: 1600px;
  64. min-height: 900px;
  65. overflow: auto;
  66. overflow-y: overlay;
  67. a {
  68. text-decoration: none;
  69. color: black;
  70. outline: none;
  71. }
  72. // ?的提示
  73. .iconHoverTit {
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. }
  78. .iconHoverTitTxt {
  79. background-color: var(--themeColor);
  80. color: #fff;
  81. width: 16px;
  82. height: 16px;
  83. line-height: 16px;
  84. text-align: center;
  85. font-size: 12px;
  86. border-radius: 50%;
  87. }
  88. // a {
  89. // color: var(--themeColor);
  90. // }
  91. /* 普通文字按钮的颜色 */
  92. .ant-btn-text {
  93. color: var(--themeColor);
  94. }
  95. .ant-btn-text:disabled {
  96. cursor: not-allowed;
  97. color: rgba(0, 0, 0, 0.25);
  98. }
  99. /* 按钮的危险颜色 */
  100. .ant-btn-text.ant-btn-dangerous {
  101. color: #ff4d4d;
  102. }
  103. /* antd分页器样式 */
  104. // .ant-pagination .ant-pagination-item {
  105. // border-radius: 50%;
  106. // border: 1px solid #999;
  107. // background-color: transparent !important;
  108. // }
  109. // .ant-pagination .ant-pagination-item-active {
  110. // background-color: var(--themeColor) !important;
  111. // }
  112. // .ant-pagination .ant-pagination-item-active a {
  113. // color: #fff !important;
  114. // }
  115. // .ant-pagination .ant-pagination-item:hover {
  116. // background-color: var(--themeColor) !important;
  117. // }
  118. // .ant-pagination .ant-pagination-item:hover a {
  119. // color: #fff !important;
  120. // }
  121. // .ant-pagination-prev {
  122. // border-radius: 50% !important;
  123. // border: 1px solid #999;
  124. // }
  125. // .ant-pagination-prev:hover {
  126. // background-color: var(--themeColor);
  127. // }
  128. // .ant-pagination-prev:hover button {
  129. // color: #fff;
  130. // }
  131. // .ant-pagination-next {
  132. // border-radius: 50% !important;
  133. // border: 1px solid #999;
  134. // }
  135. // .ant-pagination-next:hover {
  136. // background-color: var(--themeColor);
  137. // }
  138. // .ant-pagination-next:hover button {
  139. // color: #fff;
  140. // }
  141. // .ant-pagination-disabled {
  142. // border: 1px solid #ccc;
  143. // }
  144. // .ant-pagination-disabled:hover {
  145. // background-color: transparent;
  146. // }
  147. /* 表格的图片居中 */
  148. .tableImgAuto {
  149. display: flex;
  150. justify-content: center;
  151. }
  152. /* antd图片预览组件 */
  153. .ant-image {
  154. display: none;
  155. }
  156. /* antd表格居中 */
  157. .ant-table-cell {
  158. text-align: center !important;
  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: -56px;
  191. left: -18px;
  192. padding-left: 40px;
  193. &::before {
  194. position: absolute;
  195. left: 20px;
  196. top: 50%;
  197. transform: translateY(-50%);
  198. content: '';
  199. width: 6px;
  200. height: 20px;
  201. background-color: var(--themeColor);
  202. }
  203. }
  204. // 滚动条
  205. .mySorrl::-webkit-scrollbar {
  206. /*滚动条整体样式*/
  207. width: 5px;
  208. /*高宽分别对应横竖滚动条的尺寸*/
  209. height: 1px;
  210. }
  211. .mySorrl::-webkit-scrollbar-thumb {
  212. /*滚动条里面小方块*/
  213. border-radius: 10px;
  214. -webkit-box-shadow: inset 0 0 5px transparent;
  215. background: var(--themeColor);
  216. }
  217. .mySorrl::-webkit-scrollbar-track {
  218. /*滚动条里面轨道*/
  219. -webkit-box-shadow: inset 0 0 5px transparent;
  220. border-radius: 10px;
  221. background: transparent;
  222. }
  223. .ant-image-preview-operations {
  224. background-color: rgba(0, 0, 0, 0.8) !important;
  225. }
  226. .ant-image-preview-mask {
  227. z-index: 9999 !important;
  228. }
  229. .ant-image-preview-wrap {
  230. z-index: 9999 !important;
  231. }
  232. .ant-image-preview-operations-wrapper {
  233. z-index: 9999 !important;
  234. }
  235. .ant-notification-notice {
  236. max-height: 500px !important;
  237. overflow-y: auto !important;
  238. }