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