mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-02 23:06:36 -04:00
docs - upgrade theme
This commit is contained in:
parent
fa0b3a04df
commit
37e0566745
@ -10,4 +10,4 @@ python:
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.8"
|
||||
python: "3.9"
|
||||
|
@ -3,4 +3,4 @@ sphinx==7.1.2
|
||||
docutils==0.18.1
|
||||
jinja2==3.1.6
|
||||
sphinx-design==0.5.0
|
||||
sphinxawesome-theme==5.3.2
|
||||
git+https://github.com/glassmancody/sphinxawesome-theme.git@fix_dark_theme_pygment_and_flash
|
@ -17,16 +17,28 @@
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
html.dark #luadoc pre.example,
|
||||
html.dark #luadoc pre.example code {
|
||||
background-color: hsl(var(--muted));
|
||||
color: #ffffff;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#luadoc pre.example,
|
||||
#luadoc pre.example code {
|
||||
background-color: hsl(var(--muted));
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
#luadoc code {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
#luadoc pre {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#luadoc pre code {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
#content #luadoc code a:not(.toc-backref) {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
@ -4,8 +4,10 @@
|
||||
}
|
||||
|
||||
/* Less aggressive dark background */
|
||||
.dark {
|
||||
--background: 220 20% 7% !important;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: 220 20% 7% !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide text underline in tables since the underlines clash with table lines */
|
||||
|
Loading…
x
Reference in New Issue
Block a user