Skip to content

Build your personal knowledge base with Trilium Notes

style/zen mode: restyle the fixed formatting toolbar, relocate at the bottom of the screen

Adorian Doran605b317f29f7
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index d874581d6c..e7ca280e66 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2116,6 +2116,29 @@ body.zen .note-split.type-text {
font-size: 1.15em;
}
+/* Fixed formatting toolbar */
+
+body.zen .note-split .ribbon-container {
+ position: absolute;
+ bottom: 20px;
+ width: 100%;
+ z-index: 100000;
+}
+
+body.zen .note-split .ribbon-container .ribbon-body {
+ border: 0;
+}
+
+body.zen .note-split .ribbon-container .classic-toolbar-widget {
+ margin: auto;
+ width: fit-content;
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, .1);
+ border-radius: 8px;
+ border: 1px solid var(--main-border-color);
+ padding: 4px;
+ background: var(--menu-background-color);
+}
+
/* Content renderer */
footer.file-footer,