mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
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"
|
import "./index.css"
|
||||||
|
|
||||||
const styleTags = document.createElement("style")
|
const styleTags = document.createElement("style")
|
||||||
styleTags.textContent = `
|
// styleTags.textContent = `
|
||||||
@import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark);
|
// @import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark);
|
||||||
@import "_gomuks/codeblock/github.css" (prefers-color-scheme: light);
|
// @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)
|
document.head.appendChild(styleTags)
|
||||||
|
|
||||||
fetch("_gomuks/auth", { method: "POST" }).then(resp => {
|
fetch("_gomuks/auth", { method: "POST" }).then(resp => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue