base.less 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. // 文字颜色
  14. --themeColor: #002c15;
  15. // 登录页文字颜色
  16. --loginTxt: #fddb77;
  17. // 一个模块一个模块的背景色
  18. --boxBcaColor: #f8f8f8;
  19. // 这个项目颜色有点杂--字典、组织、标签模块主题色
  20. --txtColor: #4c7f7a;
  21. // antd主题色
  22. --myAntdColor: #ab925b;
  23. }
  24. body {
  25. font:
  26. 1em/1.4 'Microsoft Yahei',
  27. 'PingFang SC',
  28. 'Avenir',
  29. 'Segoe UI',
  30. 'Hiragino Sans GB',
  31. 'STHeiti',
  32. 'Microsoft Sans Serif',
  33. 'WenQuanYi Micro Hei',
  34. sans-serif;
  35. height: 100%;
  36. color: var(--themeColor) !important;
  37. }
  38. i {
  39. font-style: normal;
  40. }
  41. img {
  42. max-width: 100%;
  43. max-height: 100%;
  44. vertical-align: middle;
  45. object-fit: cover;
  46. }
  47. ul {
  48. list-style: none;
  49. }
  50. body {
  51. overflow: auto;
  52. overflow-y: overlay;
  53. }
  54. /* 文本域取消下拉 */
  55. textarea {
  56. resize: none !important;
  57. min-height: 100px !important;
  58. }
  59. /* 找不到页面 */
  60. .noFindPage {
  61. opacity: 0;
  62. transition: opacity 0.5s;
  63. .ant-result-title {
  64. display: none;
  65. }
  66. }
  67. /* 兼容360浏览器的下拉框 */
  68. .ant-select-selector {
  69. position: relative;
  70. background-color: #ffffff;
  71. border: 1px solid #d9d9d9;
  72. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  73. }
  74. // 气泡框闪烁问题
  75. .ant-popconfirm {
  76. width: 240px;
  77. }
  78. // 重置antd样式
  79. #root {
  80. width: 100vw;
  81. height: 100vh;
  82. min-width: 1600px;
  83. min-height: 900px;
  84. overflow: auto;
  85. overflow-y: overlay;
  86. a {
  87. text-decoration: none;
  88. color: black;
  89. outline: none;
  90. }
  91. // ?的提示
  92. .iconHoverTit {
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. }
  97. .iconHoverTitTxt {
  98. background-color: var(--themeColor);
  99. color: #fff;
  100. width: 16px;
  101. height: 16px;
  102. line-height: 16px;
  103. text-align: center;
  104. font-size: 12px;
  105. border-radius: 50%;
  106. }
  107. // a {
  108. // color: var(--themeColor);
  109. // }
  110. /* antd分页器样式 */
  111. // .ant-pagination .ant-pagination-item {
  112. // border-radius: 50%;
  113. // border: 1px solid #999;
  114. // background-color: transparent !important;
  115. // }
  116. // .ant-pagination .ant-pagination-item-active {
  117. // background-color: var(--themeColor) !important;
  118. // }
  119. // .ant-pagination .ant-pagination-item-active a {
  120. // color: #fff !important;
  121. // }
  122. // .ant-pagination .ant-pagination-item:hover {
  123. // background-color: var(--themeColor) !important;
  124. // }
  125. // .ant-pagination .ant-pagination-item:hover a {
  126. // color: #fff !important;
  127. // }
  128. // .ant-pagination-prev {
  129. // border-radius: 50% !important;
  130. // border: 1px solid #999;
  131. // }
  132. // .ant-pagination-prev:hover {
  133. // background-color: var(--themeColor);
  134. // }
  135. // .ant-pagination-prev:hover button {
  136. // color: #fff;
  137. // }
  138. // .ant-pagination-next {
  139. // border-radius: 50% !important;
  140. // border: 1px solid #999;
  141. // }
  142. // .ant-pagination-next:hover {
  143. // background-color: var(--themeColor);
  144. // }
  145. // .ant-pagination-next:hover button {
  146. // color: #fff;
  147. // }
  148. // .ant-pagination-disabled {
  149. // border: 1px solid #ccc;
  150. // }
  151. // .ant-pagination-disabled:hover {
  152. // background-color: transparent;
  153. // }
  154. /* 表格的图片居中 */
  155. .tableImgAuto {
  156. display: flex;
  157. justify-content: center;
  158. }
  159. /* antd图片预览组件 */
  160. .ant-image {
  161. display: none;
  162. }
  163. // 树型 表格 定制化
  164. #A2Table3 {
  165. .ant-table-row-expand-icon {
  166. background-color: var(--themeColor);
  167. color: #fff;
  168. }
  169. .ant-table-cell-with-append {
  170. display: flex;
  171. justify-content: flex-start;
  172. }
  173. }
  174. }
  175. [hidden] {
  176. display: none !important;
  177. }
  178. #upInput {
  179. display: none;
  180. }
  181. #upInput2 {
  182. display: none;
  183. }
  184. #upInputAudio {
  185. display: none;
  186. }
  187. // 页面标题
  188. .pageTitle {
  189. font-size: 18px;
  190. position: absolute;
  191. z-index: 11;
  192. top: -72px;
  193. left: -18px;
  194. padding-left: 40px;
  195. color: #fff;
  196. text-shadow: 2px 2px 2px black;
  197. letter-spacing: 2px;
  198. &::before {
  199. position: absolute;
  200. left: -7px;
  201. content: '';
  202. font-size: 24px;
  203. font-weight: 700;
  204. top: 0px;
  205. width: 2px;
  206. height: 26px;
  207. background-color: #596754;
  208. }
  209. }
  210. // 滚动条
  211. .mySorrl::-webkit-scrollbar {
  212. /*滚动条整体样式*/
  213. width: 5px;
  214. /*高宽分别对应横竖滚动条的尺寸*/
  215. height: 1px;
  216. }
  217. .mySorrl::-webkit-scrollbar-thumb {
  218. /*滚动条里面小方块*/
  219. border-radius: 10px;
  220. -webkit-box-shadow: inset 0 0 5px transparent;
  221. background: var(--themeColor);
  222. }
  223. .mySorrl::-webkit-scrollbar-track {
  224. /*滚动条里面轨道*/
  225. -webkit-box-shadow: inset 0 0 5px transparent;
  226. border-radius: 10px;
  227. background: transparent;
  228. }
  229. .ant-image-preview-operations {
  230. background-color: rgba(0, 0, 0, 0.8) !important;
  231. }
  232. // --------关于表格
  233. .ant-table-body {
  234. background-color: var(--boxBcaColor) !important;
  235. }
  236. /* antd表格居中 */
  237. .ant-table-cell {
  238. text-align: center !important;
  239. }
  240. .ant-table-header {
  241. .ant-table-cell {
  242. color: var(--themeColor) !important;
  243. background-color: #d6e6df !important;
  244. }
  245. }
  246. .ant-table-body {
  247. .ant-table-cell {
  248. border-color: #ccc !important;
  249. }
  250. }
  251. // .ant-table-placeholder {
  252. // background-color: transparent !important;
  253. // .ant-empty-description {
  254. // color: var(--themeColor) !important;
  255. // }
  256. // ellipse {
  257. // fill: var(--boxBcaColor) !important;
  258. // }
  259. // path {
  260. // fill: transparent !important;
  261. // }
  262. // g {
  263. // stroke: var(--themeColor) !important;
  264. // }
  265. // }
  266. #editBox {
  267. font-size: 16px;
  268. background-color: var(--boxBcaColor);
  269. border-radius: 10px;
  270. .editMain {
  271. width: 100%;
  272. height: calc(100% - 60px);
  273. overflow-y: auto;
  274. }
  275. }
  276. /* 普通文字按钮的颜色 */
  277. .ant-btn-text {
  278. color: var(--myAntdColor) !important;
  279. }
  280. .ant-btn-text:disabled {
  281. cursor: not-allowed !important;
  282. color: rgba(0, 0, 0, 0.25) !important;
  283. }
  284. /* 按钮的危险颜色 */
  285. .ant-btn-text.ant-btn-dangerous {
  286. color: #ff4d4d !important;
  287. }
  288. // 抽屉文字居中
  289. .ant-dropdown-menu-title-content {
  290. text-align: center;
  291. }
  292. // ----------表格中的视频查看
  293. .tablelookVideo {
  294. display: flex;
  295. justify-content: center;
  296. position: relative;
  297. .tablelookBox {
  298. cursor: pointer;
  299. transition: opacity 0.3s;
  300. opacity: 0;
  301. z-index: 10;
  302. position: absolute;
  303. top: 0;
  304. left: 50%;
  305. transform: translateX(-50%);
  306. width: 60px;
  307. height: 60px;
  308. display: flex;
  309. justify-content: center;
  310. align-items: center;
  311. font-size: 18px;
  312. color: #fff;
  313. background-color: rgba(0, 0, 0, 0.6);
  314. & > div {
  315. font-size: 14px;
  316. }
  317. &:hover {
  318. opacity: 1;
  319. }
  320. }
  321. video {
  322. width: 60px;
  323. height: 60px;
  324. object-fit: cover;
  325. }
  326. }
  327. // -----------表格中的多选框
  328. .ant-table-wrapper {
  329. .ant-table-selection,
  330. .ant-checkbox-wrapper {
  331. width: 50px !important;
  332. .ant-checkbox-inner {
  333. width: 24px !important;
  334. height: 24px !important;
  335. }
  336. .ant-checkbox-inner:after {
  337. left: 35%;
  338. }
  339. }
  340. .ant-table-tbody .ant-checkbox-wrapper {
  341. position: relative;
  342. left: -2px;
  343. }
  344. .ant-table-thead .ant-checkbox-indeterminate {
  345. .ant-checkbox-inner:after {
  346. width: 15px;
  347. height: 15px;
  348. left: 50%;
  349. }
  350. }
  351. }