forked from Mirrors/gomuks
web/main: disable dark theme for code blocks
This commit is contained in:
parent
a114b23b88
commit
7c95ce35fd
1 changed files with 6 additions and 4 deletions
|
@ -19,10 +19,12 @@ import App from "./App.tsx"
|
|||
import "./index.css"
|
||||
|
||||
const styleTags = document.createElement("style")
|
||||
styleTags.textContent = `
|
||||
@import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark);
|
||||
@import "_gomuks/codeblock/github.css" (prefers-color-scheme: light);
|
||||
`
|
||||
// styleTags.textContent = `
|
||||
// @import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark);
|
||||
// @import "_gomuks/codeblock/github.css" (prefers-color-scheme: light);
|
||||
// `
|
||||
// TODO switch to the above version after adding global dark theme support
|
||||
styleTags.textContent = `@import "_gomuks/codeblock/github.css";`
|
||||
document.head.appendChild(styleTags)
|
||||
|
||||
fetch("_gomuks/auth", { method: "POST" }).then(resp => {
|
||||
|
|
Loading…
Add table
Reference in a new issue