diff options
| -rw-r--r-- | assets/main.css | 32 | ||||
| -rw-r--r-- | assets/trees.js | 2 |
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 ) { |
