client: Improve style for code blocks

This commit is contained in:
Elian Doran 2024-10-27 19:54:05 +02:00
parent 87bc142552
commit d2235a185b
No known key found for this signature in database
3 changed files with 13 additions and 2 deletions

View File

@ -526,14 +526,15 @@
/* @ckeditor/ckeditor5-code-block/theme/codeblock.css */
.ck-content pre {
padding: 1em;
border: 1px solid hsl(0, 0%, 77%);
border-radius: 2px;
text-align: left;
direction: ltr;
tab-size: 4;
white-space: pre-wrap;
font-style: normal;
min-width: 200px;
border: 0px;
border-radius: 6px;
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
}
.ck-content pre:not(.hljs) {
color: hsl(0, 0%, 20.8%);

View File

@ -807,6 +807,12 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
vertical-align: baseline !important;
}
.ck-content pre {
border: 0;
border-radius: 6px;
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
}
.ck-content .todo-list .todo-list__label > input:before {
border: 1px solid var(--muted-text-color) !important;
}

View File

@ -92,3 +92,7 @@ body .todo-list input[type="checkbox"]:not(:checked):before {
.btn-close {
filter: invert(1);
}
.ck-content pre {
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6) !important;
}