Skip to content

Commit

Permalink
Stylesheet tweaks.
Browse files Browse the repository at this point in the history
Based on the tweaks I'm using already for SDL Sopwith and wadptr.
  • Loading branch information
fragglet committed Jul 29, 2024
1 parent 2e653e0 commit 1377d0b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/macos/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DOC_FILES = README.md COPYING.md
DMG = wadgadget.dmg
ICONS = app.icns wadfile.icns
PANDOC_FLAGS = --embed-resources --resource-path=$(TOPLEVEL) \
-s --template=default.html5
-s --template=default.html5 -H style.html

$(DMG) : tmp.dmg
rm -f $@
Expand Down
59 changes: 59 additions & 0 deletions pkg/macos/style.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

<!-- Tweaks to the pandoc output style to make the resulting HTML
look much nicer. -->

<style>
body {
background-color: white;
margin-top: 1.5em;
margin-bottom: 4em;

max-width: 45em;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;

padding: 0;
padding-left: 1.3em;
padding-right: 1.3em;

font-size: large;
color: #555;
line-height: 1.6;

text-align: justify;
overflow-wrap: break-word;
}

header {
font-family: serif;
margin-top: 0;
margin-bottom: 0.2em;
text-align: center;
}

h1, h2, h3, h4, h5, h6 {
margin-top: 0.5em;
margin-bottom: 0.2em;
}

p {
margin-top: 0;
margin-bottom: 0.8em;
}

dl {
margin-block-start: 0.5em;
}

tr.odd {
background-color: #f7f7f7;
}

td,th {
text-align: left;
border: 1px solid #ccc;
}

</style>

0 comments on commit 1377d0b

Please sign in to comment.