Skip to content

Commit

Permalink
doc-rst: Reduce CSS padding around Field
Browse files Browse the repository at this point in the history
Right now any ":Field Name: Field Contents" lines end up with significant
padding due to CSS from the "table" CSS which rightly needs padding to
make tables readable. However, field lists don't need this as they tend
to be stacked together. The future heavy use of fields in the parsed
MAINTAINERS file needs this cleaned up, and existing users look better
too. Note the needless white space (and misalignment of name/contents)
between "Date" and "Author":

https://www.kernel.org/doc/html/latest/accounting/psi.html

This patch fixes this by lowering the padding with a more specific CSS.

Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
kees authored and Jonathan Corbet committed Oct 2, 2019
1 parent e07f792 commit 1b1438b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Documentation/sphinx-static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ div[class^="highlight"] pre {
line-height: normal;
}

/* Keep fields from being strangely far apart due to inheirited table CSS. */
.rst-content table.field-list th.field-name {
padding-top: 1px;
padding-bottom: 1px;
}
.rst-content table.field-list td.field-body {
padding-top: 1px;
padding-bottom: 1px;
}

@media screen {

/* content column
Expand Down

0 comments on commit 1b1438b

Please sign in to comment.