Mercurial > moin-mfact
changeset 29:991206cc375f
Place the table of contents for msie, still sticks out in 5.0 but is readable
| author | Radomir Dopieralski <devel@sheep.art.pl> |
|---|---|
| date | Thu, 05 Jun 2008 23:16:04 +0200 |
| parents | 409394dbb9f0 |
| children | 8310af7850fd |
| files | mfact.py mfact/css/common.css mfact/css/msie.css mfact/css/screen.css |
| diffstat | 4 files changed, 23 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/mfact.py Thu Jun 05 18:02:51 2008 +0200 +++ b/mfact.py Thu Jun 05 23:16:04 2008 +0200 @@ -256,12 +256,12 @@ html.append(link % (self.stylesheetsCharset, media, csshref)) csshref = '%s/%s/css/msie.css' % (prefix, self.name) - html.append(""" -<!-- css only for MSIE browsers --> -<!--[if IE 5]> - %s -<![endif]--> -""" % link % (self.stylesheetsCharset, 'all', csshref)) +# html.append(""" +#<!-- css only for MSIE browsers --> +#<!--[if IE 5]> +# %s +#<![endif]--> +#""" % link % (self.stylesheetsCharset, 'all', csshref)) html.append(""" <!-- css only for MSIE browsers --> <!--[if IE 5.5]>
--- a/mfact/css/common.css Thu Jun 05 18:02:51 2008 +0200 +++ b/mfact/css/common.css Thu Jun 05 23:16:04 2008 +0200 @@ -122,19 +122,26 @@ } /* TableOfContents macro */ -.table-of-contents { border: 1px solid #bbbbbb; - color: black; background-color: #eeeeee; +.table-of-contents { + color: black; + background: #fff url(../toc_background.gif) no-repeat; font-size: small; text-align:left; margin: 0.5em -188px 0.5em 0.5em; - padding: 0.25em; - width:50%; + padding: 5px; + width:260px; float: right; } .table-of-contents ol { padding: 0; margin:0; margin-left:2.5em; list-style-type:decimal; } .table-of-contents ul { padding: 0; margin:0; list-style-type:none; } .table-of-contents li { margin:0; padding: 0 } -.table-of-contents-heading { font-weight:bold; padding:0; margin:0; } +.table-of-contents-heading { + font-weight:bold; + padding:0; margin: 0.5em 0 0.75em 0.25em; + color:#d42029; + font-size: 120%; + letter-spacing: 0.05em; +} .footnotes div {
--- a/mfact/css/msie.css Thu Jun 05 18:02:51 2008 +0200 +++ b/mfact/css/msie.css Thu Jun 05 23:16:04 2008 +0200 @@ -36,3 +36,7 @@ div#content { height: 360px; } + +div.table-of-contents { + margin: 0.5em -112px 0.5em 0.5em; +}
--- a/mfact/css/screen.css Thu Jun 05 18:02:51 2008 +0200 +++ b/mfact/css/screen.css Thu Jun 05 23:16:04 2008 +0200 @@ -70,7 +70,7 @@ } div#content { - padding: 0.5em 32px 1.5em 32px; + padding: 0.5em 224px 1.5em 32px; background: url(../content_background.png) repeat-y; min-height: 360px; } @@ -108,7 +108,6 @@ div#content { line-height:1.35em; font-size: 99%; - padding-right: 224px; } div#content a { color:#4c6dcd;
