Skip to content

Commit fdbe896

Browse files
committed
Add style for tables
1 parent 9218963 commit fdbe896

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/assets/styles/base.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,23 @@ h1:hover .dei-anchor, h2:hover .dei-anchor, h3:hover .dei-anchor,
259259
h4:hover .dei-anchor, h5:hover .dei-anchor {
260260
visibility: visible;
261261
}
262+
263+
/* Table style. */
264+
table {
265+
width: 100%;
266+
border-spacing: 0;
267+
}
268+
269+
th {
270+
text-align: left;
271+
border-bottom: 1px solid var(--sl-color-neutral-1000);
272+
}
273+
274+
td, th {
275+
padding: 2px;
276+
max-width: 0;
277+
}
278+
279+
tr:not(:first-child) > td {
280+
border-top: 1px solid var(--sl-color-neutral-100);
281+
}

0 commit comments

Comments
 (0)