mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge pull request #28016 from overleaf/revert-27953-mj-editor-color-scheme
Revert "[web] Specify CSS color-scheme based on editor theme" GitOrigin-RevId: b83fee057d40cb6c58c4e96f5ffdab2019965146
This commit is contained in:
committed by
Copybot
parent
2a040a889c
commit
8c77cb9efd
@@ -45,13 +45,7 @@ const createThemeFromOptions = ({
|
||||
]
|
||||
}
|
||||
|
||||
const baseTheme = EditorView.baseTheme({
|
||||
'&light.cm-editor': {
|
||||
colorScheme: 'light',
|
||||
},
|
||||
'&dark.cm-editor': {
|
||||
colorScheme: 'dark',
|
||||
},
|
||||
const baseTheme = EditorView.theme({
|
||||
'.cm-content': {
|
||||
fontSize: 'var(--font-size)',
|
||||
fontFamily: 'var(--source-font-family)',
|
||||
|
||||
@@ -92,12 +92,6 @@ const createThemeFromOptions = ({
|
||||
* Base styles that can have &dark and &light variants
|
||||
*/
|
||||
const baseTheme = EditorView.baseTheme({
|
||||
'&light.cm-editor': {
|
||||
colorScheme: 'light',
|
||||
},
|
||||
'&dark.cm-editor': {
|
||||
colorScheme: 'dark',
|
||||
},
|
||||
'.cm-content': {
|
||||
fontSize: 'var(--font-size)',
|
||||
fontFamily: 'var(--source-font-family)',
|
||||
|
||||
Reference in New Issue
Block a user