diff options
| author | Andrew <admonty1@protonmail.com> | 2025-08-23 11:15:26 -0400 |
|---|---|---|
| committer | Andrew <admonty1@protonmail.com> | 2025-08-23 11:15:26 -0400 |
| commit | 5121ffd2e96387b5fae28ca0206385d3d3506c56 (patch) | |
| tree | c2b05ff288d77953a05f4e137afbd9de9847df25 | |
| parent | zsh and oh-my-zsh configuration added (diff) | |
| download | nixos-5121ffd2e96387b5fae28ca0206385d3d3506c56.tar.gz nixos-5121ffd2e96387b5fae28ca0206385d3d3506c56.tar.bz2 nixos-5121ffd2e96387b5fae28ca0206385d3d3506c56.zip | |
obsidian config with hacky zoom fix
| -rw-r--r-- | obsidian.nix | 19 | ||||
| -rw-r--r-- | zoom.css | 22 |
2 files changed, 33 insertions, 8 deletions
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); +} |
