From: Nigel Metheringham Date: Fri, 16 Jul 2010 14:09:17 +0000 (+0100) Subject: Additional index styling X-Git-Tag: exim-4_89_1~104 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/be2963af7935fb8962a802bba0f7d610536c7622?ds=sidebyside Additional index styling --- diff --git a/templates/doc/chapter.xsl b/templates/doc/chapter.xsl index 5f13185..81f0125 100644 --- a/templates/doc/chapter.xsl +++ b/templates/doc/chapter.xsl @@ -64,9 +64,18 @@ -

- -

+ + +

+ +

+
+ +

+ +

+
+
diff --git a/templates/web/doc/chapter.css b/templates/web/doc/chapter.css index b379968..4b88550 100644 --- a/templates/web/doc/chapter.css +++ b/templates/web/doc/chapter.css @@ -29,55 +29,86 @@ td .docbook_option, td .docbook_emphasis { font-size: 125%; } +/* Index section styling */ -// Side Table of Contents - - #outer > #toc { - position: fixed; - top: 35%; - left: 0; - z-index: 3000; - } - - #outer > #toc img { - position: fixed; - top: 35%; - left: 0; - background-color: #304b66; - padding: 0.5em; - z-index: 3000; - display: none; - } - - #outer > #toc img:hover { - cursor: pointer; - background-color: #000; - } - - #outer > #toc > ul { - position: fixed; - top: 30%; - background-color: #fff; - min-height: 200px; - max-height: 65%; - overflow-y: auto; - padding: 0.5em 0; - border-top: 1px solid #bbb; - border-bottom: 1px solid #bbb; - z-index: 3000; - } - #outer > #toc a { - font-size: 1.2em; - color: #304b67; - text-decoration: none; - padding: 0 0.5em; - } - #outer > #toc a:hover { - color: #000; - } - - @media all and ( max-width: 640px ){ - #outer > #toc { - display: none; - } - } +h3.index { + padding-top: 10px; + border-bottom: medium solid #000; + margin-bottom: 10px; +} + +dl dt +{ + clear: left; + float: left; + width: 220px; + margin: 0; + font-weight: bold; + padding-left: 2em; + line-height: 1.1; +} + +dl dd +{ + margin-left: 230px; + line-height: 1.1; + white-space: normal; +} + +dl dd dl +{ + margin-left: -180px; +} + + +/* Side Table of Contents */ + + #outer > #toc { + position: fixed; + top: 35%; + left: 0; + z-index: 3000; + } + + #outer > #toc img { + position: fixed; + top: 35%; + left: 0; + background-color: #304b66; + padding: 0.5em; + z-index: 3000; + display: none; + } + + #outer > #toc img:hover { + cursor: pointer; + background-color: #000; + } + + #outer > #toc > ul { + position: fixed; + top: 30%; + background-color: #fff; + min-height: 200px; + max-height: 65%; + overflow-y: auto; + padding: 0.5em 0; + border-top: 1px solid #bbb; + border-bottom: 1px solid #bbb; + z-index: 3000; + } + #outer > #toc a { + font-size: 1.2em; + color: #304b67; + text-decoration: none; + padding: 0 0.5em; + } + #outer > #toc a:hover { + color: #000; + } + + @media all and ( max-width: 640px ){ + #outer > #toc { + display: none; + } + } diff --git a/templates/wrapper.xsl b/templates/wrapper.xsl index 313280c..bb1dee0 100644 --- a/templates/wrapper.xsl +++ b/templates/wrapper.xsl @@ -143,7 +143,10 @@ - + + + +