Skip to content

Commit

Permalink
implement borderless option table in module page (#296)
Browse files Browse the repository at this point in the history
* borderless options table in module pages

provide the scss and the generated css

* Replace incorrect :: by :, use SCSS nesting.

* Experimental: re-add borders, keep colors

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
bmillemathias and felixfontein authored Oct 27, 2021
1 parent aed085e commit a80a800
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx_antsibull_ext/antsibull-minimal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion sphinx_antsibull_ext/css/antsibull-minimal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

// Documentation table (for module options and return values)
table.documentation-table {
// Borders and basic spacing
border-bottom: 1px solid #000;
border-right: 1px solid #000;

th {
background-color: #6AB0DE;
}

td, th {
padding: 4px;
border-left: 1px solid #000;
Expand Down Expand Up @@ -40,6 +43,13 @@ table.documentation-table {
&:hover .ansibleOptionLink::after {
visibility: visible;
}

&:nth-child(odd) {
background-color: #FFFFFF;
}
&:nth-child(even) {
background-color: #E7F2FA;
}
}
}

Expand Down

0 comments on commit a80a800

Please sign in to comment.