Skip to content

Commit

Permalink
Amethyst: Added a basic stylesheet for HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 23, 2017
1 parent 6c7f269 commit 063db40
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doomsday/tools/amethyst/lib/amestd.ame
Expand Up @@ -111,7 +111,16 @@ $ Executable/binary file.
$ Document header and any output language specific things.
@macro{begin}{
@ifdef{HTML}{
@tag{<head><title>} @TITLE @tag{</title></head><body>} @break
@tag{<head><title>} @TITLE @tag{</title><style type="text/css">body@{font-family:sans-serif;font-size:13pt;max-width:80ex;margin-left:auto;margin-right:auto;background-color:#f0f0f0;color:#444;@}
h1,h2,h3,h4,h5,h6@{color:black;@}
h1@{margin-top:1em;@}
a@{text-decoration:none;color:#051;@}
a:hover@{text-decoration:underline;@}
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a@{color:black;@}
dt@{margin-top:1em;font-weight:bold;@}
dt tt@{font-weight:normal;@}
ul li@{margin-bottom:1ex;@}
ul li div,ol li div@{margin-bottom:1em;@}</style></head><body>} @break
@HTMLHEADER
@tag{<center><h1>} @TITLE @tag{</h1>}
@ifdef{VERSION}{ @tag{<b>} @VERSION @tag{</b>} @br }
Expand Down

0 comments on commit 063db40

Please sign in to comment.