From 489319a3a6fca74315e011ed25b6cb309ee4ebc0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 20 Sep 2019 23:17:57 -0700 Subject: [PATCH] fix: improve nav height on tiny screens, use variables (#1503) --- src/routes/_components/NavItem.html | 5 +-- src/routes/_components/NavItemIcon.html | 8 +--- .../compose/ComposeStickyButton.html | 12 +---- src/routes/_components/list/List.html | 11 +++-- .../_components/status/Notification.html | 3 +- src/routes/_components/status/Status.html | 8 +--- src/routes/_utils/getMainTopMargin.js | 10 ----- src/scss/fonts.scss | 23 ++++++++++ src/scss/global.scss | 33 ++------------ src/scss/variables.scss | 45 +++++++++++++++++++ 10 files changed, 85 insertions(+), 73 deletions(-) delete mode 100644 src/routes/_utils/getMainTopMargin.js create mode 100644 src/scss/fonts.scss create mode 100644 src/scss/variables.scss diff --git a/src/routes/_components/NavItem.html b/src/routes/_components/NavItem.html index 39ec22af..0635c187 100644 --- a/src/routes/_components/NavItem.html +++ b/src/routes/_components/NavItem.html @@ -25,7 +25,7 @@ } .nav-icon-and-label { - padding: 15px 20px; + padding: var(--nav-icon-pad-v) var(--nav-icon-pad-h); display: flex; justify-content: center; align-items: center; @@ -94,9 +94,6 @@ .main-nav-link .nav-link-label { display: none; } - .nav-icon-and-label { - padding: 20px 0; - } }