]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - css/style.css
Further simplify page
[rbdr/r.bdr.sh] / css / style.css
index 91933191ef71fcd663f3c062eb7ee156b5a6c2ce..3008eb3f4a3ca2f4c73457b4238766281c535497 100644 (file)
@@ -5,13 +5,23 @@
 html { scroll-behavior: smooth }
 body {
   font-size: 1em;
-  font: -apple-system-body;
   font-family: "Hoefler Text", "Times New Roman", serif;
   font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
   line-height: 1.6;
   letter-spacing: 0.02em;
   padding: 2em;
 }
+@supports (-webkit-touch-callout: none) {
+  body {
+    font-size: 1em;
+    font: -apple-system-body;
+    font-family: "Hoefler Text", "Times New Roman", serif;
+    font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
+    line-height: 1.6;
+    letter-spacing: 0.02em;
+    padding: 2em;
+  }
+}
 aside {
   clear: both;
   padding: 2em 0;
@@ -61,7 +71,7 @@ pre {
   overflow-x: auto;
   padding: 1em;
 }
-pre[role="img"] { display: none }
+pre[aria-label="rbdr"] { display: none }
 blockquote, p, article > div {
   max-width: 45em
 }
@@ -69,47 +79,24 @@ blockquote {
   border-left: 4px solid #ccc;
   padding-left: 10px;
 }
-br { display: none }
+p { margin: 1em 0 }
+ul { padding-left: 2em }
+br, p:empty { display: none }
 h1, h2, h3 {
-  font-family: "Avenir Next";
+  font-family: "Avenir Next", "Montserrat", "Segoe UI Variable Display", "Noto Sans", "Roboto", "Segoe UI", sans-serif;
   font-weight: 900
 }
-h1 { font-size: 2em }
+h1, h2 {
+  font-size: 2em;
+  text-transform: lowercase;
+}
 h3 {
+  display: inline-block;
   font-weight: 600;
   margin-top: 1em
 }
 
-h2, h3, a { color: #00f }
-[data-title="/index.html"] {
-  .h2:nth-of-type(n+2):nth-of-type(-n+4) {
-    h2, h3, a { color: #EE0700 }
-  }
-
-  .h2:nth-of-type(n+5):nth-of-type(-n+6) {
-    h2, h3, a { color: #398557 }
-  }
-
-  .h2:nth-of-type(n+7):nth-of-type(-n+9) {
-    h2, h3, a { color: #6A5ACD }
-  }
-
-  .h2:nth-of-type(10) {
-    h2, h3, a { color: #A76905 }
-  }
-
-  .h2:nth-of-type(11) {
-    h2, h3, a { color: #1D76DB }
-  }
-
-  .h2:nth-of-type(n+12):nth-of-type(-n+16) {
-    h2, h3, a { color: #D505C6 }
-  }
-
-  .h2:nth-of-type(17) {
-    h2, h3, a { color: #6A788A }
-  }
-}
+h1, h2, h3, a { color: #00f }
 
 .h2 a {
   display: inline-block;
@@ -117,6 +104,11 @@ h2, h3, a { color: #00f }
   margin: 0.25em 0;
 }
 
+header { position: relative }
+main {
+  position: relative;
+  z-index: 1
+}
 header h1 {
   font-size: min(7.5rem, 17vw);
   font-weight: 900;
@@ -156,7 +148,7 @@ canvas {
     background-color: #fff;
     border: 1px solid #fff;
   }
-  h2, h3, a { color: #5dc1fd }
+  h1, h2, h3, a { color: #5dc1fd }
   [data-title="/index.html"] .h2:nth-of-type(n+7):nth-of-type(-n+9) {
     h2, h3, a { color: #675CFB }
   }