summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--obsidian.nix19
-rw-r--r--zoom.css22
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);
+}