base.less 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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: #4c7f7a;
  41. --themeColor2: #d3b453;
  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. .TvideoBox {
  152. cursor: pointer;
  153. width: 60px;
  154. height: 60px;
  155. position: relative;
  156. .TvideoBoxLook {
  157. position: absolute;
  158. z-index: 10;
  159. opacity: 0;
  160. transition: opacity 0.3s;
  161. top: 0;
  162. left: 0;
  163. width: 100%;
  164. height: 100%;
  165. display: flex;
  166. justify-content: center;
  167. align-items: center;
  168. font-size: 14px;
  169. color: #fff;
  170. background-color: rgba(0, 0, 0, 0.6);
  171. .anticon-eye {
  172. font-size: 18px;
  173. }
  174. }
  175. video {
  176. width: 100%;
  177. height: 100%;
  178. object-fit: cover;
  179. }
  180. &:hover {
  181. .TvideoBoxLook {
  182. opacity: 1;
  183. }
  184. }
  185. }
  186. }
  187. /* antd图片预览组件 */
  188. .ant-image {
  189. display: none;
  190. }
  191. /* antd表格居中 */
  192. .ant-table-cell {
  193. text-align: center !important;
  194. }
  195. // 树型 表格 定制化
  196. #A2Table3 {
  197. .ant-table-row-expand-icon {
  198. background-color: var(--themeColor);
  199. color: #fff;
  200. }
  201. .ant-table-cell-with-append {
  202. display: flex;
  203. justify-content: flex-start;
  204. }
  205. }
  206. }
  207. [hidden] {
  208. display: none !important;
  209. }
  210. #upInput {
  211. display: none;
  212. }
  213. #upInput2 {
  214. display: none;
  215. }
  216. #upInputAudio {
  217. display: none;
  218. }
  219. // 页面标题
  220. .pageTitle {
  221. font-size: 18px;
  222. font-weight: 700;
  223. position: absolute;
  224. z-index: 11;
  225. top: -56px;
  226. left: -18px;
  227. padding-left: 40px;
  228. &::before {
  229. position: absolute;
  230. left: 20px;
  231. top: 50%;
  232. transform: translateY(-50%);
  233. content: '';
  234. width: 6px;
  235. height: 20px;
  236. background-color: var(--themeColor);
  237. }
  238. }
  239. // 滚动条
  240. .mySorrl::-webkit-scrollbar {
  241. /*滚动条整体样式*/
  242. width: 5px;
  243. /*高宽分别对应横竖滚动条的尺寸*/
  244. height: 1px;
  245. }
  246. .mySorrl::-webkit-scrollbar-thumb {
  247. /*滚动条里面小方块*/
  248. border-radius: 10px;
  249. -webkit-box-shadow: inset 0 0 5px transparent;
  250. background: var(--themeColor);
  251. }
  252. .mySorrl::-webkit-scrollbar-track {
  253. /*滚动条里面轨道*/
  254. -webkit-box-shadow: inset 0 0 5px transparent;
  255. border-radius: 10px;
  256. background: transparent;
  257. }
  258. .ant-image-preview-operations {
  259. background-color: rgba(0, 0, 0, 0.8) !important;
  260. }
  261. .ant-image-preview-mask {
  262. z-index: 10000 !important;
  263. }
  264. .ant-image-preview-wrap {
  265. z-index: 10001 !important;
  266. }
  267. .ant-image-preview-operations-wrapper {
  268. z-index: 10002 !important;
  269. }
  270. // .ant-notification-notice {
  271. // max-height: 500px !important;
  272. // overflow-y: auto !important;
  273. // }
  274. // 热点页面打开透明的变化
  275. // #Y1cathet {
  276. // animation: Y1cathet 0.5s linear forwards;
  277. // }
  278. // @keyframes Y1cathet {
  279. // 0% {
  280. // right: -700px;
  281. // }
  282. // 100% {
  283. // right: 0;
  284. // }
  285. // }
  286. .Y2xia {
  287. display: block;
  288. width: 100%;
  289. height: 100%;
  290. text-align: center;
  291. }
  292. // 打开侧边栏高亮
  293. .D1GtNum {
  294. cursor: pointer;
  295. text-decoration: underline;
  296. // &:hover {
  297. // color: var(--themeColor);
  298. // }
  299. }
  300. .D1GtNumAc {
  301. color: var(--themeColor);
  302. }
  303. // 侧边栏藏品详情
  304. .Y1info {
  305. width: 100%;
  306. margin-top: 5px;
  307. height: calc(100% - 35px);
  308. font-size: 16px;
  309. padding: 15px;
  310. overflow-y: auto;
  311. .Y1tit {
  312. font-size: 18px;
  313. padding-left: 15px;
  314. font-weight: 700;
  315. position: relative;
  316. margin-bottom: 15px;
  317. color: var(--themeColor);
  318. &::before {
  319. position: absolute;
  320. left: 0px;
  321. top: 50%;
  322. transform: translateY(-50%);
  323. content: '';
  324. width: 6px;
  325. height: 18px;
  326. background-color: var(--themeColor);
  327. }
  328. }
  329. .Y1row {
  330. width: 100%;
  331. display: flex;
  332. margin-bottom: 10px;
  333. .Y1rowll {
  334. width: 120px;
  335. text-align: right;
  336. font-weight: 700;
  337. }
  338. .Y1rowrr {
  339. width: calc(100% - 120px);
  340. word-wrap: break-word;
  341. max-height: 130px;
  342. overflow-y: auto;
  343. white-space: pre-wrap;
  344. }
  345. }
  346. // ------------------------档案信息
  347. .Y1rowZ {
  348. .Y1z1 {
  349. margin-bottom: 20px;
  350. display: flex;
  351. justify-content: space-between;
  352. .Y1rowZll {
  353. width: 48%;
  354. display: flex;
  355. flex-direction: column;
  356. justify-content: center;
  357. }
  358. .Y1rowZrr {
  359. display: flex;
  360. justify-content: center;
  361. align-items: center;
  362. width: 48%;
  363. }
  364. }
  365. .Y1z2 {
  366. margin-bottom: 20px;
  367. .y1z2_1 {
  368. display: flex;
  369. flex-wrap: wrap;
  370. justify-content: space-between;
  371. width: 100%;
  372. .y1z2_1row1 {
  373. margin-bottom: 10px;
  374. width: 48%;
  375. display: flex;
  376. .y1z2_1r11 {
  377. width: 130px;
  378. text-align: right;
  379. font-weight: 700;
  380. }
  381. // .y1z2_1r11long {
  382. // width: 132px;
  383. // position: relative;
  384. // left: -6px;
  385. // }
  386. .y1z2_1r12 {
  387. width: calc(100% - 130px);
  388. word-wrap: break-word;
  389. max-height: 130px;
  390. overflow-y: auto;
  391. white-space: pre-wrap;
  392. }
  393. }
  394. .y1z2_1row1Full {
  395. width: 100%;
  396. .y1z2_1r12 {
  397. max-height: 1000px;
  398. }
  399. }
  400. }
  401. }
  402. }
  403. // ------------------------库存信息
  404. .Y22com {
  405. .Y22sta {
  406. font-weight: 700;
  407. font-size: 18px;
  408. margin-bottom: 20px;
  409. }
  410. .Y22No {
  411. font-size: 16px;
  412. letter-spacing: 4px;
  413. height: 200px;
  414. display: flex;
  415. align-items: center;
  416. }
  417. .Y22Info {
  418. width: 800px;
  419. border: 1px solid #ccc;
  420. border-bottom: none;
  421. .Y22row {
  422. display: flex;
  423. align-items: center;
  424. & > div {
  425. width: 200px;
  426. text-align: center;
  427. padding: 8px 4px;
  428. border-bottom: 1px solid #ccc;
  429. &:nth-of-type(2) {
  430. width: 600px;
  431. }
  432. }
  433. }
  434. .Y22row1 {
  435. background-color: #eaeaea;
  436. }
  437. .Y22rowNo {
  438. height: 40px;
  439. line-height: 40px;
  440. text-align: center;
  441. border-bottom: 1px solid #ccc;
  442. }
  443. }
  444. }
  445. // ------------------------藏品附件
  446. .Y33com {
  447. .Y33top {
  448. margin-bottom: 20px;
  449. display: flex;
  450. justify-content: space-around;
  451. .ant-btn {
  452. margin-right: 15px;
  453. }
  454. }
  455. .Y33no {
  456. font-size: 16px;
  457. letter-spacing: 4px;
  458. height: 200px;
  459. display: flex;
  460. align-items: center;
  461. justify-content: center;
  462. }
  463. }
  464. }
  465. // 点击藏品编辑
  466. .C22revampBox {
  467. position: fixed;
  468. top: 0;
  469. left: 0;
  470. width: 100%;
  471. height: 100%;
  472. z-index: 100;
  473. padding: 30px;
  474. background-color: rgba(0, 0, 0, 0.6);
  475. & > div {
  476. position: relative;
  477. width: 100%;
  478. height: 100%;
  479. }
  480. }