🎨 Improve readability by reformatting theme assignment logic in highlight directive
This commit is contained in:
@@ -1109,6 +1109,23 @@ onMounted(() => {
|
||||
flex: 1;
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.line pre code {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Light mode syntax highlighting */
|
||||
.content-viewer:not(.dark-mode) .line pre code {
|
||||
background-color: transparent;
|
||||
color: #24292e;
|
||||
}
|
||||
|
||||
/* Dark mode syntax highlighting */
|
||||
.content-viewer.dark-mode .line pre code {
|
||||
background-color: transparent;
|
||||
color: #e1e4e8;
|
||||
}
|
||||
|
||||
.line-wrap .line pre {
|
||||
|
||||
Reference in New Issue
Block a user