From e873d0ebff691fabf0fb5db19495ffaf1af5d244 Mon Sep 17 00:00:00 2001 From: chuangcaleb Date: Tue, 7 Nov 2023 20:38:24 +0800 Subject: [PATCH] ui: adjust token margin factors --- src/styles/base.css | 10 +++++----- src/styles/options.css | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/styles/base.css b/src/styles/base.css index c740625..28adaae 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -22,12 +22,12 @@ But ahh, still looks weird. I'm eyeballing values based on comparing the styling --fountain--line-width-factor: 6; --fountain--line-width: calc(var(--fountain--line-width-factor) * 1in); - --fountain--character-left-factor: 1.8; - --fountain--character-right-factor: 1.6; - --fountain--dialogue-left-factor: 1; + --fountain--character-left-factor: 2; + --fountain--character-right-factor: 1.1; + --fountain--dialogue-left-factor: 1.1; --fountain--dialogue-right-factor: 1; - --fountain--parenthesis-left-factor: 1.3; - --fountain--parenthesis-right-factor: 1.5; + --fountain--parenthesis-left-factor: 1.5; + --fountain--parenthesis-right-factor: 1.1; --fountain--font-family: "Courier New", "Courier", monospace; diff --git a/src/styles/options.css b/src/styles/options.css index 247bed6..4aecc99 100644 --- a/src/styles/options.css +++ b/src/styles/options.css @@ -5,13 +5,11 @@ .markdown-source-view.mod-cm6.fountain { &.fountain-left .cm-contentContainer { /* * left unconstrained */ - --fountain--margins-base: var(--fountain--margins-base-min); max-width: var(--fountain--line-width); } &.fountain-center .cm-contentContainer { /* * centered constrained */ - --fountain--margins-base: var(--fountain--margins-base-min); width: var(--fountain--line-width); margin-inline: auto; } @@ -36,6 +34,9 @@ } } +/* .markdown-source-view.mod-cm6.fountain { + --font-text-size: 12px; +} */ .is-mobile .markdown-source-view.mod-cm6.fountain { --font-text-size: var(--font-ui-small); }