From d9ce01f74be9f2d7f0535ca74b23d649711b99c9 Mon Sep 17 00:00:00 2001 From: Sarah Conway Date: Wed, 25 Apr 2018 13:55:36 -0700 Subject: [PATCH] Refactor the navigation bar for desktop, tablet, and mobile. Specifically, the navigation bar now shrinks in height on scroll and when on devices smaller than 768px. Additionally, the search box disappears at the 1280px break point to avoid text wrapping. A JavaScript file was added (main.js) to apply the "compressed" class when scrolling, which is what provides the menu shrinking. --- .../archives/mailarchives/templates/base.html | 1 + django/media/css/main.css | 66 +++++++++++++------ django/media/js/main.js | 5 ++ 3 files changed, 52 insertions(+), 20 deletions(-) create mode 100644 django/media/js/main.js diff --git a/django/archives/mailarchives/templates/base.html b/django/archives/mailarchives/templates/base.html index 28bf6e0..9c44853 100644 --- a/django/archives/mailarchives/templates/base.html +++ b/django/archives/mailarchives/templates/base.html @@ -94,6 +94,7 @@ +