Skip to content

Commit

Permalink
ui: adjust token margin factors
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangcaleb committed Nov 7, 2023
1 parent d524cbc commit e873d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 3 additions & 2 deletions src/styles/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
}
Expand Down

0 comments on commit e873d0e

Please sign in to comment.