diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 05:21:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 05:21:04 +0000 |
commit | 786b27255775280eeeea257cf76d1bcd02bd0ba9 (patch) | |
tree | 52cf66db8fef68b8b15fc67c52e8ed902488d15d | |
parent | 7656f193d2282a1c052659374e9721b517446d68 (diff) | |
download | mandoc-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.
-rw-r--r-- | mandoc.css | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } |