summaryrefslogtreecommitdiff
path: root/sass/_base.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/_base.scss')
-rw-r--r--sass/_base.scss47
1 files changed, 47 insertions, 0 deletions
diff --git a/sass/_base.scss b/sass/_base.scss
new file mode 100644
index 0000000..d460c41
--- /dev/null
+++ b/sass/_base.scss
@@ -0,0 +1,47 @@
+body {
+ min-height: 100vh;
+ overflow-x: hidden;
+ overflow-wrap: anywhere;
+ background: var(--color-bg);
+ color: var(--color-text);
+ font-family: var(--font-sans);
+ font-size: 1rem;
+ line-height: 1.75;
+ text-rendering: optimizeLegibility;
+}
+
+main,
+article,
+section,
+div {
+ min-width: 0;
+}
+
+a {
+ color: var(--color-link);
+ text-decoration-line: underline;
+ text-decoration-thickness: 0.075em;
+ text-underline-offset: 0.18em;
+}
+
+a:hover {
+ color: var(--color-link-hover);
+}
+
+:focus-visible {
+ outline: 3px solid var(--color-focus);
+ outline-offset: 3px;
+}
+
+::selection {
+ background: var(--color-link);
+ color: var(--color-bg);
+}
+
+.external-link::after {
+ display: inline-block;
+ margin-left: 0.2em;
+ content: "↗";
+ font-size: 0.78em;
+ text-decoration: none;
+}