common.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #app,
  2. body,
  3. html {
  4. height: 100%;
  5. }
  6. body {
  7. font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
  8. '微软雅黑', Arial, sans-serif;
  9. line-height: 1.5;
  10. color: #515a6e;
  11. font-size: 14px;
  12. background-color: #f7f7f7;
  13. -webkit-font-smoothing: antialiased;
  14. -moz-osx-font-smoothing: grayscale;
  15. }
  16. //重置样式
  17. .anticon {
  18. svg {
  19. vertical-align: initial;
  20. }
  21. }
  22. a {
  23. color: #2d8cf0;
  24. background: transparent;
  25. text-decoration: none;
  26. outline: none;
  27. cursor: pointer;
  28. transition: color 0.2s ease;
  29. }
  30. a:active,
  31. a:hover {
  32. outline-width: 0;
  33. }
  34. a:hover {
  35. color: #57a3f3;
  36. }
  37. a:active {
  38. color: #2b85e4;
  39. }
  40. a:active,
  41. a:hover {
  42. outline: 0;
  43. text-decoration: none;
  44. }
  45. /* 滚动条凹槽的颜色,还可以设置边框属性 */
  46. *::-webkit-scrollbar-track-piece {
  47. background-color: #f8f8f8;
  48. -webkit-border-radius: 2em;
  49. -moz-border-radius: 2em;
  50. border-radius: 2em;
  51. }
  52. /* 滚动条的宽度 */
  53. *::-webkit-scrollbar {
  54. width: 12px;
  55. height: 12px;
  56. }
  57. /* 滚动条的设置 */
  58. *::-webkit-scrollbar-thumb {
  59. border-radius: 6px;
  60. border: 2px solid transparent;
  61. background-color: #ddd;
  62. background-clip: padding-box;
  63. }
  64. /* 滚动条鼠标移上去 */
  65. *::-webkit-scrollbar-thumb:hover {
  66. background-color: #bbb;
  67. }
  68. html[data-theme='dark'] {
  69. *::-webkit-scrollbar {
  70. background-color: rgb(24, 24, 28);
  71. }
  72. *::-webkit-scrollbar-track-piece {
  73. background-color: rgb(24, 24, 28);
  74. }
  75. *::-webkit-scrollbar-thumb {
  76. background-color: rgba(255, 255, 255, 0.2);
  77. }
  78. *::-webkit-scrollbar-thumb:hover {
  79. background-color: rgba(255, 255, 255, 0.3);
  80. }
  81. }
  82. /* router view transition */
  83. .zoom-fade-enter-active,
  84. .zoom-fade-leave-active {
  85. transition: transform 0.35s, opacity 0.28s ease-in-out;
  86. }
  87. .zoom-fade-enter-from {
  88. opacity: 0;
  89. transform: scale(0.97);
  90. }
  91. .zoom-fade-leave-to {
  92. opacity: 0;
  93. transform: scale(1.03);
  94. }
  95. //antd 卡片样式定制
  96. body .n-card {
  97. transition: all 0.2s ease-in-out;
  98. }
  99. body .n-icon {
  100. vertical-align: middle;
  101. }
  102. body .proCard {
  103. border-radius: 4px;
  104. border: none;
  105. .el-card__body {
  106. padding: 16px;
  107. //&:first-child {
  108. // padding-top: 16px;
  109. //}
  110. }
  111. }
  112. body .proCard.tabsCard {
  113. .el-card__body {
  114. padding-top: 0;
  115. }
  116. }
  117. body .n-modal {
  118. border-radius: 6px;
  119. }
  120. //body .proCardTabs{
  121. // .n-card__content{ padding-top: 3px}
  122. // .n-card__content:first-child{ padding-top: 3px}
  123. //}
  124. .n-layout-page-header {
  125. margin: 0 -10px;
  126. .n-card {
  127. border-radius: revert;
  128. }
  129. }
  130. // 约定 menu 动画一致性
  131. .el-menu {
  132. transition: border-color var(--el-transition-duration),
  133. background-color var(--el-transition-duration), color var(--el-transition-duration);
  134. }
  135. //表头高度加高
  136. .el-table .el-table__cell {
  137. padding: 12px 0;
  138. }
  139. //表格分页宽度
  140. .el-pagination .el-select .el-input {
  141. width: 100px;
  142. }