variable.scss 1.4 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, 0.125) !default;
  11. $zh-danger: #fd3995 !default;
  12. $zh-warning: #ffc241 !default;
  13. $zh-success: #1dc9b7 !default;
  14. $zh-primary: #886ab5 !default;
  15. // 实现0.5px的效果
  16. @mixin zh-border {
  17. position: relative;
  18. &::after {
  19. position: absolute;
  20. top: 0;
  21. left: 0;
  22. z-index: 2;
  23. box-sizing: border-box;
  24. width: 100%;
  25. height: 100%;
  26. border-radius: inherit;
  27. content: ' ';
  28. pointer-events: none;
  29. }
  30. }
  31. .auto-scroll-y {
  32. height: 100%;
  33. .ant-spin-nested-loading,
  34. .ant-spin-container,
  35. .ant-table,
  36. .ant-table-scroll,
  37. .ant-table-body-inner,
  38. .ant-table-fixed-left,
  39. .ant-table-content {
  40. height: 100%;
  41. }
  42. .ant-table-content {
  43. position: relative;
  44. }
  45. .ant-table-body,
  46. .ant-table-body-inner {
  47. overflow-y: auto !important;
  48. }
  49. .ant-table-header {
  50. overflow-y: hidden !important;
  51. }
  52. .ant-table-body {
  53. height: 580px;
  54. overflow-y: auto;
  55. }
  56. .ant-table-body-outer {
  57. height: 580px;
  58. overflow-y: auto;
  59. }
  60. .ant-table-body-inner {
  61. overflow-x: hidden;
  62. }
  63. }