index.module.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .table-wrapper {
  2. width: 100%;
  3. overflow: auto;
  4. border-inline-start: 1px solid #f0f0f0;
  5. border-start-start-radius: 8px;
  6. border-start-end-radius: 8px;
  7. }
  8. .table {
  9. min-width: 100%;
  10. padding: 0;
  11. margin: 0;
  12. overflow: unset;
  13. font-size: 14px;
  14. line-height: 1.5714;
  15. color: rgb(0 0 0 / 88%);
  16. text-align: start;
  17. list-style: none;
  18. border-spacing: 0;
  19. border-collapse: separate;
  20. background: #fff;
  21. border-top: 1px solid #f0f0f0;
  22. border-radius: 8px 8px 0 0;
  23. & td {
  24. min-width: 0;
  25. }
  26. }
  27. .table-head {
  28. position: sticky;
  29. top: 0;
  30. text-align: center;
  31. }
  32. .table-head-th {
  33. position: relative;
  34. min-width: 0;
  35. padding: 16px;
  36. margin: 0;
  37. font-weight: 600;
  38. color: rgb(0 0 0 / 88%);
  39. text-align: center;
  40. overflow-wrap: anywhere;
  41. list-style: none;
  42. background-color: #fafafa;
  43. border-inline-end: 1px solid #f0f0f0;
  44. border-bottom: 1px solid #f0f0f0;
  45. border-start-start-radius: 8px;
  46. transition: background 0.2s ease;
  47. &:last-child {
  48. border-start-end-radius: 8px;
  49. }
  50. }
  51. .table-body {
  52. & td {
  53. position: relative;
  54. min-width: 0;
  55. padding: 16px;
  56. overflow-wrap: anywhere;
  57. border-inline-end: 1px solid #f0f0f0;
  58. border-bottom: 1px solid #f0f0f0;
  59. transition: background 0.2s, border-color 0.2s;
  60. }
  61. }
  62. .resizer {
  63. position: absolute;
  64. top: 0;
  65. right: 0;
  66. width: 5px;
  67. height: 100%;
  68. touch-action: none;
  69. cursor: col-resize;
  70. user-select: none;
  71. background: var(--primary-color);
  72. opacity: 0;
  73. &:hover {
  74. opacity: 0.4;
  75. }
  76. }
  77. .resizing {
  78. opacity: 0.4;
  79. }
  80. .sticky {
  81. width: 100%;
  82. }
  83. .pagination {
  84. width: 100%;
  85. margin-top: 16px;
  86. &:global(.ant-pagination) {
  87. display: flex;
  88. }
  89. }