mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-18 12:41:54 +08:00
style: improve code block style for attachments
This commit is contained in:
parent
3ad67a93c1
commit
fa30961c9e
@ -40,7 +40,6 @@ const TPL = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attachment-content-wrapper pre {
|
.attachment-content-wrapper pre {
|
||||||
background: var(--accented-background-color);
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@ -6,12 +6,16 @@
|
|||||||
* Code Blocks
|
* Code Blocks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.attachment-content-wrapper pre,
|
||||||
.ck-content pre {
|
.ck-content pre {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: var(--code-block-box-shadow);
|
box-shadow: var(--code-block-box-shadow);
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
margin-top: 2px !important;
|
margin-top: 2px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ck-content pre {
|
||||||
overflow: unset;
|
overflow: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,6 +32,7 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.attachment-content-wrapper pre code,
|
||||||
.ck-content pre code {
|
.ck-content pre code {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user