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: build:
os: ubuntu-22.04 os: ubuntu-22.04
tools: tools:
python: "3.8" python: "3.9"

View File

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

View File

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

View File

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