feat(web): unify code block styling and icon controls

This commit is contained in:
yixiangihsiang committed 2026-09-21 21:57:35 +08:00
1 parent b13bbc027c
commit 8d2cd0cf72
41 files changed
+449 -193

No files matched your search

@@ -104,6 +104,25 @@
color: var(--dsw-alias-label-primary);
}
.card {
--dsl-code-block-content-font: var(--dsw-font-markdown-code-block);
}
.card :where(pre) {
padding: 6px 18px 16px;
word-break: normal;
overflow-wrap: anywhere;
}
.card[data-code-wrap='false'] {
--dsl-code-block-line-white-space: pre;
}
.card[data-code-wrap='false'] :where(pre) {
white-space: pre;
overflow-wrap: normal;
}
.numbered :where(pre) code {
display: block;
counter-reset: source-line;