From 34b6748f6bb08f856099326ac4d8d2c82692bc82 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Fri, 10 Aug 2018 20:26:31 -0700 Subject: [PATCH] Tweak navbar styles and animations --- web/components/navbar/index.js | 2 +- web/styles/spacing.sass | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/navbar/index.js b/web/components/navbar/index.js index 17ad5a5c..7d23019b 100644 --- a/web/components/navbar/index.js +++ b/web/components/navbar/index.js @@ -48,7 +48,7 @@ class Navbar extends React.Component { const atTop = offset < 96; // Calculate transparency - const transparent = scrollingDown ? offset < 256 : atTop; + const transparent = offset < 256; // Update state this.setState({ diff --git a/web/styles/spacing.sass b/web/styles/spacing.sass index 3f910bf8..d5a6fc52 100644 --- a/web/styles/spacing.sass +++ b/web/styles/spacing.sass @@ -56,9 +56,9 @@ $navbar: $spacing-giga padding-right: $spacing-xs &-m padding-right: $spacing-s - &-l - padding-left: $spacing-l - + &-l + padding-right: $spacing-l + // repeating vertical elements &-vertical &-text-inputs