doc/css: adjust code and userinput styles

I don't know why <code> was defined to be bold, it looks bad to me. The
same with <synopsis> which would inherit bold from <dt> when used inside
a variablelist term. So, to make the code snippets look better, force
them to use normal weight.

<userinput> should differentiate from normal code somehow, and italic
seems fine for it.

<literal> already has bold, and I think it's fine, so no need to touch
it.

These changes are mainly for the new XML dialect documentation chapter.
I didn't notice anything changing for the older or generated parts of the
docs.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
Pekka Paalanen 2025-12-31 14:05:36 +02:00 committed by Pekka Paalanen
parent 95c6014a7f
commit 8b102c3bc4

View file

@ -860,7 +860,7 @@ code {
font-family:"liberation mono", "bitstream vera mono", "dejavu mono", monospace;
white-space: pre-wrap;
word-wrap: break-word;
font-weight:bold;
font-weight: normal;
}
.parameter code {
@ -878,6 +878,14 @@ code.email {
}
.synopsis {
font-weight: normal;
}
.userinput {
font-style: italic;
}
/*Notifications*/
div.warning, div.note, div.important {
color: black;