summary refs log tree commit diff stats
path: root/doc/nimdoc.css
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2021-04-10 10:49:01 +0300
committerGitHub <noreply@github.com>2021-04-10 09:49:01 +0200
commit2150cd1826f11c74ce780dc0aaecedbed094230d (patch)
tree862032a5115afa9eb331cdec51e06027584c4c66 /doc/nimdoc.css
parent08262206d35a2f171f09681a1abe47485bd79e88 (diff)
downloadNim-2150cd1826f11c74ce780dc0aaecedbed094230d.tar.gz
restyle RST option lists (#17637)
* WIP: restyle RST option lists

* apply similar style to Latex

* fix tests

* minor visual tweaks

* update tests

* remove leftover comments
Diffstat (limited to 'doc/nimdoc.css')
-rw-r--r--doc/nimdoc.css27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/nimdoc.css b/doc/nimdoc.css
index db9a7ce97..ced791d16 100644
--- a/doc/nimdoc.css
+++ b/doc/nimdoc.css
@@ -511,6 +511,33 @@ div.footnote-label {
   min-width: 1.7em;

 }

 

+div.option-list {

+  border: 0.1em solid var(--border);

+}

+div.option-list-item {

+  padding-left: 12em;

+  padding-right: 0;

+  padding-bottom: 0.3em;

+  padding-top: 0.3em;

+}

+div.odd {

+  background-color: var(--secondary-background);

+}

+div.option-list-label {

+  margin-left: -11.5em;

+  margin-right: 0em;

+  min-width: 11.5em;

+  font-weight: bolder;

+  display: inline-block;

+  vertical-align: top;

+}

+div.option-list-description {

+  width: calc(100% - 1em);

+  padding-left: 1em;

+  padding-right: 0;

+  display: inline-block;

+}

+

 blockquote {

   font-size: 0.9em;

   font-style: italic;