From 5121ffd2e96387b5fae28ca0206385d3d3506c56 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 23 Aug 2025 11:15:26 -0400 Subject: [PATCH] obsidian config with hacky zoom fix --- obsidian.nix | 19 +++++++++++-------- zoom.css | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 zoom.css diff --git a/obsidian.nix b/obsidian.nix index 4c168d7..1c55a90 100644 --- a/obsidian.nix +++ b/obsidian.nix @@ -1,19 +1,22 @@ { config, pkgs, ... }: - { programs.obsidian = { enable = true; + defaultSettings = { + app = { + showLineNumber = true; + vimMode = true; + }; + cssSnippets = [ + ./zoom.css + ]; + + }; vaults."Vault" = { enable = true; settings = { - app = { - showLineNumbers = true; - }; - appearance = { - zoomLevel = 1.50; - }; }; - }; }; + } diff --git a/zoom.css b/zoom.css new file mode 100644 index 0000000..220b1c3 --- /dev/null +++ b/zoom.css @@ -0,0 +1,22 @@ +/* zoom.css */ +/****************************************************************************/ +/* Adjust content and metadata styling. Not tabs. */ +/****************************************************************************/ +:root { + /* ADJUST THIS VALUE TO YOUR LIKING */ + --custom-font-size-base: 30px; + --custom-font-size: calc(1 * var(--custom-font-size-base)); + --custom-title-size: calc(2 * var(--custom-font-size-base)); +} + +.cm-contentContainer, +.metadata-container, +.is-live-preview, +.markdown-reading-view, +.markdown-preview-view { + font-size: var(--custom-font-size); +} + +.inline-title { + font-size: var(--custom-title-size); +} -- 2.54.0