index.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /** 全局样式 */
  2. @use 'element-plus/theme-chalk/src/mixins/function.scss'as *;
  3. @use './transition.scss'as *;
  4. .ele-page,
  5. .ele-admin-tabs {
  6. --ele-page-padding: 12px;
  7. }
  8. * {
  9. outline: none;
  10. }
  11. html {
  12. overflow-x: hidden;
  13. height: 100%;
  14. }
  15. body {
  16. margin: 0;
  17. line-height: 1.58;
  18. color: getCssVar('text-color', 'regular');
  19. font-size: getCssVar('font-size', 'base');
  20. font-family: getCssVar('font-family');
  21. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  22. overflow-x: hidden;
  23. overflow-y: auto;
  24. height: 100%;
  25. width: 100% !important;
  26. }
  27. /* 按钮加图标减少间距 */
  28. .ele-btn-icon.el-button,
  29. .ele-btn-icon.el-button.is-round {
  30. padding-left: 12px;
  31. padding-right: 12px;
  32. &>.el-icon {
  33. margin-left: -2px;
  34. margin-right: -2px;
  35. }
  36. &.el-button--small {
  37. padding-left: 6px;
  38. padding-right: 6px;
  39. }
  40. &.el-button--large {
  41. padding-left: 16px;
  42. padding-right: 16px;
  43. }
  44. }
  45. .demo-timeline {
  46. .el-timeline {
  47. padding: 0;
  48. padding-left: 20px;
  49. }
  50. }
  51. //订单详情
  52. .order-detail {
  53. .el-step.is-center .el-step__description {
  54. padding: 0;
  55. }
  56. }
  57. /* 级联选择器增加高度 */
  58. .ele-popper-higher .el-cascader-menu__wrap.el-scrollbar__wrap {
  59. height: 280px;
  60. }
  61. /* 间距组件样式优化 */
  62. .el-space--horizontal>.el-space__item:last-child {
  63. margin-right: 0 !important;
  64. }
  65. .el-space--vertical>.el-space__item:last-child {
  66. padding-bottom: 0 !important;
  67. }
  68. /* echarts */
  69. .echarts>div>div {
  70. max-width: 100%;
  71. overflow: hidden;
  72. }
  73. /* 小屏幕时分页去掉一些组件 */
  74. @media screen and (max-width: 768px) {
  75. .ele-pro-table .el-pagination {
  76. .el-pagination__sizes,
  77. .el-pagination__jump {
  78. display: none;
  79. }
  80. }
  81. }
  82. /* 表单验证气泡形式 */
  83. .pro-form-error-popper.el-form-item>.el-form-item__content {
  84. &>.el-form-item__error {
  85. position: absolute;
  86. left: 0;
  87. top: auto;
  88. bottom: calc(100% + 3px);
  89. width: max-content;
  90. color: #fff;
  91. font-size: 12px;
  92. background: getCssVar('color-danger');
  93. transition: all 0.2s;
  94. padding: 4px 6px;
  95. border-radius: 3px;
  96. z-index: 999;
  97. transform: none;
  98. &:after {
  99. content: '';
  100. border: 4px solid transparent;
  101. border-top-color: getCssVar('color-danger');
  102. position: absolute;
  103. left: 8px;
  104. bottom: -7px;
  105. }
  106. }
  107. }
  108. //table操作按钮
  109. .ele-pro-table {
  110. .el-table .cell.el-tooltip {
  111. white-space: wrap;
  112. }
  113. .el-button {
  114. margin-right: 8px;
  115. }
  116. .el-button+.el-button {
  117. margin-left: 0;
  118. }
  119. .el-text {
  120. align-self: flex-start;
  121. }
  122. }
  123. //搜索况下时间选择框的样式
  124. .search-form {
  125. .el-date-editor.el-input,
  126. .el-date-editor.el-input__wrapper {
  127. width: 100%
  128. }
  129. }
  130. /* 主题切换过渡 */
  131. ::view-transition-old(root),
  132. ::view-transition-new(root) {
  133. animation: none;
  134. mix-blend-mode: normal;
  135. }
  136. ::view-transition-new(root),
  137. html.dark::view-transition-old(root) {
  138. z-index: 1;
  139. }
  140. ::view-transition-old(root),
  141. html.dark::view-transition-new(root) {
  142. z-index: 2147483646;
  143. }
  144. html.disabled-transition,
  145. html.disabled-transition :not(.view-transition-trigger) * {
  146. transition: none !important;
  147. }
  148. //基础信息展示样式
  149. .common-row {
  150. padding-left: 12px;
  151. .el-col {
  152. line-height: 32px;
  153. margin-bottom: 6px;
  154. }
  155. }
  156. //表单中基础样式
  157. .el-form {
  158. .is-without-controls {
  159. .el-input .el-input__wrapper {
  160. padding-left: 10px;
  161. }
  162. .el-input-number .el-input__inner {
  163. text-align: left !important;
  164. }
  165. }
  166. }