From c32d62fbd5661ce7c5ba206c71f7223215741d1c Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:22:11 -0800 Subject: [PATCH] Shrink links to icons on mobile --- static/style.css | 14 +++++++++++++- templates/base.html | 10 ++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 6e725bd..60d7323 100644 --- a/static/style.css +++ b/static/style.css @@ -93,7 +93,8 @@ nav { } nav * { color: var(--text); } -nav #reddit, #code { color: var(--accent); } +nav #reddit, #code > span { color: var(--accent); } +nav #code > svg { stroke: var(--accent); } nav #logo { grid-area: logo; @@ -104,6 +105,11 @@ nav #logo { nav #links { grid-area: links; margin-left: 10px; + display: flex; +} + +nav #links svg { + display: none; } nav #version { @@ -120,6 +126,10 @@ nav #libreddit { opacity: 0.8; } +#code { + margin-left: 5px; +} + main { display: flex; justify-content: center; @@ -1075,6 +1085,8 @@ td, th { } nav #links { margin-left: auto; } + nav #links span { display: none; } + nav #links svg { display: block; } #subscriptions { position: unset; } diff --git a/templates/base.html b/templates/base.html index 7b3ddee..742f5c9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,8 +25,14 @@ {% block search %}{% endblock %}