index.less 6.8 KB

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