X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=a8bdfbcea9b355b7bdb00487dc8de0f1db4eeb22;hb=b0ccec5d3d972350accfc64149bf724c29bf577a;hp=91458c3f169e4e1576e1fc419b8305a0f9ea3357;hpb=278f5b7fd6be2c7dba2c00dd78b75ad2c4366712;p=shellwiki diff --git a/themes/default.css b/themes/default.css index 91458c3..a8bdfbc 100644 --- a/themes/default.css +++ b/themes/default.css @@ -17,6 +17,7 @@ header, footer { } footer { + padding-top: .5em; position: absolute; bottom: 0; } @@ -26,16 +27,21 @@ main > :last-child { margin-bottom: 0; } +header h1, header h2, -header .menu { +header .menu, +footer .menu { display: inline-block; } -header .menu { list-style: none; } +header .menu, +footer .menu { list-style: none; } -header .menu li { +header .menu li, +footer .menu li { display: inline-block; margin-right: .5em; + vertical-align: top; } main .pagemenu { @@ -54,7 +60,7 @@ main .pagemenu li a { color: #FFF; } main article, main > form#renamepage, main > form#movepage, main > form#deletepage, -[id$="/[attachment]"] main form.upload { +[id$="/[attachment]"] main > form { margin: 1em; padding: .125em 1em 1em 1em; box-shadow: .25em .25em .75em; @@ -62,12 +68,12 @@ main > form#deletepage, } [id$="/[revision]"] main .revisions, -[id$="/[attachment]"] main .attachment.list { +[id$="/[attachment]"] main > .attachment.list { margin: 1em; padding: 1em 2em; } [id$="/[revision]"] main .revisions:before, -[id$="/[attachment]"] main .attachment.list:before { +[id$="/[attachment]"] main > .attachment.list:before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; @@ -75,6 +81,16 @@ main > form#deletepage, 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 === */ @@ -113,6 +129,46 @@ body[id$="/[newpage]"] textarea { 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 === */ .macro.toc {