Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(ckeditor5): trim blockquote.css to the one rule that overrides upstream
Elian Doran445ff1907b1c
diff --git a/packages/ckeditor5/src/theme/blockquote.css b/packages/ckeditor5/src/theme/blockquote.cssindex aa64f4a4b7..57672af427 100644--- a/packages/ckeditor5/src/theme/blockquote.css+++ b/packages/ckeditor5/src/theme/blockquote.css@@ -1,22 +1,20 @@/*- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license+ * Trilium's only override of CKEditor's block-quote styling.+ *+ * `ckeditor5/ckeditor5.css` (imported first in `src/index.ts`) already ships the full+ * `.ck-content blockquote` rule — border, margins, italics, overflow — and the `[dir="rtl"]`+ * variant, so none of that is repeated here. This file used to be a verbatim copy of upstream's+ * `ckeditor5-block-quote/theme/blockquote.css`, carried in with the admonition fork, and had+ * drifted into duplicating rules the distribution already provides.+ *+ * Only the horizontal padding differs from upstream: 2em instead of 1.5em — see 916f0d80c0,+ * "fix(ckeditor): increase blockquote padding".+ *+ * Both selectors have the same specificity, so this must stay imported *after*+ * `ckeditor5/ckeditor5.css` for the override to apply.*/.ck-content blockquote {- /* See #12 */- overflow: hidden;-- /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */- padding-inline: 2em;-- margin-left: 0;- margin-right: 0;- font-style: italic;- border-left: solid 5px hsl(0, 0%, 80%);-}--.ck-content[dir="rtl"] blockquote {- border-left: 0;- border-right: solid 5px hsl(0, 0%, 80%);+ /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */+ padding-inline: 2em;}