index.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. border: 0;
  5. box-sizing: border-box;
  6. }
  7. /* 移除默认的 focus-visible 样式 */
  8. :focus-visible {
  9. outline: none;
  10. }
  11. #app {
  12. -webkit-font-smoothing: antialiased;
  13. -moz-osx-font-smoothing: grayscale;
  14. color: #333;
  15. min-height: 100vh;
  16. }
  17. body {
  18. user-select: none;
  19. background-color: #f1f5ff;
  20. overflow: hidden;
  21. --layoutTopHeight: 64px;
  22. }
  23. body > .n-drawer-container-relative {
  24. position: relative !important;
  25. }
  26. // 搜索框前面放大镜样式重置
  27. .icon-search-input {
  28. display: inline-block;
  29. width: max(16px, 14Px);
  30. height: max(16px, 14Px);
  31. background: url('../common/images/icon_search.png') no-repeat center;
  32. background-size: contain;
  33. }
  34. .n-input:not(.n-input--disabled).n-input--focus {
  35. .icon-search-input {
  36. background: url('../common/images/icon_searchActive.png') no-repeat center;
  37. background-size: contain;
  38. }
  39. }
  40. // 初始化弹窗关闭的默认状态
  41. // .n-base-close:not(.n-base-close--disabled):focus::before {
  42. // background-color: transparent;
  43. // }
  44. .n-base-select-menu .n-base-select-option {
  45. font-size: max(15px, 12Px);
  46. }
  47. .n-popselect-menu {
  48. --n-option-height: 38px !important;
  49. }
  50. @font-face {
  51. font-family: 'dotfont';
  52. /* Project id */
  53. src: url('../common/text-security-disc.woff') format('woff');
  54. }
  55. .cr-ellipsis {
  56. overflow: hidden;
  57. white-space: nowrap;
  58. text-overflow: ellipsis;
  59. }
  60. .fade-enter-active,
  61. .fade-leave-active {
  62. transition: opacity 0.5s ease;
  63. }
  64. .fade-enter-from,
  65. .fade-leave-to {
  66. opacity: 0;
  67. }
  68. ::-webkit-scrollbar {
  69. width: 8px;
  70. height: 12px;
  71. background-color: #fff;
  72. }
  73. ::-webkit-scrollbar-thumb {
  74. display: block;
  75. min-height: 12px;
  76. min-width: 8px;
  77. border-radius: 6px;
  78. background-color: rgb(217, 217, 217);
  79. }
  80. ::-webkit-scrollbar-thumb:hover {
  81. display: block;
  82. min-height: 12px;
  83. min-width: 8px;
  84. border-radius: 6px;
  85. background-color: rgb(159, 159, 159);
  86. }
  87. .searchBtn {
  88. // width: 90px;
  89. // height: 43px;
  90. background: #198cfe;
  91. border-radius: 8px;
  92. // line-height: 41px;
  93. font-weight: 600 !important;
  94. // font-size: max(18px, 13Px);
  95. }
  96. .resetBtn {
  97. // width: 90px;
  98. border-radius: 8px;
  99. font-weight: 600 !important;
  100. // font-size: max(18px, 13Px);
  101. }
  102. .resetBtn,
  103. .searchBtn {
  104. --n-padding: 0 28px !important;
  105. }
  106. .searchDate,
  107. .searchDateDefault {
  108. font-size: max(18px, 13Px);
  109. --n-height: max(40px, 36Px) !important;
  110. --n-padding: 0 28px !important;
  111. background: linear-gradient(312deg, #1b7af8 0%, #3cbbff 100%);
  112. border-radius: 8px;
  113. // line-height: 41px;
  114. font-weight: 600 !important;
  115. .n-button__state-border,
  116. .n-button__border {
  117. border: none !important;
  118. }
  119. }
  120. .searchDateDefault {
  121. background: #f1f2f6;
  122. color: #1e2022;
  123. }
  124. // .n-data-table {
  125. // border-radius: 10px 10px 0 0;
  126. // overflow: hidden;
  127. // }
  128. // .n-data-table-thead {
  129. // height: 54px;
  130. // line-height: 54px;
  131. // }
  132. // .n-data-table-th {
  133. // padding: 0 20px !important;
  134. // background-color: #f7f7f8 !important;
  135. // color: rgba(0, 0, 0, 0.88) !important;
  136. // .n-data-table-th__title {
  137. // font-weight: 600;
  138. // }
  139. // }
  140. // .n-data-table-tr {
  141. // .n-data-table-td {
  142. // padding-left: 20px;
  143. // color: #333333;
  144. // font-size: 14px;
  145. // .n-button__content {
  146. // font-size: 14px;
  147. // color: #1677ff;
  148. // }
  149. // }
  150. // }
  151. :global {
  152. .n-form-item .n-form-item-label {
  153. color: #777;
  154. }
  155. .n-button {
  156. border-radius: 8px;
  157. }
  158. }
  159. .n-cascader-submenu-wrapper {
  160. .n-scrollbar > .n-scrollbar-rail.n-scrollbar-rail--vertical,
  161. .n-scrollbar + .n-scrollbar-rail.n-scrollbar-rail--vertical {
  162. right: 2px;
  163. }
  164. .n-cascader-option__suffix {
  165. padding-right: 12px !important;
  166. }
  167. }
  168. .n-data-table-th__title-wrapper {
  169. // &::after {
  170. // content: '';
  171. // width: 1px;
  172. // height: 22px;
  173. // background: #ebebeb;
  174. // &:nth-last-child(1) {
  175. // display: none;
  176. // }
  177. // }
  178. }
  179. .n-data-table-th--last {
  180. .n-data-table-th__title-wrapper {
  181. // &::after {
  182. // content: '';
  183. // width: 0px;
  184. // height: 22px;
  185. // background: #ebebeb;
  186. // }
  187. }
  188. }
  189. // 给弹窗设置标题的基础样式
  190. .modalTitle {
  191. border-radius: 16px;
  192. // overflow: hidden;
  193. &.background {
  194. .n-card-header {
  195. background: #f5f6fa;
  196. font-weight: 600 !important;
  197. overflow: hidden;
  198. }
  199. }
  200. .n-card-header {
  201. border-radius: 16px 16px 0 0;
  202. position: relative;
  203. padding: 20px 18px;
  204. text-align: center;
  205. background: #fff;
  206. font-size: 22px;
  207. font-weight: 600;
  208. color: #131415;
  209. line-height: 30px;
  210. }
  211. .n-card-header__close {
  212. position: absolute;
  213. right: 18px;
  214. z-index: 99;
  215. }
  216. .n-card__content {
  217. padding: 0;
  218. }
  219. }
  220. .favitor-enter-active,
  221. .favitor-leave-active {
  222. // transition: all 0.5s cubic-bezier(0.18, 0.89, 0, 1.29);
  223. transition: all 0.3s ease-in-out;
  224. }
  225. .favitor-enter-from,
  226. .favitor-leave-to {
  227. transform: scale(1.4);
  228. opacity: 0.1;
  229. }
  230. @font-face {
  231. font-family: 'DINA';
  232. src: url('../common/DIN_Alternate_Bold.ttf');
  233. }
  234. :root {
  235. --product-color: #3044ca;
  236. }
  237. // .n-button--primary-type {
  238. // color: #1677ff !important;
  239. // }
  240. ::-webkit-input-placeholder {
  241. /* WebKit browsers */
  242. color: rgba(0, 0, 0, 0.4);
  243. }
  244. :-moz-placeholder {
  245. /* Mozilla Firefox 4 to 18 */
  246. color: rgba(0, 0, 0, 0.4);
  247. }
  248. ::-moz-placeholder {
  249. /* Mozilla Firefox 19+ */
  250. color: rgba(0, 0, 0, 0.4);
  251. }
  252. :-ms-input-placeholder {
  253. /* Internet Explorer 10+ */
  254. color: rgba(0, 0, 0, 0.4);
  255. }
  256. @keyframes TadaNum {
  257. 0% {
  258. transform: rotate(0);
  259. transform: rotate(0);
  260. }
  261. 10%,
  262. 20% {
  263. transform: rotate(-6deg);
  264. transform: rotate(-6deg);
  265. }
  266. 30%,
  267. 50%,
  268. 70%,
  269. 90% {
  270. transform: rotate(6deg);
  271. transform: rotate(6deg);
  272. }
  273. 40%,
  274. 60%,
  275. 80% {
  276. transform: rotate(-6deg);
  277. transform: rotate(-6deg);
  278. }
  279. 100% {
  280. transform: rotate(0);
  281. transform: rotate(0);
  282. }
  283. }
  284. /* 列表动画 start */
  285. .list-move,
  286. /* 对移动中的元素应用的过渡 */
  287. .list-enter-active,
  288. .list-leave-active {
  289. transition: all 0.5s ease;
  290. }
  291. .list-enter-from,
  292. .list-leave-to {
  293. opacity: 0;
  294. transform: translateX(30px);
  295. }
  296. // 拖动时
  297. .sortable-ghost {
  298. opacity: 0.7;
  299. }
  300. .flip-list-move {
  301. transition: transform 0.5s;
  302. }
  303. .no-move {
  304. transition: transform 0s;
  305. }
  306. .n-data-table .n-data-table-th {
  307. background: #f7f7f8;
  308. color: rgba(113, 113, 114, 1) !important;
  309. border: none;
  310. min-height: 54px;
  311. font-size: max(15px, 12Px);
  312. }
  313. .n-data-table.n-data-table--bordered .n-data-table-wrapper {
  314. border: none;
  315. }
  316. .n-data-table-tr .n-data-table-td .n-button__content,
  317. .n-data-table .n-data-table-td {
  318. font-weight: bold;
  319. font-size: max(15px, 12Px);
  320. }
  321. .n-tooltip {
  322. --n-padding: 6px 12px !important;
  323. --n-border-radius: 6px !important;
  324. .n-popover__content {
  325. font-size: max(14px, 12Px);
  326. }
  327. }
  328. .n-base-close:not(.n-base-close--disabled):active::before,
  329. .n-base-close:not(.n-base-close--disabled):focus::before {
  330. background-color: transparent !important;
  331. }
  332. .body .n-modal-mask {
  333. background-color: transparent !important;
  334. }
  335. .n-modal-mask {
  336. background-color: rgba(0, 0, 0, 0.6);
  337. }
  338. // 设置图片弹窗工具预览
  339. .n-image-preview-toolbar .n-base-icon {
  340. margin: 0 8px;
  341. padding: 0;
  342. }
  343. .n-breadcrumb .n-breadcrumb-item {
  344. font-size: max(16px, 12Px) !important;
  345. }
  346. .n-base-selection,
  347. .n-input,
  348. .n-input-group-label {
  349. --n-height: max(40px, 36Px) !important;
  350. --n-border-radius: 8px !important;
  351. font-size: max(15px, 13Px) !important;
  352. }
  353. .n-button {
  354. font-size: max(18px, 13Px);
  355. --n-height: max(40px, 36Px) !important;
  356. }
  357. .n-base-selection-input,
  358. .n-input .n-input__input-el,
  359. .n-input .n-input__textarea-el {
  360. font-size: max(15px, 13Px) !important;
  361. }
  362. .n-base-selection
  363. .n-base-selection-label
  364. .n-base-selection-label__render-label {
  365. font-size: max(15px, 13Px) !important;
  366. }
  367. .n-select-menu .n-button {
  368. --n-height: 28px !important;
  369. }
  370. .n-form-item-label__text {
  371. font-size: max(15px, 13Px);
  372. }
  373. .n-date-panel {
  374. .n-date-panel-actions__suffix,
  375. .n-time-picker-panel {
  376. .n-button {
  377. font-size: 12px;
  378. height: 32px !important;
  379. line-height: 32px;
  380. padding: 0 13px !important;
  381. border-radius: 6px;
  382. }
  383. }
  384. }
  385. .only-child-select {
  386. all: revert;
  387. }
  388. .html-to-dom {
  389. div,
  390. span,
  391. applet,
  392. object,
  393. iframe,
  394. h1,
  395. h2,
  396. h3,
  397. h4,
  398. h5,
  399. h6,
  400. p,
  401. blockquote,
  402. pre,
  403. a,
  404. abbr,
  405. acronym,
  406. address,
  407. big,
  408. cite,
  409. code,
  410. del,
  411. dfn,
  412. em,
  413. img,
  414. ins,
  415. kbd,
  416. q,
  417. s,
  418. samp,
  419. small,
  420. strike,
  421. strong,
  422. sub,
  423. sup,
  424. tt,
  425. var,
  426. b,
  427. u,
  428. i,
  429. center,
  430. dl,
  431. dt,
  432. dd,
  433. ol,
  434. ul,
  435. li,
  436. fieldset,
  437. form,
  438. label,
  439. legend,
  440. table,
  441. caption,
  442. tbody,
  443. tfoot,
  444. thead,
  445. tr,
  446. th,
  447. td,
  448. article,
  449. aside,
  450. canvas,
  451. details,
  452. embed,
  453. figure,
  454. figcaption,
  455. footer,
  456. header,
  457. hgroup,
  458. menu,
  459. nav,
  460. output,
  461. ruby,
  462. section,
  463. summary,
  464. time,
  465. mark,
  466. audio,
  467. video,
  468. hr {
  469. all: revert;
  470. }
  471. hr {
  472. border-top: 1px solid #d2d2d2;
  473. }
  474. }
  475. .cardPreviewGuide {
  476. width: 920px;
  477. overflow: hidden;
  478. :global {
  479. .n-card__content {
  480. height: 517px;
  481. overflow: hidden;
  482. }
  483. .n-card-header__main {
  484. max-width: 60%;
  485. margin: 0 auto;
  486. white-space: nowrap;
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. }
  490. }
  491. }
  492. .popoverClassF1 {
  493. border-radius: 12Px !important;
  494. width: 320Px !important;
  495. max-width: 320Px !important;
  496. .driver-popover-close-btn {
  497. font-size: 22Px;
  498. height: auto;
  499. margin-right: 5Px;
  500. font-size: 400 !important;
  501. }
  502. .driver-popover-arrow {
  503. left: 50%;
  504. margin-left: -5px;
  505. right: revert !important;
  506. }
  507. .driver-popover-title {
  508. font-size: 16Px;
  509. }
  510. .driver-popover-description {
  511. padding-top: 8Px;
  512. font-size: 14Px;
  513. color: #777777;
  514. }
  515. .driver-popover-next-btn {
  516. background: linear-gradient(312deg, #1b7af8 0%, #3cbbff 100%);
  517. border-radius: 6Px;
  518. font-weight: 600;
  519. font-size: 14Px;
  520. color: #FFFFFF;
  521. padding: 6Px 12Px;
  522. text-shadow: none !important;
  523. border: 0 !important;
  524. }
  525. }