Skip to content

Commit 5931bed

Browse files
committed
fix(table): styles
1 parent f777a6b commit 5931bed

File tree

1 file changed

+32
-31
lines changed
  • packages/ui-components/src/lib/table

1 file changed

+32
-31
lines changed

packages/ui-components/src/lib/table/table.css

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,43 +23,44 @@
2323
@apply lc--mt-24;
2424
}
2525

26-
thead,
27-
tbody,
28-
tfoot {
29-
& th,
30-
& td {
31-
@apply lc-text-left;
32-
@apply lc-px-20 md:lc-px-24;
33-
@apply lc-py-16 md:lc-py-20;
26+
thead th,
27+
thead td,
28+
tbody th,
29+
tbody td,
30+
tfoot th,
31+
tfoot td {
32+
@apply lc-text-left;
33+
@apply lc-px-20 md:lc-px-24;
34+
@apply lc-py-16 md:lc-py-20;
35+
}
36+
37+
thead th:last-child:not(:first-child),
38+
thead td:last-child:not(:first-child),
39+
tbody th:last-child:not(:first-child),
40+
tbody td:last-child:not(:first-child),
41+
tfoot th:last-child:not(:first-child),
42+
tfoot td:last-child:not(:first-child) {
43+
@apply lc-text-right;
44+
}
3445

35-
&:last-child:not(:first-child) {
36-
@apply lc-text-right;
37-
}
38-
}
46+
thead th,
47+
thead td,
48+
tfoot th,
49+
tfoot td {
50+
@apply lc-text-gray-dark;
51+
@apply lc-font-normal;
3952
}
4053

41-
thead,
42-
tfoot {
43-
& th,
44-
& td {
45-
@apply lc-text-gray-dark;
46-
@apply lc-font-normal;
47-
}
54+
thead th,
55+
thead td {
56+
@apply lc-pt-0;
4857
}
4958

50-
thead {
51-
& th,
52-
& td {
53-
@apply lc-pt-0;
54-
}
59+
tbody tr:nth-child(odd) td {
60+
@apply lc-bg-gray-lightest;
5561
}
5662

57-
tbody {
58-
tr:nth-child(odd) {
59-
& td,
60-
& th {
61-
@apply lc-bg-gray-lightest;
62-
}
63-
}
63+
tbody tr:nth-child(odd) th {
64+
@apply lc-bg-gray-lightest;
6465
}
6566
}

0 commit comments

Comments
 (0)