From 7040aa86bb211d7c1b9de0d0a1a0fc747771795b Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 17 May 2021 19:27:05 +0200 Subject: [PATCH] doc: css: improve C constructs spacing With current CSS construct like void f() are rendered together, i.e. voidf(). Add some spacing to make it more like "void f()". Signed-off-by: Gerard Marull-Paretas --- doc/_static/css/custom.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index 9d2b5c92c2a..b3368b59a81 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -171,6 +171,12 @@ hr, padding: 0 4px !important; } .rst-content dl:not(.docutils) .sig-param, +.rst-content dl:not(.docutils).class dt > code, +.rst-content dl:not(.docutils).function dt > code, +.rst-content dl:not(.docutils).method dt > code { + padding: 0 4px !important; +} +.rst-content dl:not(.docutils) .sig-param, .rst-content dl:not(.docutils).class dt > .optional ~ em, .rst-content dl:not(.docutils).function dt > .optional ~ em, .rst-content dl:not(.docutils).method dt > .optional ~ em { @@ -899,6 +905,14 @@ kbd, .kbd { border-left: none !important; } +.rst-content dl:not(.docutils).c.var .pre { + padding-right: 4px; +} + +.rst-content dl:not(.docutils).c.struct .property { + padding-right: 4px !important; +} + /* Misc tweaks */ .rst-columns {