summaryrefslogtreecommitdiffstats
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-04 05:21:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-04 05:21:04 +0000
commit786b27255775280eeeea257cf76d1bcd02bd0ba9 (patch)
tree52cf66db8fef68b8b15fc67c52e8ed902488d15d /mandoc.css
parent7656f193d2282a1c052659374e9721b517446d68 (diff)
downloadmandoc-786b27255775280eeeea257cf76d1bcd02bd0ba9.tar.gz
Make sure all borders in a table are drawn in the same color.
Required because browsers tend to have inconsistent defaults: For example, Firefox 62.0.2 sets border-color for tbody, but not for table, and Pali Rohar reports that Chrome set it for td, but not for tr or tbody. The td part is from Pali Rohar, the tbody and tr parts from me.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css7
1 files changed, 6 insertions, 1 deletions
diff --git a/mandoc.css b/mandoc.css
index 9630857e..cc383404 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -15,9 +15,14 @@ body { font-family: Helvetica,Arial,sans-serif; }
table { margin-top: 0em;
margin-bottom: 0em;
border-collapse: collapse; }
+/* Some browsers set border-color in a browser style for tbody,
+ * but not for table, resulting in inconsistent border styling. */
+tbody { border-color: inherit; }
+tr { border-color: inherit; }
td { vertical-align: middle;
padding-left: 0.2em;
- padding-right: 0.2em; }
+ padding-right: 0.2em;
+ border-color: inherit; }
ul, ol, dl { margin-top: 0em;
margin-bottom: 0em; }
li, dt { margin-top: 1em; }