X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=3e924b57de1d8702a7e0b116d6670469f27b488f;hb=38ff8ee6b338da29811d174485f19d84eb4b221a;hp=e23c18210e4f368410fc88855e88d1fce72d4ecb;hpb=c895cb5c92f3b1ab8c61821d79ba2c1438eec304;p=shellwiki diff --git a/themes/default.css b/themes/default.css index e23c182..3e924b5 100644 --- a/themes/default.css +++ b/themes/default.css @@ -111,43 +111,45 @@ main pre { /* === Editor === */ -body[id$="/[edit]"] textarea, -body[id$="/[newpage]"] textarea { - width: 100%; - min-height: 20em; min-height: 50vh; - font-family: monospace; - font-size: inherit; +[id$="/[edit]"] main .pagemenu { + margin-bottom: 1em; } -[id$="/[edit]"] main { - padding-top: 2.5em; -} -[id$="/[edit]"] input[type=radio].tab ~ div.tab.syntax, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help { +.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; } -[id$="/[edit]"] input[type=radio].tab#edtr:checked ~ form.tab.editor { display: block; } -[id$="/[edit]"] input[type=radio].tab#help:checked ~ div.tab.syntax { display: block; } -[id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help, -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help { - display: block; -} -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .hdoc { - display: none; + +.tab[name=edithelp] ~ .tab.editor textarea { + width: 100%; + font-family: monospace; + font-size: inherit; } -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help { + +.tab[name=edithelp] ~ .tab.attach { padding-top: 1em; padding-left: 7em; } -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg img { +.tab[name=edithelp] ~ .tab.attach .aimg img { float: left; max-height: 4em; margin-left: -6em; } -[id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help .himg { display: block; } -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help .hdoc { display: block; } + +.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 === */ @@ -177,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;