Skip to content

Build your personal knowledge base with Trilium Notes

style(next): improve blockquote style

Elian Dorance1ae8431330
diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.css
index 312c18e6ee..743208c1ed 100644
--- a/src/public/stylesheets/theme-next.css
+++ b/src/public/stylesheets/theme-next.css
@@ -1016,6 +1016,38 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
cursor: default;
}
+.ck-content blockquote {
+ background: var(--card-background-color);
+ border: 1px solid var(--card-border-color) !important;
+ box-shadow: var(--card-box-shadow);
+ border-radius: 10px;
+ padding: 1em 2.5em;
+ position: relative;
+ font-style: unset !important;
+}
+
+.ck-content blockquote p:last-of-type {
+ margin-bottom: 0 !important;
+}
+
+.ck-content blockquote:before,
+.ck-content blockquote:after {
+ position: absolute;
+ top: 0;
+ font-size: 48px;
+ opacity: 0.1;
+}
+
+.ck-content blockquote:before {
+ content: "“";
+ left: 0.2em;
+}
+
+.ck-content blockquote:after {
+ content: "”";
+ right: 0.35em;
+}
+
.note-detail-printable:not(.word-wrap) pre code {
white-space: pre;
margin-right: 1em;