docs - upgrade theme

This commit is contained in:
Cody Glassman 2025-06-18 17:43:31 -07:00
parent fa0b3a04df
commit 37e0566745
4 changed files with 22 additions and 8 deletions

View File

@ -10,4 +10,4 @@ python:
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"

View File

@ -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

View File

@ -17,16 +17,28 @@
padding: 0px;
}
html.dark #luadoc pre.example,
html.dark #luadoc pre.example code {
@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;
}

View File

@ -4,8 +4,10 @@
}
/* Less aggressive dark background */
.dark {
@media (prefers-color-scheme: dark) {
:root {
--background: 220 20% 7% !important;
}
}
/* Hide text underline in tables since the underlines clash with table lines */