Skip to content

Commit 55238a3

Browse files
Hugo docs: Support dark themes: Fix class reference tables
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 88293b1 commit 55238a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/assets/css/xenapi.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ th { text-align: left;
4242
.field, .field2 {
4343
margin: 0em 0;
4444
padding: .5em .7em .7em;
45+
/**
46+
* doc/layouts/partials/content.html generates tables with alternating
47+
* field and field2 for the rows of the XenAPI Class Reference tables.
48+
* Their background colours are hard-coded to bright colours here, but the
49+
* colors are not adjusted for dark mode. We cannot use the theme colours
50+
* in this case. Thus we have to hard-code the colours for now. Ergo, also
51+
* hard-code the text colour to ensure that it has contrast in dark mode too.
52+
* Only shades of grey are used, so the text colour is hard-coded to black.
53+
*/
54+
color: black;
4555
background-color: #dddddd;
4656
cursor: pointer;
4757
font-size: 15px;

0 commit comments

Comments
 (0)