variable.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $zh-font-size: 12px !default;
  2. $zh-green: #28a745 !default;
  3. $zh-gray: #757575 !default;
  4. $zh-muted: #6c757d !default;
  5. $zh-light-gray: #bbbbbb !default;
  6. $zh-blue: #007bff !default;
  7. $zh-red: #dc3545 !default;
  8. $zh-yellow: #ffc170 !default;
  9. $zh-white: #ffffff !default;
  10. $zh-line-color: rgba(0,0,0,.125) !default;
  11. $zh-danger:#fd3995 !default;
  12. $zh-warning:#ffc241 !default;
  13. $zh-success:#1dc9b7 !default;
  14. // 实现0.5px的效果
  15. @mixin zh-border {
  16. position: relative;
  17. &::after {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. z-index: 2;
  22. box-sizing: border-box;
  23. width: 100%;
  24. height: 100%;
  25. border-radius: inherit;
  26. content: ' ';
  27. pointer-events: none;
  28. }
  29. }
  30. .auto-scroll-y {
  31. height: 100%;
  32. .ant-spin-nested-loading,
  33. .ant-spin-container,
  34. .ant-table,
  35. .ant-table-scroll,
  36. .ant-table-body-inner,
  37. .ant-table-fixed-left,
  38. .ant-table-content {
  39. height: 100%;
  40. }
  41. .ant-table-content {
  42. position: relative;
  43. }
  44. .ant-table-body, .ant-table-body-inner {
  45. overflow-y: auto !important;
  46. }
  47. .ant-table-header {
  48. overflow-y: hidden !important;
  49. }
  50. .ant-table-body {
  51. height: 580px;
  52. overflow-y: auto;
  53. }
  54. .ant-table-body-outer {
  55. height: 580px;
  56. overflow-y: auto;
  57. }
  58. .ant-table-body-inner {
  59. overflow-x: hidden;
  60. }
  61. }