Skip to content

Commit d936082

Browse files
committed
Update CSS to scroll large tables
Closes gh-15
1 parent b418d61 commit d936082

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/css/asciidoctor.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,16 @@
286286

287287
/* Tables */
288288

289+
.doc table.tableblock {
290+
display: block;
291+
width: 100%;
292+
overflow-x: auto;
293+
}
294+
295+
.doc table.tableblock td {
296+
min-width: 6rem;
297+
}
298+
289299
.doc table.tableblock {
290300
font-size: calc(15 / var(--pixel-to-rem));
291301
margin: 1.5rem 0 0;
@@ -330,7 +340,6 @@
330340
.doc .tableblock p,
331341
.doc .listingblock.wrap pre {
332342
white-space: pre-wrap;
333-
overflow-wrap: anywhere;
334343
}
335344

336345
/* Admonition blocks */

0 commit comments

Comments
 (0)