X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=e21c919f4e465614ec21000c5993a27788bdfb62;hb=8a93d4ef20815df18bfc1a580d3cffb8c6a31ea2;hp=c8db7182216a943ab36f4932d2e682cd1e35a2e6;hpb=048d632f308bf93536f35fcebbe56d82671e0a14;p=shellwiki diff --git a/themes/default.css b/themes/default.css index c8db718..e21c919 100644 --- a/themes/default.css +++ b/themes/default.css @@ -6,6 +6,7 @@ body { min-height: 100%; padding-bottom: 6em; background-color: #EEE; + font-size: 12pt; } header, footer { @@ -20,8 +21,8 @@ footer { bottom: 0; } -header :last-child, -main :last-child { +header > :last-child, +main > :last-child { margin-bottom: 0; } @@ -51,18 +52,22 @@ main .pagemenu li { main .pagemenu li a { color: #FFF; } main article, -[id$="/[attachment]/"] main form.upload { +main > form#renamepage, main > form#movepage, +main > form#deletepage, +[id$="/[attachment]"] main > form { margin: 1em; padding: .125em 1em 1em 1em; box-shadow: .25em .25em .75em; background-color: #FFF; } -[id$="/[attachment]/"] main .attachment.list { +[id$="/[revision]"] main .revisions, +[id$="/[attachment]"] main > .attachment.list { margin: 1em; padding: 1em 2em; } -[id$="/[attachment]/"] main .attachment.list:before { +[id$="/[revision]"] main .revisions:before, +[id$="/[attachment]"] main > .attachment.list:before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; @@ -70,12 +75,25 @@ main article, box-shadow: .25em .25em .75em; } +main code { + padding: .125em .25em; + background-color: #CCC; +} +main pre { + padding: .5em .5em; + background-color: #CCC; + max-width: 100%; + overflow-x: auto; +} /* === Editor === */ -body.editor textarea { +body[id$="/[edit]"] textarea, +body[id$="/[newpage]"] textarea { width: 100%; - min-height: 20em; + min-height: 20em; min-height: 70vh; + font-family: monospace; + font-size: inherit; } /* === Attachments === */ @@ -99,6 +117,51 @@ body.editor textarea { margin-right: 1em; } +.revisions li { margin: 1em 0; } +.revisions li span.hash, +.revisions li span.date { + margin-right: 1em; +} + +[id$="/[attachment]"] input[type=radio].tab ~ div.tab { + display: block; + padding-top: 1em; +} +[id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list { + list-style: none; + margin-left: 0; +} + +.tab ul li input[name=select], +.tab ul li label.name, +.tab ul li a.name, +.tab ul li input.name { + display: none; +} + +[id$="/[attachment]"] input[type=radio].tab#tview:checked ~ div.tab ul li a.name, +[id$="/[attachment]"] input[type=radio].tab#tdel:checked ~ div.tab ul li input[name=select], +[id$="/[attachment]"] input[type=radio].tab#tdel:checked ~ div.tab ul li label.name, +[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li input[name=select], +[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li label.name { + display: inline; +} +[id$="/[attachment]"] input[type=radio].tab#tren:checked ~ .tab ul li input.name { + display: block; +} + +[id$="/[attachment]"] label[for=moveto], [id$="/[attachment]"] input#moveto, +[id$="/[attachment]"] button[name=action] { display: none; } + +[id$="/[attachment]"] .upload button[name=action] { display: inline-block; } +[id$="/[attachment]"] input[type=radio].tab#tdel:checked ~ div.tab button[name=action][value=delete], +[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab label[for=moveto], +[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab input#moveto, +[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab button[name=action][value=move], +[id$="/[attachment]"] input[type=radio].tab#tren:checked ~ div.tab button[name=action][value=rename] { + display: inline; +} + /* === Macros === */