fix: improve run_python output readability in dark mode
This commit is contained in:
parent
3ae5be47d9
commit
386f618c83
@ -927,6 +927,22 @@ function renderEasterEgg(result: any, args: any): string {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 暗色模式:run_python 代码/输出统一白字,去除任何描边/阴影观感 */
|
||||||
|
:root[data-theme='dark'] .code-block pre,
|
||||||
|
:root[data-theme='dark'] .output-block pre {
|
||||||
|
color: #ffffff !important;
|
||||||
|
background: rgba(255, 255, 255, 0.04);
|
||||||
|
border-color: rgba(255, 255, 255, 0.12);
|
||||||
|
text-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme='dark'] .code-block pre code,
|
||||||
|
:root[data-theme='dark'] .output-block pre code {
|
||||||
|
color: #ffffff !important;
|
||||||
|
text-shadow: none !important;
|
||||||
|
-webkit-text-fill-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.output-block {
|
.output-block {
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user