From bf50ebac945ea31113dadb7ac9118929897dc4ef Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Thu, 30 Mar 2023 15:50:08 +0000 Subject: [PATCH] fix: #229 disable light code theme --- app/styles/prism.scss | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/app/styles/prism.scss b/app/styles/prism.scss index 0d011ce0e20..65ee8b5fc23 100644 --- a/app/styles/prism.scss +++ b/app/styles/prism.scss @@ -120,33 +120,3 @@ cursor: help; } } - -@mixin light { - .markdown-body pre { - filter: invert(1) hue-rotate(90deg) brightness(1.3); - } -} - -@mixin dark { - .markdown-body pre { - filter: none; - } -} - -:root { - @include light(); -} - -.light { - @include light(); -} - -.dark { - @include dark(); -} - -@media (prefers-color-scheme: dark) { - :root { - @include dark(); - } -}