]> git.plutz.net Git - shellwiki/blobdiff - themes/default.css
handle accidental double language links
[shellwiki] / themes / default.css
index e21c919f4e465614ec21000c5993a27788bdfb62..c4ebf6e447d4b36d30290e383b942ed0eb201024 100644 (file)
@@ -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,58 @@ 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,
+[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;
+}
+[id$="/[edit]"] input[type=radio].tab#edtr:checked ~ form.tab.editor,
+[id$="/[newpage]"] input[type=radio].tab#edtr:checked ~ form.tab.editor {
+  display: block;
+}
+[id$="/[edit]"] input[type=radio].tab#help:checked ~ div.tab.syntax,
+[id$="/[newpage]"] 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,
+[id$="/[newpage]"] input[type=radio].tab#himg:checked ~ div.tab.help,
+[id$="/[newpage]"] 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,
+[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .himg,
+[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .hdoc {
+  display: none;
+}
+[id$="/[edit]"] input[type=radio].tab ~ div.tab.help,
+[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help {
+  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 {
+  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; }
+
+
 /* === Attachments === */
 
 .attachment.list button[name=delete] {
@@ -123,6 +193,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;
@@ -181,3 +263,13 @@ 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;
+}
+.macro.gallery img {
+  max-height: 9em;
+  margin: 0 .25em;
+}