X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.css;h=ae1cdf9ec0376bc16d4c85a99da232b0c335efd9;hb=3be0846ae20cbd5bcfb52d2b17306e621bd5170e;hp=d35e1bf6ba26502cbee48061e01659924ba1b5a1;hpb=426626a2d40a2e4486d979ff64b71e6504ba469d;p=shellwiki diff --git a/themes/default.css b/themes/default.css index d35e1bf..ae1cdf9 100644 --- a/themes/default.css +++ b/themes/default.css @@ -1,3 +1,19 @@ +/* +# Copyright 2022 - 2023 Paul Hänsch +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ + html { min-height: 100%; } body { @@ -84,6 +100,19 @@ main > form#deletepage, background-color: #FFF; } +main > form#deletepage label[for=delsub] { + text-decoration: underline; +} +main > form#deletepage input#delsub:checked + label + ul li.delsub { + text-decoration: line-through; +} + +main > form#movepage input, +main > form#renamepage input { + min-width: 30em; + max-width: 100%; +} + [id$="/[revision]"] main .revisions, [id$="/[attachment]"] main > .attachment.list { margin: 1em; @@ -100,70 +129,153 @@ main > form#deletepage, main code { padding: .125em .25em; - background-color: #CCC; + background-color: #EEE; } main pre { padding: .5em .5em; - background-color: #CCC; + background-color: #EEE; max-width: 100%; overflow-x: auto; } +main pre > code { + padding: 0; +} -/* === Editor === */ - -body[id$="/[edit]"] textarea, -body[id$="/[newpage]"] textarea { - width: 100%; - min-height: 20em; min-height: 50vh; - font-family: monospace; - font-size: inherit; +li.task > input[type=checkbox][disabled], +li.task > p > input[type=checkbox][disabled] { + display: none; } +li.task > p:first-child { display: inline-block;} -[id$="/[edit]"] main { - padding-top: 2.5em; +-li.task:before { font-size: 1.125em; } +li.task.pending:before { content: '\274f '; color: #222; } +li.task.partial:before { content: '\25d4 '; color: #880; } +li.task.negative:before { content: '\2718 '; color: #800; } +li.task.done:before { content: '\2714 '; color: #080; } +li.task.unsure:before { content: '? ' ; color: #880; font-weight: bold; padding-left: 2pt; } + +/* Alternative Check Symbols, all from "geometric shapes" block */ /* +-li.task.pending:before { content: '\25a1 '; color: #222; } +-li.task.partial:before { content: '\25d4 '; color: #880; } +-li.task.negative:before { content: '\25a8 '; color: #800; } +-li.task.done:before { content: '\25a3 '; color: #080; } +*/ + +h1 { text-align: center; } +.center { text-align: center; } + +form.newpage, form.search { + margin-bottom: 1em; +} +form.search { text-align: center; } +input.search { + min-width: 50%; + max-width: 80%; + max-width: calc(100% - 2.5em); +} +ul.searchresults, ol.searchresults { + margin-left: auto; margin-right: auto; + width: 100%; max-width: 540pt; + text-align: center; } -[id$="/[edit]"] input[type=radio].tab ~ div.tab.syntax, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help, -[id$="/[newpage]"] input[type=radio].tab ~ div.tab.syntax, -[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help { - background-color: #FFF; - min-height: 20em; min-height: 50vh; + +table { + min-width: 50%; + margin-left: auto; + margin-right: auto; } -[id$="/[edit]"] input[type=radio].tab#edtr:checked ~ form.tab.editor, -[id$="/[newpage]"] input[type=radio].tab#edtr:checked ~ form.tab.editor { - display: block; + +@media(min-width: 540pt) { + .half { + display: inline-block; + width: 50%; + padding-right: 1em; + vertical-align: top; + } + .right { + float: right; + clear: both; + width: 33%; + margin: .25em 0 .5em 1em; + } + .left { + float: left; + clear: both; + width: 33%; + margin: .25em 1em .5em 0; + } + .left .left, .left .right, + .right .left, .right .right, + .half .left, .half .right { + float: none; + width: 100%; + margin: .25em 0 .5em 0; + } + section.left > :first-child, + section.right > :first-child { + float: none; + margin: 0 0 .5em 0; + } + .left > section:first-child > :first-child, + .right > section:first-child > :first-child { + margin-top: 0; + } + .left table, .right table, .half table { + width: 100%; + } + + .left input.search, + .right input.search { + width: 80%; + width: calc(100% - 2.5em); + } + ul.searchresults, ol.searchresults { + min-width: 50%; + } } -[id$="/[edit]"] input[type=radio].tab#help:checked ~ div.tab.syntax, -[id$="/[newpage]"] input[type=radio].tab#help:checked ~ div.tab.syntax { - display: block; + + +/* === Editor === */ + +[id$="/[edit]"] main .pagemenu { + margin-bottom: 1em; } -[id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help, -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help, -[id$="/[newpage]"] input[type=radio].tab#himg:checked ~ div.tab.help, -[id$="/[newpage]"] input[type=radio].tab#hdoc:checked ~ div.tab.help { - display: block; + +.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 ~ div.tab.help .himg, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .hdoc, -[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .himg, -[id$="/[newpage]"] 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, -[id$="/[newpage]"] 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, -[id$="/[newpage]"] 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, -[id$="/[newpage]"] input[type=radio].tab#himg:checked ~ div.tab.help .himg { display: block; } -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help .hdoc, -[id$="/[newpage]"] 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 === */ @@ -193,6 +305,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; @@ -251,13 +375,43 @@ 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; + clear: both; } .macro.gallery img { max-height: 9em; margin: 0 .25em; } + + +ul.macro.tag { padding: 0; } +.macro.tag li.tag { + display: inline-block; + color: #FFF; + background-color: #333; + font-size: .875em; + padding: 0 .5em; + margin: .25em .25em 0 0; + border-radius: .375em; +} + + +.macro.changes td .date { + display: block; + font-size: .75em; +} +.macro.changes td.outdated, +.macro.changes td.current, +.macro.changes td.missing { + text-align: center; +} +.macro.changes th { background-color: #EEF; } +.macro.changes td { background-color: #DFF; } +.macro.changes td.outdated { background-color: #FFD; } +.macro.changes td.current { background-color: #DFD; } +.macro.changes td.missing { background-color: #FDD; }