Skip to content

Commit

Permalink
Add variable for title font size, and fix heading sizes for mobile/CM6
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Ango authored and Stephan Ango committed Nov 18, 2021
1 parent b97f4ba commit 329f30f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions obsidian.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Minimal Obsidian 4.1.1 by @kepano
Minimal Obsidian 4.1.2 by @kepano
This theme is designed to be used with the Minimal Theme Settings
plugin and the Hider plugin.
Expand Down Expand Up @@ -171,6 +171,8 @@ Disabled features */
--font-smaller:11px;
--font-smallest:10px;

--font-title:1.1em;

--h1:1.125em;
--h2:1em;
--h3:1em;
Expand Down Expand Up @@ -1459,12 +1461,11 @@ body, input, button,
.markdown-embed-title {
letter-spacing:-0.02em;
text-align:left;
font-size:1.1em;
font-size:var(--font-title);
font-weight:var(--bold-weight);
}
.empty-state-title,
.markdown-preview-view h1,
.HyperMD-header-1,
.cm-s-obsidian .cm-header-1 {
letter-spacing:-0.02em;
line-height:1.3;
Expand All @@ -1473,7 +1474,6 @@ body, input, button,
font-weight:var(--h1-weight);
}
.markdown-preview-view h2,
.HyperMD-header-2,
.cm-s-obsidian .cm-header-2 {
letter-spacing:-0.02em;
line-height:1.3;
Expand All @@ -1482,7 +1482,6 @@ body, input, button,
font-weight:var(--h2-weight);
}
.markdown-preview-view h3,
.HyperMD-header-3,
.cm-s-obsidian .cm-header-3 {
letter-spacing:-0em;
line-height:1.4;
Expand All @@ -1491,7 +1490,6 @@ body, input, button,
font-weight:var(--h3-weight);
}
.markdown-preview-view h4,
.HyperMD-header-4,
.cm-s-obsidian .cm-header-4 {
font-variant:small-caps;
letter-spacing:0.02em;
Expand All @@ -1500,7 +1498,6 @@ body, input, button,
font-weight:var(--h4-weight);
}
.markdown-preview-view h5,
.HyperMD-header-5,
.cm-s-obsidian .cm-header-5 {
font-variant:small-caps;
letter-spacing:0.02em;
Expand All @@ -1509,7 +1506,6 @@ body, input, button,
font-weight:var(--h5-weight);
}
.markdown-preview-view h6,
.HyperMD-header-6,
.cm-s-obsidian .cm-header-6 {
font-variant:small-caps;
letter-spacing:0.02em;
Expand Down

0 comments on commit 329f30f

Please sign in to comment.