]> git.plutz.net Git - shellwiki/commitdiff
styling for .half .left .right .center classes and search
authorPaul Hänsch <paul@plutz.net>
Sat, 23 Sep 2023 16:39:23 +0000 (18:39 +0200)
committerPaul Hänsch <paul@plutz.net>
Sat, 23 Sep 2023 16:39:23 +0000 (18:39 +0200)
themes/default.css

index 0bb82b6d7916ebc8da949960d4b3d17132383176..3ab96e627de06976058aee56a8d03ed2e2d40aa8 100644 (file)
@@ -152,6 +152,59 @@ 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.search { text-align: center; }
+input.search {
+  min-width: 50%;
+  max-width: 80%;
+  max-width: calc(100%  - 2.5em);
+}
+ul.searchresults, ol.searchresults {
+  margin-top: 1em;
+  margin-left: auto; margin-right: auto;
+  width: 100%; max-width: 540pt;
+  text-align: center;
+}
+
+@media(min-width: 540pt) {
+  .half {
+    display: inline-block;
+    width: 50%;
+    padding-right: 1em;
+    vertical-align: top;
+  }
+  .right {
+    float: right;
+    width: 33%;
+    margin: .25em 0 .5em 1em;
+  }
+  .left {
+    float: left;
+    width: 33%;
+    margin: .25em 1em .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  input.search,
+  .right input.search {
+    width: 80%;
+    width: calc(100% - 2.5em);
+  }
+  ul.searchresults, ol.searchresults {
+    min-width: 50%;
+  }
+}
+
 
 /* === Editor === */