mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
fix(ckeditor): code block background not working properly
This commit is contained in:
27
patches/ckeditor5.patch
Normal file
27
patches/ckeditor5.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/dist/ckeditor5.css b/dist/ckeditor5.css
|
||||
index 58b8ed68f5d3b578656663a5fabb9a7020268638..f1769d623fd453ca7ce2eb4fa456a73da7b06df8 100644
|
||||
--- a/dist/ckeditor5.css
|
||||
+++ b/dist/ckeditor5.css
|
||||
@@ -5783,9 +5783,7 @@ a.ck.ck-button.ck-link-toolbar__preview:has( .ck-icon ) {
|
||||
*/
|
||||
|
||||
.ck-content pre {
|
||||
- padding: 1em;
|
||||
- color: hsl(0, 0%, 20.8%);
|
||||
- background: hsla(0, 0%, 78%, 0.3);
|
||||
+ padding: 1em;
|
||||
border: 1px solid hsl(0, 0%, 77%);
|
||||
border-radius: 2px;
|
||||
|
||||
@@ -5803,6 +5801,11 @@ a.ck.ck-button.ck-link-toolbar__preview:has( .ck-icon ) {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
+.ck-content pre:not(.hljs) {
|
||||
+ color: hsl(0, 0%, 20.8%);
|
||||
+ background: hsla(0, 0%, 78%, 0.3);
|
||||
+}
|
||||
+
|
||||
.ck-content pre code {
|
||||
background: unset;
|
||||
padding: 0;
|
||||
Reference in New Issue
Block a user