style: improve code block style for attachments

This commit is contained in:
Elian Doran 2025-01-04 17:29:40 +02:00
parent 3ad67a93c1
commit fa30961c9e
No known key found for this signature in database
2 changed files with 24 additions and 20 deletions

View File

@ -40,7 +40,6 @@ const TPL = `
}
.attachment-content-wrapper pre {
background: var(--accented-background-color);
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;

View File

@ -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;