Skip to content

Commit 629253a

Browse files
apply styles to tables (#23)
1 parent 61a2308 commit 629253a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/css/doc.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289

290290
.doc table.tableblock th,
291291
.doc table.tableblock td {
292-
padding: var(--ds-space-1h) var(--ds-space-2);
292+
padding: calc(13 / var(--rem-base) * 1rem) var(--ds-space-2);
293293
}
294294

295295
.doc table.tableblock,
@@ -311,7 +311,11 @@
311311

312312
.doc table.grid-all > thead th,
313313
.doc table.grid-rows > thead th {
314-
border-bottom-width: 2.5px;
314+
border-bottom-width: var(--ds-space-q);
315+
border-color: var(--ds-primary-outlined-border);
316+
font-size: calc(13 / var(--rem-base) * 1rem);
317+
color: var(--ds-text-tertiary);
318+
letter-spacing: 0.65px;
315319
}
316320

317321
.doc table.frame-all {
@@ -329,6 +333,9 @@
329333
.doc table.frame-none > colgroup + * > :first-child > *,
330334
.doc table.frame-sides > colgroup + * > :first-child > * {
331335
border-top-width: 0;
336+
font-size: calc(13 / var(--rem-base) * 1rem);
337+
color: var(--ds-text-tertiary);
338+
letter-spacing: 0.65px;
332339
}
333340

334341
/* NOTE let the grid win in case of frame-none */
@@ -681,6 +688,9 @@
681688
.doc .tableblock caption {
682689
text-align: left;
683690
margin-bottom: var(--ds-space-3);
691+
font-style: normal;
692+
letter-spacing: 0;
693+
padding-bottom: 0;
684694
}
685695

686696
.doc .ulist .title,

0 commit comments

Comments
 (0)