Skip to content

Build your personal knowledge base with Trilium Notes

style(next): don't print box shadow for code

Elian Doranbfadd36f3d44
diff --git a/src/public/stylesheets/theme-next/notes/text.css b/src/public/stylesheets/theme-next/notes/text.css
index 4100564d1e..56a12e1c44 100644
--- a/src/public/stylesheets/theme-next/notes/text.css
+++ b/src/public/stylesheets/theme-next/notes/text.css
@@ -104,11 +104,13 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
opacity: 1;
}
-.ck-content p code {
- border: 1px solid var(--card-border-color);
- box-shadow: var(--card-box-shadow);
- border-radius: 6px;
- background-color: var(--card-background-color);
+@media (screen) {
+ .ck-content p code {
+ border: 1px solid var(--card-border-color);
+ box-shadow: var(--card-box-shadow);
+ border-radius: 6px;
+ background-color: var(--card-background-color);
+ }
}
.note-detail-printable:not(.word-wrap) pre code {