[PATCH 2/7] docs: css: Make definition list 'code' entries bold when converted from rst

Peter Krempa posted 7 patches 5 years, 6 months ago
[PATCH 2/7] docs: css: Make definition list 'code' entries bold when converted from rst
Posted by Peter Krempa 5 years, 6 months ago
Docutils don't generate <code> for inline literals (``blah``) in rst
but rather put them in the '.literal' class. Add a selector for making
them bold when used in definition list headers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 docs/generic.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/generic.css b/docs/generic.css
index c4092abc2b..d15d85e67a 100644
--- a/docs/generic.css
+++ b/docs/generic.css
@@ -25,7 +25,7 @@ dt {
   margin-right: 2em;
 }

-dt code {
+dt code, dt .literal {
   font-weight: bold;
 }

-- 
2.26.2

Re: [PATCH 2/7] docs: css: Make definition list 'code' entries bold when converted from rst
Posted by Ján Tomko 5 years, 6 months ago
On a Monday in 2020, Peter Krempa wrote:
>Docutils don't generate <code> for inline literals (``blah``) in rst
>but rather put them in the '.literal' class. Add a selector for making
>them bold when used in definition list headers.
>
>Signed-off-by: Peter Krempa <pkrempa@redhat.com>
>---
> docs/generic.css | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano