summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorNinoReichardt <nino.reichardt@oakk.nl>2026-11-17 21:53:50 +0100
committerNinoReichardt <nino.reichardt@oakk.nl>2026-11-17 21:53:50 +0100
commit3ebe581baa81d3bdc4f7f2559553a8b9099341ea (patch)
tree2e1de5d00f5a2137a4d2e647ab65fd71738512f5 /assets
parentdf39fc1496a23e50a5b3c9d7a32493610ca8847f (diff)
downloadnire-web-3ebe581baa81d3bdc4f7f2559553a8b9099341ea.tar.gz
nire-web-3ebe581baa81d3bdc4f7f2559553a8b9099341ea.zip
fix: colors and trees bounds bug
Diffstat (limited to 'assets')
-rw-r--r--assets/main.css32
-rw-r--r--assets/trees.js2
2 files changed, 30 insertions, 4 deletions
diff --git a/assets/main.css b/assets/main.css
index 183a948..abb2876 100644
--- a/assets/main.css
+++ b/assets/main.css
@@ -12,9 +12,11 @@
--color-background: #eee;
--color-text: #333;
- --color-muted: #666;
+ --color-muted: #4a4a4a;
--color-heading: #000;
-
+ --color-accent: #004a99;
+ --color-accent-active: #00366f;
+ --color-link-visited: #58465e;
--text-sm: 0.875rem;
--text-base: 1rem;
@@ -48,6 +50,26 @@ h1, h2 {
h1 { font-size: var(--text-title); }
h2 { font-size: var(--text-section); }
+a:any-link {
+ color: var(--color-accent);
+ text-decoration: underline;
+ text-underline-offset: 0.15em;
+}
+
+a:visited {
+ color: var(--color-link-visited);
+}
+
+a:any-link:hover, a:any-link:active {
+ color: var(--color-accent-active);
+ text-decoration-thickness: 0.125em;
+}
+
+:focus-visible {
+ outline: 2px solid var(--color-accent);
+ outline-offset: 3px;
+}
+
ul li {
padding-block: 0.25rem;
}
@@ -59,7 +81,11 @@ hr {
border-top: 1px solid var(--color-muted);
}
-small { font-size: var(--text-sm); }
+small {
+ font-size: var(--text-sm);
+ color: var(--color-muted);
+}
+
b, strong { font-weight: 700; }
.padding-x-md {
diff --git a/assets/trees.js b/assets/trees.js
index ffead63..95b58da 100644
--- a/assets/trees.js
+++ b/assets/trees.js
@@ -115,7 +115,7 @@
if (
branch.x2 > width + BRANCH_LIMIT_PADDING ||
- branch.x2 < -BRANCH_LIMIT_PADDING &&
+ branch.x2 < -BRANCH_LIMIT_PADDING ||
branch.y2 > height + BRANCH_LIMIT_PADDING ||
branch.y2 < -BRANCH_LIMIT_PADDING
) {