From 2cdd2a0a543f0bced8284ca55bc94efadbc7c91f Mon Sep 17 00:00:00 2001 From: Zerebos Date: Mon, 10 Jun 2024 02:17:50 -0400 Subject: [PATCH] Fix several accessibility issues --- src/styles/index.css | 18 ++++++++++++++++++ src/templates/page.ejs | 11 +++++++---- src/templates/tree_item.ejs | 2 +- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/styles/index.css b/src/styles/index.css index 8fc4a2fc9..a8a59f844 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -16,6 +16,19 @@ box-sizing: border-box; } +/* +Accent Color Ideas +--text-link: #4693C3; + --text-link: #F9B273; + --text-link: #5CA9BF; + --text-link: #E43F66; +--text-link: #2FB8D1; +--text-link: #A78BFA; +--text-link: #F2B049; +--text-link: #E47B19; + --text-link: #FFB628; +*/ + :root { --background-primary: #333333; --background-secondary: #1F1F1F; @@ -46,6 +59,7 @@ body { font-family: 'Montserrat', 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif; line-height: 1.5; color: var(--text-primary); + margin: 0; } a { @@ -57,6 +71,10 @@ a:hover { text-decoration: underline; } +pre, code, kbd, samp { + font-family: "JetBrains Mono", Consolas, monospace; +} + diff --git a/src/templates/page.ejs b/src/templates/page.ejs index 31d1c593d..b37e07db7 100644 --- a/src/templates/page.ejs +++ b/src/templates/page.ejs @@ -121,11 +121,11 @@ content = content.replaceAll(headingRe, (...match) => {
<% if (subRoot.note.hasRelation("shareLogo")) { %> - /image.png" width="<%= logoWidth %>" height="<%= mobileLogoHeight %>" alt="Logo" /> + /image.png" width="32" height="<%= mobileLogoHeight %>" alt="Logo" /> <% } %> <%= subRoot.note.title %> - +
@@ -138,9 +138,9 @@ content = content.replaceAll(headingRe, (...match) => { <%= subRoot.note.title %>
- Site Theme + Site Theme
diff --git a/src/templates/tree_item.ejs b/src/templates/tree_item.ejs index 84762bb20..ded45a556 100644 --- a/src/templates/tree_item.ejs +++ b/src/templates/tree_item.ejs @@ -7,7 +7,7 @@ const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : " <% if (note.noteId !== subRoot.note.noteId) { %> > - <% if (note.hasVisibleChildren()) { %><% } %> + <% if (note.hasVisibleChildren()) { %><% } %> <%= note.title %> <% } %>