index.less 7.7 KB

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