]> git.plutz.net Git - shellwiki/blobdiff - themes/default.css
improved styling and options of search macro
[shellwiki] / themes / default.css
index eb4e303ac047e73a20dd76321b21e8b4611280ea..a1ea010d118220f5b0f123b9bf08e6f3f4c0a9c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-# Copyright 2022 - 2023 Paul Hänsch
+# Copyright 2022 - 2024 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
@@ -107,6 +107,12 @@ 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;
@@ -123,14 +129,17 @@ main > form#deletepage input#delsub:checked + label + ul li.delsub {
 
 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;
+}
 
 li.task > input[type=checkbox][disabled],
 li.task > p > input[type=checkbox][disabled] {
@@ -152,6 +161,103 @@ li.task.unsure:before   { content: '?  '    ; color: #880; font-weight: bold; pa
 -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, input[type="search"] {
+  min-width: 50%;
+  max-width: 80%;
+  max-width: calc(100%  - 2.5em);
+}
+p.search.hits { text-align: center; }
+ul.search.hits, ol.search.hits {
+  margin-left: auto; margin-right: auto;
+  width: 100%; max-width: 540pt;
+  list-style: none;
+  padding-left: 0;
+}
+.search.hits li {
+  padding: 0 .75em;
+}
+.search.hits li:hover {
+  background-color: #F4F4F4;
+}
+.search.hits li a {
+  display: block;
+}
+.search.hits li p {
+  margin: 0 auto .5em auto;
+  white-space: pre-line;
+}
+.search.hits p.path {
+  color: #444;
+  font-size: .875em;
+  margin-top: -.5em;
+  margin-left: 1.5ex;
+}
+
+table {
+  min-width: 50%;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+@media(min-width: 540pt) {
+  .half {
+    display: inline-block;
+    width: 50%;
+    padding-right: 1em;
+    vertical-align: top;
+  }
+  h1.half, h2.half, h3.half, h4.half, h5.half, h6.half {
+    width: 100%;
+  }
+  .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, .left  input[type="search"],
+  .right input.search, .right input[type="search"] {
+    width: 80%;
+    width: calc(100% - 2.5em);
+  }
+  ul.search.hits, ol.search.hits {
+    min-width: 50%;
+  }
+}
+
 
 /* === Editor === */
 
@@ -307,6 +413,7 @@ li.task.unsure:before   { content: '?  '    ; color: #880; font-weight: bold; pa
 }
 
 
+ul.macro.tag { padding: 0; }
 .macro.tag li.tag {
   display: inline-block;
   color: #FFF;
@@ -318,6 +425,22 @@ li.task.unsure:before   { content: '?  '    ; color: #880; font-weight: bold; pa
 }
 
 
+.macro.taglist li {
+  display: inline-block;
+  margin-right: .75em;
+}
+.macro.taglist.cloud li[rel="0"] { font-size: 6pt; }
+.macro.taglist.cloud li[rel="1"] { font-size: 7.5pt; }
+.macro.taglist.cloud li[rel="2"] { font-size: 9pt; }
+.macro.taglist.cloud li[rel="3"] { font-size: 11.5pt; }
+.macro.taglist.cloud li[rel="4"] { font-size: 13pt; }
+.macro.taglist.cloud li[rel="5"] { font-size: 14.5pt; }
+.macro.taglist.cloud li[rel="6"] { font-size: 16pt; }
+.macro.taglist.cloud li[rel="7"] { font-size: 17.5pt; }
+.macro.taglist.cloud li[rel="8"] { font-size: 19pt; }
+.macro.taglist.cloud li[rel="9"] { font-size: 21.5pt; }
+
+
 .macro.changes td .date {
   display: block;
   font-size: .75em;
@@ -332,3 +455,26 @@ li.task.unsure:before   { content: '?  '    ; color: #880; font-weight: bold; pa
 .macro.changes td.outdated { background-color: #FFD; }
 .macro.changes td.current  { background-color: #DFD; }
 .macro.changes td.missing  { background-color: #FDD; }
+
+
+.macro.calendar.cal_month {
+  border: 1pt solid #AAA;
+  -box-shadow: .25em .25em .75em #AAA;
+}
+.macro.calendar.cal_month td {
+  padding: 0 .25em;
+  vertical-align: top;
+}
+.macro.calendar.cal_month td > label {
+  display: block;
+  background-color: #F4F4F4;
+  text-align: center;
+  margin-right: 0;
+}
+.macro.calendar.cal_month td > ul {
+  padding: .25em 1em;
+  margin-bottom: .125em;
+}
+.macro.calendar.cal_month td > ul > li {
+  display: block;
+}