Skip to content

Commit 76cefc1

Browse files
feat(base.css): add table styles (#759)
1 parent dbb613f commit 76cefc1

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/base.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,32 @@
121121
line-height: inherit;
122122
}
123123

124+
table {
125+
display: inline-block;
126+
overflow: auto;
127+
}
128+
129+
table thead {
130+
display: table-header-group;
131+
vertical-align: middle;
132+
border-color: inherit;
133+
}
134+
135+
table th {
136+
font-weight: 700;
137+
}
138+
139+
table th,
140+
table td {
141+
padding: 6px 13px;
142+
border: 1px solid var(--foreground-secondary);
143+
text-align: center;
144+
}
145+
146+
table tbody tr:nth-of-type(odd) {
147+
background-color: var(--background-tertiary);
148+
}
149+
124150
p:has(ruby),
125151
li:has(> ruby) {
126152
padding: 0.5rem 0;

0 commit comments

Comments
 (0)