|
25 | 25 | /* Base Table Styles */ |
26 | 26 | .table { |
27 | 27 | width: 100%; |
28 | | - border-collapse: collapse; |
| 28 | + border-collapse: separate; /* Separate borders for smooth radius */ |
| 29 | + border-spacing: 0; /* Removes spacing between cells */ |
29 | 30 | font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); |
30 | 31 | color: var(--variant-text); |
31 | 32 | background-color: var(--variant-bg); |
| 33 | + border-radius: var(--radius-lg); |
| 34 | + overflow: hidden; /* Applies border radius to entire table */ |
32 | 35 | min-width: min(100%, 600px); |
33 | 36 | } |
34 | 37 |
|
35 | 38 | /* Table Head */ |
36 | 39 | .table th { |
37 | | - background-color: var(--variant-light-bg); |
38 | | - color: var(--variant-dark-bg); |
| 40 | + background-color: var(--variant-dark-bg); |
| 41 | + color: var(--variant-text); |
39 | 42 | text-align: left; |
40 | 43 | padding: clamp(var(--space-3), 1vw, var(--space-4)); |
41 | 44 | font-weight: 600; |
|
56 | 59 | text-overflow: ellipsis; |
57 | 60 | } |
58 | 61 |
|
59 | | -/* Hover Effect */ |
60 | | -.table tr:not([data-variant]) td:hover { |
61 | | - background-color: var(--variant-hover-bg); |
| 62 | +/* Hover Effect for Rows */ |
| 63 | +.table tr:hover td { |
| 64 | + background-color: var(--variant-dark-bg); |
| 65 | + cursor: pointer; |
| 66 | + transition: background-color 0.3s ease, color 0.3s ease; |
62 | 67 | } |
63 | 68 |
|
64 | 69 | /* Striped Rows */ |
|
74 | 79 | [data-style="bordered"] td, |
75 | 80 | [data-style="bordered"] th { |
76 | 81 | border: 1px solid var(--variant-border); |
| 82 | + border-radius: var(--radius-sm); |
77 | 83 | } |
78 | 84 |
|
79 | 85 | /* Curved Borders */ |
|
0 commit comments