Skip to content

Commit 31f4b09

Browse files
authored
[Bugfix] Correct table rendering (#10)
1 parent 046da44 commit 31f4b09

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

custom.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,24 @@ h1.title, .title.h1 {
9797
// table style
9898
.table {
9999
// heading
100-
& tr:first-of-type {
100+
&:not(:has(.header)) tr:first-of-type {
101101
background-color: var(--bs-heading-color-dark);
102102
font-weight: 600;
103103
border-bottom: 2px solid;
104-
border-color: inherit;
104+
border-color: var(--bs-body-color);
105105

106-
& td {
107-
color: black;
106+
}
107+
108+
&:has(.header) {
109+
.header {
110+
background-color: var(--bs-heading-color-dark);
111+
font-weight: 600;
112+
border: 2px solid;
113+
border-color: var(--bs-body-color);
114+
}
115+
116+
tr th:not(:last-child), tbody tr td:not(:last-child) {
117+
border-right: 2px solid;
108118
}
109119
}
110120

0 commit comments

Comments
 (0)