index.less 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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-data-table-th__title-wrapper {
  137. &::after {
  138. content: '';
  139. width: 1px;
  140. height: 22px;
  141. background: #ebebeb;
  142. &:nth-last-child(1) {
  143. display: none;
  144. }
  145. }
  146. }
  147. .n-data-table-th--last {
  148. .n-data-table-th__title-wrapper {
  149. &::after {
  150. content: '';
  151. width: 0px;
  152. height: 22px;
  153. background: #ebebeb;
  154. }
  155. }
  156. }
  157. // 给弹窗设置标题的基础样式
  158. .modalTitle {
  159. border-radius: 16px;
  160. // overflow: hidden;
  161. &.background {
  162. .n-card-header {
  163. background: #f5f6fa;
  164. font-weight: 600 !important;
  165. overflow: hidden;
  166. }
  167. }
  168. .n-card-header {
  169. border-radius: 16px 16px 0 0;
  170. position: relative;
  171. padding: 20px 18px;
  172. text-align: center;
  173. background: #fff;
  174. font-size: 22px;
  175. font-weight: 600;
  176. color: #131415;
  177. line-height: 30px;
  178. }
  179. .n-card-header__close {
  180. position: absolute;
  181. right: 18px;
  182. z-index: 99;
  183. }
  184. .n-card__content {
  185. padding: 0;
  186. }
  187. }
  188. .favitor-enter-active,
  189. .favitor-leave-active {
  190. // transition: all 0.5s cubic-bezier(0.18, 0.89, 0, 1.29);
  191. transition: all .3s ease-in-out;
  192. }
  193. .favitor-enter-from,
  194. .favitor-leave-to {
  195. transform: scale(1.4);
  196. opacity: 0.1;
  197. }
  198. @font-face {
  199. font-family: 'DINA';
  200. src: url('../common/DIN_Alternate_Bold.ttf');
  201. }
  202. :root {
  203. --product-color: #3044ca;
  204. }
  205. // .n-button--primary-type {
  206. // color: #1677ff !important;
  207. // }
  208. ::-webkit-input-placeholder {
  209. /* WebKit browsers */
  210. color: rgba(0, 0, 0, 0.4);
  211. }
  212. :-moz-placeholder {
  213. /* Mozilla Firefox 4 to 18 */
  214. color: rgba(0, 0, 0, 0.4);
  215. }
  216. ::-moz-placeholder {
  217. /* Mozilla Firefox 19+ */
  218. color: rgba(0, 0, 0, 0.4);
  219. }
  220. :-ms-input-placeholder {
  221. /* Internet Explorer 10+ */
  222. color: rgba(0, 0, 0, 0.4);
  223. }
  224. @keyframes TadaNum {
  225. 0% {
  226. transform: rotate(0);
  227. transform: rotate(0);
  228. }
  229. 10%,
  230. 20% {
  231. transform: rotate(-6deg);
  232. transform: rotate(-6deg);
  233. }
  234. 30%,
  235. 50%,
  236. 70%,
  237. 90% {
  238. transform: rotate(6deg);
  239. transform: rotate(6deg);
  240. }
  241. 40%,
  242. 60%,
  243. 80% {
  244. transform: rotate(-6deg);
  245. transform: rotate(-6deg);
  246. }
  247. 100% {
  248. transform: rotate(0);
  249. transform: rotate(0);
  250. }
  251. }
  252. /* 列表动画 start */
  253. .list-move,
  254. /* 对移动中的元素应用的过渡 */
  255. .list-enter-active,
  256. .list-leave-active {
  257. transition: all 0.5s ease;
  258. }
  259. .list-enter-from,
  260. .list-leave-to {
  261. opacity: 0;
  262. transform: translateX(30px);
  263. }
  264. // 拖动时
  265. .sortable-ghost {
  266. opacity: 0.7;
  267. }
  268. .flip-list-move {
  269. transition: transform 0.5s;
  270. }
  271. .no-move {
  272. transition: transform 0s;
  273. }
  274. .n-data-table .n-data-table-th {
  275. background: #F7F7F8;
  276. color: rgba(113, 113, 114, 1) !important;
  277. border: none;
  278. min-height: 54px;
  279. font-size: max(15px, 12Px);
  280. }
  281. .n-data-table.n-data-table--bordered .n-data-table-wrapper {
  282. border: none;
  283. }
  284. .n-data-table-tr .n-data-table-td .n-button__content,
  285. .n-data-table .n-data-table-td {
  286. font-weight: bold;
  287. font-size: max(15px, 12Px);
  288. }
  289. .n-tooltip {
  290. --n-padding: 6px 12px !important;
  291. --n-border-radius: 6px !important;
  292. .n-popover__content {
  293. font-size: max(14px, 12Px);
  294. }
  295. }
  296. .n-base-close:not(.n-base-close--disabled):active::before,
  297. .n-base-close:not(.n-base-close--disabled):focus::before {
  298. background-color: transparent !important;
  299. }
  300. .body .n-modal-mask {
  301. background-color: transparent !important;
  302. }
  303. // 设置图片弹窗工具预览
  304. .n-image-preview-toolbar .n-base-icon {
  305. margin: 0 8px;
  306. padding: 0;
  307. }
  308. .n-breadcrumb .n-breadcrumb-item {
  309. font-size: max(16px, 12Px) !important;
  310. }
  311. .n-base-selection,
  312. .n-input,
  313. .n-input-group-label {
  314. --n-height: max(40px, 36Px) !important;
  315. --n-border-radius: 8px !important;
  316. font-size: max(15px, 13Px) !important;
  317. }
  318. .n-button {
  319. font-size: max(18px, 13Px);
  320. --n-height: max(40px, 36Px) !important;
  321. }
  322. .n-base-selection-input,
  323. .n-input .n-input__input-el,
  324. .n-input .n-input__textarea-el {
  325. font-size: max(15px, 13Px) !important;
  326. }
  327. .n-base-selection .n-base-selection-label .n-base-selection-label__render-label {
  328. font-size: max(15px, 13Px) !important;
  329. }
  330. .n-select-menu .n-button {
  331. --n-height: 28px !important;
  332. }
  333. .n-form-item-label__text {
  334. font-size: max(15px, 13Px);
  335. }
  336. .n-date-panel {
  337. .n-date-panel-actions__suffix,
  338. .n-time-picker-panel {
  339. .n-button {
  340. font-size: 12Px;
  341. height: 32px !important;
  342. line-height: 32px;
  343. padding: 0 13px !important;
  344. border-radius: 6px;
  345. }
  346. }
  347. }