index.less 6.9 KB

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