index.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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. }
  22. body>.n-drawer-container-relative {
  23. position: relative !important;
  24. }
  25. // 搜索框前面放大镜样式重置
  26. .icon-search-input {
  27. display: inline-block;
  28. width: max(16px, 14Px);
  29. height: max(16px, 14Px);
  30. background: url('../common/images/icon_search.png') no-repeat center;
  31. background-size: contain;
  32. }
  33. .n-input:not(.n-input--disabled).n-input--focus {
  34. .icon-search-input {
  35. background: url('../common/images/icon_searchActive.png') no-repeat center;
  36. background-size: contain;
  37. }
  38. }
  39. // 初始化弹窗关闭的默认状态
  40. // .n-base-close:not(.n-base-close--disabled):focus::before {
  41. // background-color: transparent;
  42. // }
  43. .n-base-select-menu .n-base-select-option {
  44. font-size: max(15px, 12Px);
  45. }
  46. .n-popselect-menu {
  47. --n-option-height: 38Px !important;
  48. }
  49. @font-face {
  50. font-family: 'dotfont';
  51. /* Project id */
  52. src: url('../common/text-security-disc.woff') format('woff');
  53. }
  54. .cr-ellipsis {
  55. overflow: hidden;
  56. white-space: nowrap;
  57. text-overflow: ellipsis;
  58. }
  59. .fade-enter-active,
  60. .fade-leave-active {
  61. transition: opacity 0.5s ease;
  62. }
  63. .fade-enter-from,
  64. .fade-leave-to {
  65. opacity: 0;
  66. }
  67. ::-webkit-scrollbar {
  68. width: 8px;
  69. height: 12px;
  70. background-color: #fff;
  71. }
  72. ::-webkit-scrollbar-thumb {
  73. display: block;
  74. min-height: 12px;
  75. min-width: 8px;
  76. border-radius: 6px;
  77. background-color: rgb(217, 217, 217);
  78. }
  79. ::-webkit-scrollbar-thumb:hover {
  80. display: block;
  81. min-height: 12px;
  82. min-width: 8px;
  83. border-radius: 6px;
  84. background-color: rgb(159, 159, 159);
  85. }
  86. .searchBtn {
  87. // width: 90px;
  88. // height: 43px;
  89. background: #198cfe;
  90. border-radius: 8px;
  91. // line-height: 41px;
  92. font-weight: 600 !important;
  93. // font-size: max(18px, 13Px);
  94. }
  95. .resetBtn {
  96. // width: 90px;
  97. border-radius: 8px;
  98. font-weight: 600 !important;
  99. // font-size: max(18px, 13Px);
  100. }
  101. .resetBtn,
  102. .searchBtn {
  103. --n-padding: 0 28px !important;
  104. }
  105. .searchDate, .searchDateDefault {
  106. font-size: max(18px, 13Px);
  107. --n-height: max(40px, 36Px) !important;
  108. --n-padding: 0 28px !important;
  109. background: linear-gradient( 312deg, #1B7AF8 0%, #3CBBFF 100%);
  110. border-radius: 8px;
  111. // line-height: 41px;
  112. font-weight: 600 !important;
  113. .n-button__state-border, .n-button__border {
  114. border: none !important;
  115. }
  116. }
  117. .searchDateDefault {
  118. background: #F1F2F6;
  119. color: #1E2022;
  120. }
  121. // .n-data-table {
  122. // border-radius: 10px 10px 0 0;
  123. // overflow: hidden;
  124. // }
  125. // .n-data-table-thead {
  126. // height: 54px;
  127. // line-height: 54px;
  128. // }
  129. // .n-data-table-th {
  130. // padding: 0 20px !important;
  131. // background-color: #f7f7f8 !important;
  132. // color: rgba(0, 0, 0, 0.88) !important;
  133. // .n-data-table-th__title {
  134. // font-weight: 600;
  135. // }
  136. // }
  137. // .n-data-table-tr {
  138. // .n-data-table-td {
  139. // padding-left: 20px;
  140. // color: #333333;
  141. // font-size: 14px;
  142. // .n-button__content {
  143. // font-size: 14px;
  144. // color: #1677ff;
  145. // }
  146. // }
  147. // }
  148. :global {
  149. .n-form-item .n-form-item-label {
  150. color: #777;
  151. }
  152. .n-button {
  153. border-radius: 8px;
  154. }
  155. }
  156. .n-cascader-submenu-wrapper {
  157. .n-scrollbar>.n-scrollbar-rail.n-scrollbar-rail--vertical,
  158. .n-scrollbar+.n-scrollbar-rail.n-scrollbar-rail--vertical {
  159. right: 2Px;
  160. }
  161. .n-cascader-option__suffix {
  162. padding-right: 12Px !important;
  163. }
  164. }
  165. .n-data-table-th__title-wrapper {
  166. // &::after {
  167. // content: '';
  168. // width: 1px;
  169. // height: 22px;
  170. // background: #ebebeb;
  171. // &:nth-last-child(1) {
  172. // display: none;
  173. // }
  174. // }
  175. }
  176. .n-data-table-th--last {
  177. .n-data-table-th__title-wrapper {
  178. // &::after {
  179. // content: '';
  180. // width: 0px;
  181. // height: 22px;
  182. // background: #ebebeb;
  183. // }
  184. }
  185. }
  186. // 给弹窗设置标题的基础样式
  187. .modalTitle {
  188. border-radius: 16px;
  189. // overflow: hidden;
  190. &.background {
  191. .n-card-header {
  192. background: #f5f6fa;
  193. font-weight: 600 !important;
  194. overflow: hidden;
  195. }
  196. }
  197. .n-card-header {
  198. border-radius: 16px 16px 0 0;
  199. position: relative;
  200. padding: 20px 18px;
  201. text-align: center;
  202. background: #fff;
  203. font-size: 22px;
  204. font-weight: 600;
  205. color: #131415;
  206. line-height: 30px;
  207. }
  208. .n-card-header__close {
  209. position: absolute;
  210. right: 18px;
  211. z-index: 99;
  212. }
  213. .n-card__content {
  214. padding: 0;
  215. }
  216. }
  217. .favitor-enter-active,
  218. .favitor-leave-active {
  219. // transition: all 0.5s cubic-bezier(0.18, 0.89, 0, 1.29);
  220. transition: all .3s ease-in-out;
  221. }
  222. .favitor-enter-from,
  223. .favitor-leave-to {
  224. transform: scale(1.4);
  225. opacity: 0.1;
  226. }
  227. @font-face {
  228. font-family: 'DINA';
  229. src: url('../common/DIN_Alternate_Bold.ttf');
  230. }
  231. :root {
  232. --product-color: #3044ca;
  233. }
  234. // .n-button--primary-type {
  235. // color: #1677ff !important;
  236. // }
  237. ::-webkit-input-placeholder {
  238. /* WebKit browsers */
  239. color: rgba(0, 0, 0, 0.4);
  240. }
  241. :-moz-placeholder {
  242. /* Mozilla Firefox 4 to 18 */
  243. color: rgba(0, 0, 0, 0.4);
  244. }
  245. ::-moz-placeholder {
  246. /* Mozilla Firefox 19+ */
  247. color: rgba(0, 0, 0, 0.4);
  248. }
  249. :-ms-input-placeholder {
  250. /* Internet Explorer 10+ */
  251. color: rgba(0, 0, 0, 0.4);
  252. }
  253. @keyframes TadaNum {
  254. 0% {
  255. transform: rotate(0);
  256. transform: rotate(0);
  257. }
  258. 10%,
  259. 20% {
  260. transform: rotate(-6deg);
  261. transform: rotate(-6deg);
  262. }
  263. 30%,
  264. 50%,
  265. 70%,
  266. 90% {
  267. transform: rotate(6deg);
  268. transform: rotate(6deg);
  269. }
  270. 40%,
  271. 60%,
  272. 80% {
  273. transform: rotate(-6deg);
  274. transform: rotate(-6deg);
  275. }
  276. 100% {
  277. transform: rotate(0);
  278. transform: rotate(0);
  279. }
  280. }
  281. /* 列表动画 start */
  282. .list-move,
  283. /* 对移动中的元素应用的过渡 */
  284. .list-enter-active,
  285. .list-leave-active {
  286. transition: all 0.5s ease;
  287. }
  288. .list-enter-from,
  289. .list-leave-to {
  290. opacity: 0;
  291. transform: translateX(30px);
  292. }
  293. // 拖动时
  294. .sortable-ghost {
  295. opacity: 0.7;
  296. }
  297. .flip-list-move {
  298. transition: transform 0.5s;
  299. }
  300. .no-move {
  301. transition: transform 0s;
  302. }
  303. .n-data-table .n-data-table-th {
  304. background: #F7F7F8;
  305. color: rgba(113, 113, 114, 1) !important;
  306. border: none;
  307. min-height: 54px;
  308. font-size: max(15px, 12Px);
  309. }
  310. .n-data-table.n-data-table--bordered .n-data-table-wrapper {
  311. border: none;
  312. }
  313. .n-data-table-tr .n-data-table-td .n-button__content,
  314. .n-data-table .n-data-table-td {
  315. font-weight: bold;
  316. font-size: max(15px, 12Px);
  317. }
  318. .n-tooltip {
  319. --n-padding: 6px 12px !important;
  320. --n-border-radius: 6px !important;
  321. .n-popover__content {
  322. font-size: max(14px, 12Px);
  323. }
  324. }
  325. .n-base-close:not(.n-base-close--disabled):active::before,
  326. .n-base-close:not(.n-base-close--disabled):focus::before {
  327. background-color: transparent !important;
  328. }
  329. .body .n-modal-mask {
  330. background-color: transparent !important;
  331. }
  332. .n-modal-mask{
  333. background-color: rgba(0, 0, 0, .6);
  334. }
  335. // 设置图片弹窗工具预览
  336. .n-image-preview-toolbar .n-base-icon {
  337. margin: 0 8px;
  338. padding: 0;
  339. }
  340. .n-breadcrumb .n-breadcrumb-item {
  341. font-size: max(16px, 12Px) !important;
  342. }
  343. .n-base-selection,
  344. .n-input,
  345. .n-input-group-label {
  346. --n-height: max(40px, 36Px) !important;
  347. --n-border-radius: 8px !important;
  348. font-size: max(15px, 13Px) !important;
  349. }
  350. .n-button {
  351. font-size: max(18px, 13Px);
  352. --n-height: max(40px, 36Px) !important;
  353. }
  354. .n-base-selection-input,
  355. .n-input .n-input__input-el,
  356. .n-input .n-input__textarea-el {
  357. font-size: max(15px, 13Px) !important;
  358. }
  359. .n-base-selection .n-base-selection-label .n-base-selection-label__render-label {
  360. font-size: max(15px, 13Px) !important;
  361. }
  362. .n-select-menu .n-button {
  363. --n-height: 28px !important;
  364. }
  365. .n-form-item-label__text {
  366. font-size: max(15px, 13Px);
  367. }
  368. .n-date-panel {
  369. .n-date-panel-actions__suffix,
  370. .n-time-picker-panel {
  371. .n-button {
  372. font-size: 12Px;
  373. height: 32px !important;
  374. line-height: 32px;
  375. padding: 0 13px !important;
  376. border-radius: 6px;
  377. }
  378. }
  379. }
  380. .only-child-select {
  381. all: revert;
  382. }