el-table.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // el-table
  2. .main-body,.df-table {
  3. .el-table,.custom-table.el-table {
  4. background: transparent;
  5. border: 0px;
  6. &.el-table--border::after,
  7. &.el-table--group::after,
  8. &::before {
  9. background-color: transparent;
  10. }
  11. tr {
  12. &:hover {
  13. td {
  14. color: @green;
  15. background-color: transparent !important;
  16. }
  17. }
  18. }
  19. td {
  20. border: 0px;
  21. padding: 0;
  22. // height: 27px;
  23. // line-height: 27px;
  24. height: 37px;
  25. line-height: 37px;
  26. font-size: 12px;
  27. color: @gray-l;
  28. &.light,
  29. &.always-light {
  30. color: @green !important;
  31. }
  32. }
  33. th {
  34. border: 0px;
  35. padding: 0px;
  36. // height: 30px;
  37. // line-height: 30px;
  38. height: 37px;
  39. line-height: 37px;
  40. font-weight: normal;
  41. text-align: center;
  42. color: @gray-l;
  43. cursor: pointer;
  44. &.is-leaf {
  45. border: 0px;
  46. }
  47. &.light,
  48. &.always-light {
  49. color: @green !important;
  50. }
  51. }
  52. th,
  53. tr {
  54. background-color: transparent;
  55. border: 0px;
  56. }
  57. thead {
  58. color: @gray-l;
  59. font-weight: 500;
  60. font-size: @fontsize-s;
  61. border: 0px;
  62. th,
  63. &.is-group th {
  64. & > .cell {
  65. }
  66. background-color: fade(@gray, 20);
  67. }
  68. }
  69. .el-table__body {
  70. border: 0px;
  71. }
  72. &.el-table--striped .el-table__body tr.el-table__row--striped {
  73. &:hover td {
  74. background-color: fade(@gray, 20) !important;
  75. }
  76. td {
  77. background-color: fade(@gray, 20);
  78. }
  79. }
  80. &.el-table--border,
  81. &.el-table--group {
  82. border: none;
  83. }
  84. .ascending .sort-caret.ascending {
  85. border-bottom-color: @green;
  86. }
  87. .descending .sort-caret.descending {
  88. border-top-color: @green;
  89. }
  90. }
  91. .el-table__expanded-cell {
  92. background: transparent;
  93. }
  94. .el-table__body tr.hover-row.current-row > td,
  95. .el-table__body tr.hover-row.el-table__row--striped.current-row > td,
  96. .el-table__body tr.hover-row.el-table__row--striped > td,
  97. .el-table__body tr.hover-row > td {
  98. background: transparent;
  99. color: @green;
  100. }
  101. .el-table__footer-wrapper tbody td {
  102. background: #1a1f2fCC;
  103. }
  104. }