index.less 5.3 KB

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