index.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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: 18px;
  22. height: 18px;
  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: 15px;
  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: 18px;
  84. }
  85. .resetBtn {
  86. width: 90px;
  87. height: 43px;
  88. border-radius: 8px;
  89. line-height: 41px;
  90. font-weight: 600 !important;
  91. font-size: 18px;
  92. }
  93. // .n-data-table {
  94. // border-radius: 10px 10px 0 0;
  95. // overflow: hidden;
  96. // }
  97. // .n-data-table-thead {
  98. // height: 54px;
  99. // line-height: 54px;
  100. // }
  101. // .n-data-table-th {
  102. // padding: 0 20px !important;
  103. // background-color: #f7f7f8 !important;
  104. // color: rgba(0, 0, 0, 0.88) !important;
  105. // .n-data-table-th__title {
  106. // font-weight: 600;
  107. // }
  108. // }
  109. // .n-data-table-tr {
  110. // .n-data-table-td {
  111. // padding-left: 20px;
  112. // color: #333333;
  113. // font-size: 14px;
  114. // .n-button__content {
  115. // font-size: 14px;
  116. // color: #1677ff;
  117. // }
  118. // }
  119. // }
  120. :global {
  121. .n-form-item .n-form-item-label {
  122. color: #777;
  123. }
  124. .n-button {
  125. border-radius: 8px;
  126. }
  127. }
  128. .n-data-table-th__title-wrapper {
  129. &::after {
  130. content: '';
  131. width: 1px;
  132. height: 22px;
  133. background: #ebebeb;
  134. &:nth-last-child(1) {
  135. display: none;
  136. }
  137. }
  138. }
  139. .n-data-table-th--last {
  140. .n-data-table-th__title-wrapper {
  141. &::after {
  142. content: '';
  143. width: 0px;
  144. height: 22px;
  145. background: #ebebeb;
  146. }
  147. }
  148. }
  149. // 给弹窗设置标题的基础样式
  150. .modalTitle {
  151. border-radius: 16px;
  152. // overflow: hidden;
  153. &.background {
  154. .n-card-header {
  155. background: #f5f6fa;
  156. font-weight: 600 !important;
  157. overflow: hidden;
  158. }
  159. }
  160. .n-card-header {
  161. border-radius: 16px 16px 0 0;
  162. position: relative;
  163. padding: 20px 18px;
  164. text-align: center;
  165. background: #fff;
  166. font-size: 22px;
  167. font-weight: 600;
  168. color: #131415;
  169. line-height: 30px;
  170. }
  171. .n-card-header__close {
  172. position: absolute;
  173. right: 18px;
  174. z-index: 99;
  175. }
  176. .n-card__content {
  177. padding: 0;
  178. }
  179. }
  180. .favitor-enter-active,
  181. .favitor-leave-active {
  182. // transition: all 0.5s cubic-bezier(0.18, 0.89, 0, 1.29);
  183. transition: all .3s ease-in-out;
  184. }
  185. .favitor-enter-from,
  186. .favitor-leave-to {
  187. transform: scale(1.4);
  188. opacity: 0.1;
  189. }
  190. @font-face {
  191. font-family: 'DINA';
  192. src: url('../common/DIN_Alternate_Bold.ttf');
  193. }
  194. :root {
  195. --product-color: #3044ca;
  196. }
  197. // .n-button--primary-type {
  198. // color: #1677ff !important;
  199. // }
  200. ::-webkit-input-placeholder {
  201. /* WebKit browsers */
  202. color: rgba(0, 0, 0, 0.4);
  203. }
  204. :-moz-placeholder {
  205. /* Mozilla Firefox 4 to 18 */
  206. color: rgba(0, 0, 0, 0.4);
  207. }
  208. ::-moz-placeholder {
  209. /* Mozilla Firefox 19+ */
  210. color: rgba(0, 0, 0, 0.4);
  211. }
  212. :-ms-input-placeholder {
  213. /* Internet Explorer 10+ */
  214. color: rgba(0, 0, 0, 0.4);
  215. }
  216. @keyframes TadaNum {
  217. 0% {
  218. transform: rotate(0);
  219. transform: rotate(0);
  220. }
  221. 10%,
  222. 20% {
  223. transform: rotate(-6deg);
  224. transform: rotate(-6deg);
  225. }
  226. 30%,
  227. 50%,
  228. 70%,
  229. 90% {
  230. transform: rotate(6deg);
  231. transform: rotate(6deg);
  232. }
  233. 40%,
  234. 60%,
  235. 80% {
  236. transform: rotate(-6deg);
  237. transform: rotate(-6deg);
  238. }
  239. 100% {
  240. transform: rotate(0);
  241. transform: rotate(0);
  242. }
  243. }
  244. /* 列表动画 start */
  245. .list-move,
  246. /* 对移动中的元素应用的过渡 */
  247. .list-enter-active,
  248. .list-leave-active {
  249. transition: all 0.5s ease;
  250. }
  251. .list-enter-from,
  252. .list-leave-to {
  253. opacity: 0;
  254. transform: translateX(30px);
  255. }
  256. // 拖动时
  257. .sortable-ghost {
  258. opacity: 0.7;
  259. }
  260. .flip-list-move {
  261. transition: transform 0.5s;
  262. }
  263. .no-move {
  264. transition: transform 0s;
  265. }
  266. .n-data-table .n-data-table-th {
  267. background: #F7F7F8;
  268. color: rgba(113, 113, 114, 1) !important;
  269. border: none;
  270. min-height: 54px;
  271. font-size: 15px;
  272. }
  273. .n-data-table.n-data-table--bordered .n-data-table-wrapper {
  274. border: none;
  275. }
  276. .n-data-table-tr .n-data-table-td .n-button__content,
  277. .n-data-table .n-data-table-td {
  278. font-weight: bold;
  279. font-size: 15px;
  280. }
  281. .n-base-close:not(.n-base-close--disabled):active::before,
  282. .n-base-close:not(.n-base-close--disabled):focus::before {
  283. background-color: transparent !important;
  284. }
  285. .body .n-modal-mask {
  286. background-color: transparent !important;
  287. }
  288. // 设置图片弹窗工具预览
  289. .n-image-preview-toolbar .n-base-icon {
  290. margin: 0 8px;
  291. padding: 0;
  292. }