Skip to content

Commit 640192f

Browse files
committed
add support for tablecontainer wrapper around table
1 parent fe9e3b6 commit 640192f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/css/doc.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,15 @@
236236
.doc table.tableblock {
237237
background: var(--body-background);
238238
font-size: calc(15 / var(--rem-base) * 1rem);
239-
margin: 1.5rem 0 0;
239+
}
240+
241+
.doc > table.tableblock,
242+
.doc > table.tableblock + *,
243+
.doc .tablecontainer,
244+
.doc .tablecontainer + *,
245+
.doc :not(.tablecontainer) > table.tableblock,
246+
.doc :not(.tablecontainer) > table.tableblock + * {
247+
margin-top: 1.5rem;
240248
}
241249

242250
@media screen and (min-width: 1024px) {
@@ -256,10 +264,6 @@
256264
font-size: inherit;
257265
}
258266

259-
.doc table.tableblock + * {
260-
margin-top: 1.5rem;
261-
}
262-
263267
.doc p.tableblock + p.tableblock {
264268
margin-top: 0.5rem;
265269
}

0 commit comments

Comments
 (0)