X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=e23c18210e4f368410fc88855e88d1fce72d4ecb;hb=295a04b184bb6cd427c35c58f88d3d35a0552ed8;hp=eacc66c36171c969a438adc26a59a1ec670f2b41;hpb=1b8f9a660793917c33769e345500814f5b5cdd60;p=shellwiki diff --git a/themes/default.css b/themes/default.css index eacc66c..e23c182 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,38 @@ 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 > 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 { @@ -91,11 +114,42 @@ main pre { body[id$="/[edit]"] textarea, body[id$="/[newpage]"] textarea { width: 100%; - min-height: 20em; min-height: 70vh; + min-height: 20em; min-height: 50vh; font-family: monospace; font-size: inherit; } +[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 { + 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; +} +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help { + padding-top: 1em; + padding-left: 7em; +} +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg 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; } + + /* === Attachments === */ .attachment.list button[name=delete] { @@ -123,39 +177,46 @@ body[id$="/[newpage]"] textarea { margin-right: 1em; } -[id$="/[attachment]"] input[type=radio].tab ~ ul.attachment.list.tab { +[id$="/[attachment]"] input[type=radio].tab ~ div.tab { display: block; - margin-left: 0; padding-top: 1em; +} +[id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list { list-style: none; + margin-left: 0; } -ul.attachment.list.tab li input[name=select], -ul.attachment.list.tab li label.name, -ul.attachment.list.tab li a.name, -ul.attachment.list.tab li input.name { +.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 ~ ul li a.name, -[id$="/[attachment]"] input[type=radio].tab#tdel:checked ~ ul li input[name=select], -[id$="/[attachment]"] input[type=radio].tab#tdel:checked ~ ul li label.name, -[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ ul li input[name=select], -[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ ul li label.name { +[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 ~ ul li input.name { +[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 ~ button[name=action][value=delete], -[id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ button[name=action][value=move], -[id$="/[attachment]"] input[type=radio].tab#tren:checked ~ button[name=action][value=rename] { - display: 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 { @@ -174,3 +235,13 @@ ul.attachment.list.tab li input.name { .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; +}