From: Paul Hänsch Date: Thu, 24 Mar 2022 11:43:05 +0000 (+0100) Subject: css for toc macro, basic attachment list, some improvements in page structure X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c6cb47f6bf0415592ccd04e8fb6ccf5d804cab3d;p=shellwiki css for toc macro, basic attachment list, some improvements in page structure --- diff --git a/themes/default.css b/themes/default.css index 864d966..baeeee6 100644 --- a/themes/default.css +++ b/themes/default.css @@ -1,37 +1,36 @@ -html { - min-height: 100%; -} +html { min-height: 100%; } body { position: absolute; width: 100%; min-height: 100%; -} - -footer { - position: absolute; - bottom: 0; + padding-bottom: 6em; } header, footer { + background-color: #FFF; box-shadow: 0 0 .75em; width: 100%; z-index: 1; - background-color: inherit; } -header :last-child, main :last-child { - margin-bottom: 0; +footer { + position: absolute; + bottom: 0; } -header h2, header .menu { - display: inline-block; +header :last-child, +main :last-child { + margin-bottom: 0; } +header h2, header .menu { - list-style: none; + display: inline-block; } +header .menu { list-style: none; } + header .menu li { display: inline-block; margin-right: .5em; @@ -48,11 +47,54 @@ main .pagemenu li { display: inline-block; margin-right: 1em; } -main .pagemenu li a { - color: #FFF; +main .pagemenu li a { color: #FFF; } + +main article { + margin: 1em; + padding: .125em 1em 1em 1em; + box-shadow: .25em .25em .75em; } + +/* === Editor === */ + body.editor textarea { width: 100%; min-height: 20em; } + +/* === Attachments === */ + +.attachment.list .size, +.attachment.list .date { + font-size: .875em; + top: -.25em; +} + +.attachment.list .name:after { + white-space: pre-line; + content: "\0a"; +} +.attachment.list .size { + margin-right: 1em; +} + + +/* === Macros === */ + +.macro.toc { + display: inline-block; + list-style-position: inside; + margin-left: 0; + background-color: #DDD; + background-color: rgba(0, 0, 0, .125); + padding: .75em 1em; + border: 1pt solid; + border-radius: 2pt; +} +.macro.toc li.h2 { margin-left: 1.25em; } +.macro.toc li.h3 { margin-left: 2.5em; } +.macro.toc li.h4 { margin-left: 3.75em; } +.macro.toc li.h5 { margin-left: 5em; } +.macro.toc li.h6 { margin-left: 6.25em; } +