index.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. .n-data-table-th__title-wrapper {
  120. &::after {
  121. content: '';
  122. width: 1px;
  123. height: 22px;
  124. background: #ebebeb;
  125. &:nth-last-child(1) {
  126. display: none;
  127. }
  128. }
  129. }
  130. .n-data-table-th--last {
  131. .n-data-table-th__title-wrapper {
  132. &::after {
  133. content: '';
  134. width: 0px;
  135. height: 22px;
  136. background: #ebebeb;
  137. }
  138. }
  139. }
  140. // 给弹窗设置标题的基础样式
  141. .modalTitle {
  142. border-radius: 16px;
  143. // overflow: hidden;
  144. &.background {
  145. .n-card-header {
  146. background: #f5f6fa;
  147. overflow: hidden;
  148. }
  149. }
  150. .n-card-header {
  151. border-radius: 16px 16px 0 0;
  152. position: relative;
  153. padding: 20px 18px;
  154. text-align: center;
  155. background: #fff;
  156. font-size: 22px;
  157. font-weight: 600;
  158. color: #131415;
  159. line-height: 30px;
  160. }
  161. .n-card-header__close {
  162. position: absolute;
  163. right: 18px;
  164. z-index: 99;
  165. }
  166. .n-card__content {
  167. padding: 0;
  168. }
  169. }
  170. .favitor-enter-active,
  171. .favitor-leave-active {
  172. transition: all 0.5s cubic-bezier(0.18, 0.89, 0, 1.29);
  173. }
  174. .favitor-enter-from,
  175. .favitor-leave-to {
  176. transform: scale(1.4);
  177. opacity: 0.1;
  178. }
  179. @font-face {
  180. font-family: 'DINA';
  181. src: url('../common/DIN_Alternate_Bold.ttf');
  182. }
  183. :root {
  184. --product-color: #3044ca;
  185. }
  186. // .n-button--primary-type {
  187. // color: #1677ff !important;
  188. // }
  189. ::-webkit-input-placeholder {
  190. /* WebKit browsers */
  191. color: rgba(0, 0, 0, 0.4);
  192. }
  193. :-moz-placeholder {
  194. /* Mozilla Firefox 4 to 18 */
  195. color: rgba(0, 0, 0, 0.4);
  196. }
  197. ::-moz-placeholder {
  198. /* Mozilla Firefox 19+ */
  199. color: rgba(0, 0, 0, 0.4);
  200. }
  201. :-ms-input-placeholder {
  202. /* Internet Explorer 10+ */
  203. color: rgba(0, 0, 0, 0.4);
  204. }
  205. @keyframes TadaNum {
  206. 0% {
  207. transform: rotate(0);
  208. transform: rotate(0);
  209. }
  210. 10%,
  211. 20% {
  212. transform: rotate(-6deg);
  213. transform: rotate(-6deg);
  214. }
  215. 30%,
  216. 50%,
  217. 70%,
  218. 90% {
  219. transform: rotate(6deg);
  220. transform: rotate(6deg);
  221. }
  222. 40%,
  223. 60%,
  224. 80% {
  225. transform: rotate(-6deg);
  226. transform: rotate(-6deg);
  227. }
  228. 100% {
  229. transform: rotate(0);
  230. transform: rotate(0);
  231. }
  232. }
  233. /* 列表动画 start */
  234. .list-move,
  235. /* 对移动中的元素应用的过渡 */
  236. .list-enter-active,
  237. .list-leave-active {
  238. transition: all 0.5s ease;
  239. }
  240. .list-enter-from,
  241. .list-leave-to {
  242. opacity: 0;
  243. transform: translateX(30px);
  244. }
  245. // 拖动时
  246. .sortable-ghost {
  247. opacity: 0.7;
  248. }
  249. .flip-list-move {
  250. transition: transform 0.5s;
  251. }
  252. .no-move {
  253. transition: transform 0s;
  254. }