X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=3e924b57de1d8702a7e0b116d6670469f27b488f;hb=38ff8ee6b338da29811d174485f19d84eb4b221a;hp=a8bdfbcea9b355b7bdb00487dc8de0f1db4eeb22;hpb=3635f9733d5834a9fe46b762a59292273494da3e;p=shellwiki diff --git a/themes/default.css b/themes/default.css index a8bdfbc..3e924b5 100644 --- a/themes/default.css +++ b/themes/default.css @@ -37,13 +37,30 @@ footer .menu { header .menu, footer .menu { list-style: none; } -header .menu li, -footer .menu li { +header .menu > ul > li, +header .menu > ol > li, +footer .menu > ul > li, +footer .menu > ol > li { display: inline-block; margin-right: .5em; vertical-align: top; } +header .menu.dropdown li > ul, +header .menu.dropdown li > ol { + display: none; + position: absolute; + background-color: #FFF; + margin: 0; + padding: .25em .5em; + padding-left: 1.5em; + box-shadow: 0 0 .75em; +} +header .menu.dropdown li:hover > ul, +header .menu.dropdown li:hover > ol { + display: table; +} + main .pagemenu { list-style: none; background-color: #666; @@ -94,14 +111,47 @@ main pre { /* === Editor === */ -body[id$="/[edit]"] textarea, -body[id$="/[newpage]"] textarea { +[id$="/[edit]"] main .pagemenu { + margin-bottom: 1em; +} + +.tab[name=edithelp] ~ .tab.editor textarea, +.tab[name=edithelp] ~ .tab.syntax, +.tab[name=edithelp] ~ .tab.attach, +.tab[name=edithelp] ~ .tab.transl { + background-color: #FFF; + min-height: 20em; min-height: 50vh; +} + +.tab[name=edithelp] ~ .tab.editor textarea { width: 100%; - min-height: 20em; min-height: 70vh; font-family: monospace; font-size: inherit; } +.tab[name=edithelp] ~ .tab.attach { + padding-top: 1em; + padding-left: 7em; +} +.tab[name=edithelp] ~ .tab.attach .aimg img { + float: left; + max-height: 4em; + margin-left: -6em; +} + +.tab[name=edithelp] ~ .tab.transl { + font-family: monospace; + white-space: pre; +} + +.tab[name=edithelp]#editor:checked ~ .tab.editor, +.tab[name=edithelp]#syntax:checked ~ .tab.syntax, +.tab[name=edithelp]#attach:checked ~ .tab.attach, +.tab[name=edithelp]#transl:checked ~ .tab.transl { + display: block; +} + + /* === Attachments === */ .attachment.list button[name=delete] { @@ -129,6 +179,18 @@ body[id$="/[newpage]"] textarea { margin-right: 1em; } +.revisions .diff span { + font-family: monospace; + display: block; + white-space: pre; + line-height: 1.375em; +} +.revisions .diff span.linenum { color: #D60; } +.revisions .diff span.linedel { color: #A00; } +.revisions .diff span.lineadd { color: #0A0; } +.revisions .diff span.linenote { color: #AAA; } + + [id$="/[attachment]"] input[type=radio].tab ~ div.tab { display: block; padding-top: 1em; @@ -187,3 +249,13 @@ body[id$="/[newpage]"] textarea { .macro.toc li.h5 { margin-left: 5em; } .macro.toc li.h6 { margin-left: 6.25em; } +.macro.gallery { + text-align: center; + margin: 2em 0; + padding: .5em .125em; + background-color: #444; +} +.macro.gallery img { + max-height: 9em; + margin: 0 .25em; +}