fix(theme): update code block styles to use useTheme hook value
Some checks failed
Docker Build and Push / docker-build-and-push (., Dockerfile, monaco-editor-lsp-next) (push) Failing after 18s
Docker Build and Push / docker-build-and-push (./docker/lsp/clangd, ./docker/lsp/clangd/Dockerfile, lsp-c) (push) Failing after 14s
Docker Build and Push / docker-build-and-push (./docker/lsp/clangd, ./docker/lsp/clangd/Dockerfile, lsp-cpp) (push) Failing after 14s

This commit is contained in:
cfngc4594 2025-03-09 20:30:02 +08:00
parent 0868f45a10
commit 8c847018f0

View File

@ -121,10 +121,8 @@ code[data-theme*=" "] span {
background-color: var(--shiki-light-bg); background-color: var(--shiki-light-bg);
} }
@media (prefers-color-scheme: dark) { .dark code[data-theme*=" "],
code[data-theme*=" "], .dark code[data-theme*=" "] span {
code[data-theme*=" "] span { color: var(--shiki-dark);
color: var(--shiki-dark); background-color: var(--shiki-dark-bg);
background-color: var(--shiki-dark-bg);
}
} }