Skip to content

Commit

Permalink
Improve spacing around content
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacfreeman committed Oct 31, 2023
1 parent 29f649d commit 5b68c2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Kakano",
"version": "1.0.0",
"minAppVersion": "1.1.0",
"author": "Isaac Freeman",
"authorUrl": "https://isaac.freeman.org.nz"
"name": "Kakano",
"version": "1.0.2",
"minAppVersion": "1.1.0",
"author": "Isaac Freeman",
"authorUrl": "https://isaac.freeman.org.nz"
}
15 changes: 8 additions & 7 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ settings:

body {
--background-secondary: transparent;
--file-line-width: 40rem;
--input-border-width: 2px;
--modal-border-color: black;
--modal-border-width: 0;
Expand Down Expand Up @@ -839,8 +840,9 @@ select:focus,
width: 100%;
}
.markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer .cm-contentContainer {
margin: 3em auto;
margin: 3rem auto;
max-width: var(--file-line-width);
padding: 0 2rem;
width: 100%;
}
.cm-content {
Expand Down Expand Up @@ -906,12 +908,7 @@ body {
--h6-line-height: var(--line-height-normal);
}
/* Space before headings... */
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-1,
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-2,
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-3,
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-4,
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-5,
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-6 {
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header {
padding: 0.67em 0 0 0;
}
/* ...except when they immediately follow another heading */
Expand All @@ -928,6 +925,10 @@ body {
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header-6) {
padding-top: 0;
}
/* ...or the first on the page */
.markdown-source-view.mod-cm6 .cm-line.HyperMD-header:first-child {
padding-top: 0;
}

/* Markdown formatting shown while editing e.g. ### for headings */
.cm-formatting.cm-formatting-header {
Expand Down
4 changes: 3 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"1.0.0": "1.0.0"
"1.0.0": "1.1.0",
"1.0.1": "1.1.0",
"1.0.2": "1.1.0"
}

0 comments on commit 5b68c2d

Please sign in to comment.