Skip to content

Commit c0856e1

Browse files
committed
apply border-collapse and word-wrap to table in CSS reset
1 parent 8bdd062 commit c0856e1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/css/base.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,8 @@ button::-moz-focus-inner {
7979
summary {
8080
cursor: pointer;
8181
}
82+
83+
table {
84+
border-collapse: collapse;
85+
word-wrap: normal; /* table widths aren't computed as expected when word-wrap is enabled */
86+
}

src/css/doc.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@
108108
margin: 0;
109109
}
110110

111-
.doc table {
112-
word-wrap: normal; /* don't do arbitrary word breaking */
113-
}
114-
115111
.doc a {
116112
color: var(--link-font-color);
117113
}
@@ -202,7 +198,6 @@
202198

203199
.doc table.tableblock {
204200
background: var(--body-background);
205-
border-collapse: collapse;
206201
font-size: calc(15 / var(--rem-base) * 1rem);
207202
margin: 1.5rem 0 0;
208203
/* enable table-layout: fixed if you want the table width to be enforced strictly */
@@ -343,7 +338,6 @@
343338
}
344339

345340
.doc .admonitionblock > table {
346-
border-collapse: collapse;
347341
table-layout: fixed;
348342
position: relative;
349343
width: 100%;

0 commit comments

Comments
 (0)