el-table.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. font-size: 12px;
  25. color: @gray-l;
  26. &.light,
  27. &.always-light {
  28. color: @green !important;
  29. }
  30. }
  31. th {
  32. border: 0px;
  33. padding: 0px;
  34. height: 30px;
  35. line-height: 30px;
  36. font-weight: normal;
  37. text-align: center;
  38. color: @gray-l;
  39. cursor: pointer;
  40. &.is-leaf {
  41. border: 0px;
  42. }
  43. &.light,
  44. &.always-light {
  45. color: @green !important;
  46. }
  47. }
  48. th,
  49. tr {
  50. background-color: transparent;
  51. border: 0px;
  52. }
  53. thead {
  54. color: @gray-l;
  55. font-weight: 500;
  56. font-size: @fontsize-s;
  57. border: 0px;
  58. th,
  59. &.is-group th {
  60. & > .cell {
  61. }
  62. background-color: fade(@gray, 20);
  63. }
  64. }
  65. .el-table__body {
  66. border: 0px;
  67. }
  68. &.el-table--striped .el-table__body tr.el-table__row--striped {
  69. &:hover td {
  70. background-color: fade(@gray, 20) !important;
  71. }
  72. td {
  73. background-color: fade(@gray, 20);
  74. }
  75. }
  76. &.el-table--border,
  77. &.el-table--group {
  78. border: none;
  79. }
  80. .ascending .sort-caret.ascending {
  81. border-bottom-color: @green;
  82. }
  83. .descending .sort-caret.descending {
  84. border-top-color: @green;
  85. }
  86. }
  87. .el-table__expanded-cell {
  88. background: transparent;
  89. }
  90. .el-table__body tr.hover-row.current-row > td,
  91. .el-table__body tr.hover-row.el-table__row--striped.current-row > td,
  92. .el-table__body tr.hover-row.el-table__row--striped > td,
  93. .el-table__body tr.hover-row > td {
  94. background: transparent;
  95. color: @green;
  96. }
  97. }