]> git.plutz.net Git - shellwiki/blobdiff - themes/default.css
checkmark symbols for checklists
[shellwiki] / themes / default.css
index b5d34f6cc1f4f1ef1460dc5283f845ce28733f1f..0bd8c2a410486578b172aed0818958200c86bff9 100644 (file)
@@ -6,6 +6,7 @@ body {
   min-height: 100%;
   padding-bottom: 6em;
   background-color: #EEE;
+  font-size: 12pt;
 }
 
 header, footer {
@@ -16,25 +17,48 @@ header, footer {
 }
 
 footer {
+  padding-top: .5em;
   position: absolute;
   bottom: 0;
 }
 
-header :last-child,
-main :last-child {
+header :last-child,
+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 {
@@ -51,24 +75,110 @@ main .pagemenu li {
 main .pagemenu li a { color: #FFF; }
 
 main article,
-[id$="/[attachment]/"] main form.upload,
-[id$="/[attachment]/"] main .attachment.list {
+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$="/[revision]"] main .revisions,
+[id$="/[attachment]"] main > .attachment.list {
+  margin: 1em;
+  padding: 1em 2em;
+}
+[id$="/[revision]"] main .revisions:before,
+[id$="/[attachment]"] main > .attachment.list:before {
+  content: '';
+  position: absolute;
+  top: 0; bottom: 0; left: 0; right: 0;
+  background-color: #FFF;
+  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;
+}
+
+li.task > input[type=checkbox][disabled],
+li.task > p > input[type=checkbox][disabled] {
+  display: none;
+}
+li.task > p:first-child { display: inline-block;}
+
+-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; }
+
+/* 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; }
+*/
+
 
 /* === Editor === */
 
-body.editor textarea {
+[id$="/[edit]"] main .pagemenu {
+  margin-bottom: 1em;
+}
+
+.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;
+}
+
+.tab[name=edithelp] ~ .tab.editor textarea {
   width: 100%;
-  min-height: 20em;
+  font-family: monospace;
+  font-size: inherit;
+}
+
+.tab[name=edithelp] ~ .tab.attach {
+  padding-top: 1em;
+  padding-left: 7em;
+}
+.tab[name=edithelp] ~ .tab.attach .aimg img {
+  float: left;
+  max-height: 4em;
+  margin-left: -6em;
+}
+
+.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 === */
 
+.attachment.list button[name=delete] {
+  font-size: .75em;
+  line-height: 1.25em;
+  margin-right: 1.25em;
+}
 .attachment.list .size,
 .attachment.list .date {
   font-size: .875em;
@@ -83,6 +193,63 @@ body.editor textarea {
   margin-right: 1em;
 }
 
+.revisions li { margin: 1em 0; }
+.revisions li span.hash,
+.revisions li span.date {
+  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;
+}
+[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 === */
 
@@ -102,3 +269,31 @@ body.editor 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;
+}
+
+
+.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; }