_table.scss 3.0 KB

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