Docs automatic light/dark mode (#6287)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Sergiu Waxmann <47978446+sergiuwaxmann@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-11-13 20:25:05 +01:00 committed by GitHub
parent 48e70f0921
commit f767aa13ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 239 additions and 78 deletions

View file

@ -27,8 +27,8 @@ th, td {
}
/* dark mode alternating table bg colors */
[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
background-color: hsla(var(--md-hue),25%,25%,1)
body.md-theme--slate .md-typeset__table tr:nth-child(2n) {
background-color: hsla(207, 26%, 17%, 1);
}
/* Table format like GitHub ----------------------------------------------------------------------------------------- */