Skip to content

Commit e0f47de

Browse files
committed
use sibling selector to add margin around table; reduce margin to 1.5rem
1 parent 92e9548 commit e0f47de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/css/doc.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
.doc table.tableblock {
191191
border-collapse: collapse;
192192
font-size: calc(15 / var(--rem-base) * 1rem);
193-
margin: 2rem 0;
193+
margin: 1.5rem 0 0;
194194
/* enable table-layout: fixed if you want the table width to be enforced strictly */
195195
/* alternative is to wrap table in div and set overflow-x: auto on the wrapper */
196196
/* another alternative is to set overflow-x: auto and display: block on table (but this breaks table borders) */
@@ -203,6 +203,10 @@
203203
*/
204204
}
205205

206+
.doc table.tableblock + * {
207+
margin-top: 1.5rem;
208+
}
209+
206210
.doc td.tableblock > .content > :first-child {
207211
margin-top: 0;
208212
}

0 commit comments

Comments
 (0)