From 7e1243cdc8adb63f2247d717c92cac2b1765a727 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 12 Jan 2018 23:24:05 -0800 Subject: [PATCH] fix some a11y and organize svgs --- routes/_components/Nav.html | 90 ++++--------------------- routes/_components/NavItem.html | 64 ++++++++++++++++++ routes/_components/NotLoggedInHome.html | 4 +- routes/_components/Status.html | 24 ++++--- templates/2xx.html | 49 ++++++++++++++ 5 files changed, 146 insertions(+), 85 deletions(-) create mode 100644 routes/_components/NavItem.html diff --git a/routes/_components/Nav.html b/routes/_components/Nav.html index 37a9d3f..4033e16 100644 --- a/routes/_components/Nav.html +++ b/routes/_components/Nav.html @@ -1,38 +1,19 @@ @@ -57,61 +38,18 @@ align-items: center; } - a { - border-bottom: 1px solid var(--nav-a-border); - text-decoration: none; - padding: 25px 20px; - display: flex; - justify-content: center; - align-items: center; - } - - a.selected { - border-bottom: 1px solid var(--nav-a-selected-border); - background: var(--nav-a-selected-bg); - } - - a.selected:hover { - border-bottom: 1px solid var(--nav-a-selected-border-hover); - background: var(--nav-a-selected-bg-hover); - } - - a:hover { - background-color: var(--nav-a-bg-hover); - border-bottom: 1px solid var(--nav-a-border-hover); - } - - a:hover span { - color: var(--nav-text-color-hover); - } - a:hover svg { - fill: var(--nav-svg-fill-hover); - } - - svg { - width: 20px; - height: 20px; - display: inline-block; - fill: var(--nav-svg-fill); - } - - span { - font-size: 16px; - color: var(--nav-text-color); - padding-left: 10px; - } - @media (max-width: 767px) { - span { - display: none; - } li { flex-basis: 100%; - } - svg { - width: 25px; - height: 25px; } } - \ No newline at end of file + + \ No newline at end of file diff --git a/routes/_components/NavItem.html b/routes/_components/NavItem.html new file mode 100644 index 0000000..b726891 --- /dev/null +++ b/routes/_components/NavItem.html @@ -0,0 +1,64 @@ + + + + + {{label}} + + + \ No newline at end of file diff --git a/routes/_components/NotLoggedInHome.html b/routes/_components/NotLoggedInHome.html index f804182..d49172c 100644 --- a/routes/_components/NotLoggedInHome.html +++ b/routes/_components/NotLoggedInHome.html @@ -1,6 +1,8 @@

Pinafore is a web client for Mastodon, optimized for speed and simplicity.

diff --git a/routes/_components/Status.html b/routes/_components/Status.html index 8b818b7..87c0cc4 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -9,17 +9,25 @@
{{{status.content}}}
diff --git a/templates/2xx.html b/templates/2xx.html index 3a3105f..998bfd3 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -26,6 +26,55 @@ %sapper.head% + + + + + + Notifications + + + + + Local + + + + + Federated + + + + + Settings + + + + + + Reply + + + + + Boost + + + + + Favorite + + + + + More + + + +
%sapper.html%