about summary refs log tree commit diff
path: root/sass/style.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/style.scss')
-rw-r--r--sass/style.scss169
1 files changed, 169 insertions, 0 deletions
diff --git a/sass/style.scss b/sass/style.scss
new file mode 100644
index 0000000..8373bc0
--- /dev/null
+++ b/sass/style.scss
@@ -0,0 +1,169 @@
+@charset "utf-8";
+
+$black: black;
+$white: #dfdfdf;
+$muted: grey;
+// more readable colour?
+$accent: #d39fa3;
+
+html {
+  font-size: calc(min(max(1rem, 4vw), 16px));
+}
+
+body {
+  font-family: 'Sarasa Gothic SC', monospace;
+  display: flex;
+  flex-flow: row;
+}
+
+header.top-header {
+  align-items: center;
+  justify-content: center;
+  text-align: center;
+
+  a {
+    text-decoration: none;
+    color: $accent;
+  }
+  .header-title {
+    font-size: 30px;
+  }
+  .header-description {
+    margin: 5px auto;
+    font-size: 15px;
+    padding-bottom: 10px;
+  }
+}
+
+#main {
+  display: flex;
+  flex: auto;
+  align-items: center;
+  flex-flow: column;
+  min-height: 100vh;
+  padding: 1em;
+  overflow: hidden;
+}
+
+#main > nav {
+  text-align: center;
+}
+
+#main > main, #main > footer {
+  width: 90vw;
+  max-width: 70em;
+}
+
+#main > footer {
+  padding-top: 50px;
+}
+
+#intro {
+  width: 100%;
+  min-height: 100vh;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  text-align: center;
+  box-sizing: border-box;
+}
+
+a, a:visited {
+  color: inherit;
+}
+
+a:hover {
+  text-decoration: dotted;
+}
+
+pre {
+  padding: 1em;
+  // border-radius: 0.5em;
+  border: 1px solid darken($white, 30%);
+  overflow-x: auto;
+  white-space: pre;
+  word-wrap: normal;
+}
+
+:not(pre) > code {
+  display: inline-block;
+  padding: 2px;
+  border: 1px solid darken($white, 30%);
+  background-color: $white;
+}
+
+hr {
+  border: none;
+  border-top: 1px solid $muted;
+  max-width: 25px;
+  margin: 35px auto;
+}
+
+.title a {
+  text-decoration: none;
+  color: inherit;
+}
+
+.post-meta {
+  font-size: smaller;
+  color: $muted;
+}
+
+.alt-links {
+  float: right;
+  color: $muted;
+  margin: 30px 0;
+}
+
+.muted {
+  color: $muted;
+}
+
+.split-horizontal {
+  border-bottom: 1px solid $muted;
+  padding: 5px 20px;
+}
+
+.article-list article h3 {
+  display: inline-block;
+  margin: 0;
+}
+
+.article-list article .post-meta {
+  font-size: smaller;
+  margin: 0;
+  padding-bottom: 10px;
+}
+
+article > header time {
+  color: $muted;
+  white-space: nowrap;
+}
+
+article > footer {
+  text-align: center;
+}
+
+@media (prefers-color-scheme: dark) {
+  body {
+    background-color: $black;
+    color: $white;
+  }
+  pre {
+    border: 1px solid lighten($black, 30%);
+  }
+  :not(pre) > code {
+    border: 1px solid lighten($black, 30%);
+    background-color: lighten($black, 15%);
+  }
+}
+
+@media print {
+//   header.top-header {
+//     display: none;
+//   }
+  #main nav {
+    display: none;
+  }
+}