mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-16 19:31:35 +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 {
|
||||
background: var(--accented-background-color);
|
||||
padding: 10px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
|
@ -6,12 +6,16 @@
|
||||
* Code Blocks
|
||||
*/
|
||||
|
||||
.attachment-content-wrapper pre,
|
||||
.ck-content pre {
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
box-shadow: var(--code-block-box-shadow);
|
||||
padding: 0 !important;
|
||||
margin-top: 2px !important;
|
||||
}
|
||||
|
||||
.ck-content pre {
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
@ -28,6 +32,7 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.attachment-content-wrapper pre code,
|
||||
.ck-content pre code {
|
||||
display: block;
|
||||
padding: 1em;
|
||||
|
Loading…
x
Reference in New Issue
Block a user