summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Lajszczak <filip@lajszczak.dev>2021-12-12 15:31:26 +0000
committerDavid Thompson <dthompson2@worcester.edu>2021-12-13 09:48:28 -0500
commitf9d2d81f945c7d6fe531cd6ed70292cc90b8940b (patch)
tree033e537cfe9ca9bc29054df4ee60babb32f643f9
parent3d1b0bad14ac0f7489c948e5fe0730f59d3a680f (diff)
doc: apply nice css to html docs.
-rw-r--r--Makefile.am5
-rw-r--r--doc/manual.css21
2 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d4b2a78..e1b6765 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -90,6 +90,11 @@ AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
info_TEXINFOS = doc/haunt.texi
doc_haunt_TEXINFOS = doc/fdl-1.3.texi
+
+AM_MAKEINFOHTMLFLAGS = \
+ --css-ref=https://dthompson.us/css/dthompson.css \
+ --css-include=doc/manual.css
+
dvi: # Don't build dvi docs
EXTRA_DIST += \
diff --git a/doc/manual.css b/doc/manual.css
new file mode 100644
index 0000000..b433c4b
--- /dev/null
+++ b/doc/manual.css
@@ -0,0 +1,21 @@
+@media (min-width: 1140px) {
+ body {
+ margin-left: 14rem;
+ margin-right: 4rem;
+ max-width: 52rem;
+ }
+}
+
+@media (min-width: 800px) and (max-width: 1140px) {
+ body {
+ margin-left: 6rem;
+ margin-right: 4rem;
+ max-width: 52rem;
+ }
+}
+
+@media (max-width: 800px) {
+ body {
+ margin: 1rem;
+ }
+}