feat(web): unify code block styling and icon controls
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user