_table.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .table {
  2. color: $font-color;
  3. margin-bottom: 0;
  4. }
  5. table.dataTable thead tr {
  6. background: transparent;
  7. }
  8. .table th {
  9. padding: .9rem;
  10. text-transform: capitalize;
  11. font-size: .95rem!important;
  12. }
  13. table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
  14. font-size: .9rem!important;
  15. }
  16. table.dataTable:not(.table-bordered) thead tr th {
  17. text-transform: capitalize;
  18. }
  19. table.dataTable {
  20. border: 0;
  21. }
  22. .table td {
  23. padding: .55rem;
  24. height: 62px;
  25. line-height: 1.42857;
  26. font-size: .9rem;
  27. }
  28. .table tr td:first-child, .table tr th:first-child {
  29. padding-left: 1.4rem;
  30. }
  31. .card-header.custom-data-table-header .table-responsive .top .dataTables_filter .form-control {
  32. box-shadow: $shadow-100;
  33. }
  34. .quick-search-clear {
  35. margin-left:-1.45rem;
  36. position: relative;
  37. color: $white;
  38. }
  39. // 解决 rwd-table 下拉选框显示bug
  40. .table-responsive {
  41. border: 0!important;
  42. margin-bottom: 0!important;
  43. }
  44. .custom-data-table-header .table-responsive {
  45. overflow: visible!important;
  46. padding-bottom: 0!important;
  47. }
  48. .sticky-table-header {
  49. z-index: 45!important;
  50. }
  51. // 解决 rwd-table 下拉选框显示bug
  52. table.table-bordered.dataTable:not(.complex-headers) tbody th, table.table-bordered.dataTable tbody td {
  53. border-bottom-width: 1px
  54. }
  55. table.table-bordered.dataTable th:not(.complex-headers), table.table-bordered.dataTable td {
  56. border-left-width: 1px;
  57. }
  58. table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable td:last-child, table.table-bordered.dataTable td:last-child {
  59. border-right-width: 1px;
  60. }
  61. table.dataTable.complex-headers {
  62. border-color: #eee;
  63. }
  64. table.dataTable.complex-headers thead th, table.dataTable.complex-headers thead td, table.dataTable.complex-headers tfoot th, table.dataTable.complex-headers tfoot td {
  65. border-bottom: 1px solid #eee;
  66. border-right: 1px solid #eee;
  67. }
  68. .dataTable.table-bordered:not(.complex-headers) thead th {
  69. border-right: 1px solid darken($border-color, 3%);
  70. border-bottom: 1px solid darken($border-color, 3%);
  71. }
  72. .dataTable.table-bordered:not(.complex-headers) tr:first-child th {
  73. border-top: 1px solid darken($border-color, 3%);
  74. }
  75. .dataTable.table-bordered:not(.complex-headers) thead tr th:first-child {
  76. border-left: 1px solid darken($border-color, 3%);
  77. }
  78. /* ------------------- 多表头 --------------------- */
  79. table.table-bordered.dataTable.complex-headers {
  80. border-spacing: 0;
  81. thead th {
  82. text-align: center;
  83. vertical-align: middle;
  84. font-size: 1rem!important;
  85. }
  86. tbody tr {
  87. box-shadow: none;
  88. border-radius: 0;
  89. td {
  90. border-bottom: 1px solid #f1f1f1;
  91. border-right: 1px solid #f1f1f1;
  92. }
  93. td:first-child {
  94. border-top-left-radius: 0;
  95. border-bottom-left-radius: 0;
  96. }
  97. td:last-child {
  98. border-top-right-radius: 0;
  99. border-bottom-right-radius: 0;
  100. border-right: 0;
  101. }
  102. }
  103. tbody tr:last-child td {
  104. border-bottom: 0;
  105. }
  106. }