summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-11-01 04:20:18 -0800
committerKeith Packard <keithp@keithp.com>2015-11-01 06:02:14 -0800
commit1c0f2cd7cbd8fa1360d6b18a1bf8ac0707634aa4 (patch)
tree7dcf1019ea93acd830d45d46a6480c66bad424e3 /doc
parentf2816b305fc9e18a1190e392d43ff489936f10f0 (diff)
doc: Place html book contents on left side of page with separate scrollbar
This lets the user see the toc while browsing the document Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/am.css68
1 files changed, 68 insertions, 0 deletions
diff --git a/doc/am.css b/doc/am.css
index e939245c..c2faa015 100644
--- a/doc/am.css
+++ b/doc/am.css
@@ -110,6 +110,74 @@ div titlepage {
border-top: 2px;
}
+div.warning h1, div.warning h2, div.warning h3, div.warning h4, div.warning h5, div.warning h6 {
+ color: #ff2020;
+}
+
+div.warning p, div.note p, div.error p {
+ margin-left: 5%;
+ margin-left: 5%;
+}
+
+div.toc {
+ position: fixed;
+ left: 0px;
+ top: 0px;
+ height: 100%;
+ width: 25em;
+ margin-right: 5ex;
+ margin-left: 0px;
+ float: left;
+ border-right: 2px solid #0080ff;
+ border-collapse: collapse;
+ overflow: auto;
+}
+
+div.toc a:link {
+ text-decoration: none;
+}
+
+div.toc a:visited {
+ text-decoration: none;
+}
+
+div.toc a:hover {
+ text-decoration: underline;
+}
+
+div.toc a:active {
+ text-decoration: underline;
+}
+
+div.book {
+ margin-left: 25em;
+}
+
+div.list-of-figures {
+ display: none;
+}
+
+div.list-of-tables {
+ display: none;
+}
+
+div.figure p {
+ text-align: center;
+}
+div.figure img {
+ display: block;
+ margin: auto;
+}
+
+div.table p.title {
+ text-align: center;
+}
+
+div.table-contents table {
+ margin-left: auto;
+ margin-right: auto;
+}
+
div.toc p:first-child,
div.list-of-figures p:first-child,
div.list-of-tables p:first-child,