From 3eab24d67588ffaf530f03e50c41b48169992f94 Mon Sep 17 00:00:00 2001 From: Wyatt Allen Date: Tue, 21 Jun 2016 16:00:41 -0700 Subject: [PATCH] Adds navigation to settings Adds a navigation element to the side of the PolyGerrit settings page which displays links to the available sections. The element uses a responsive layout that hides it on smaller screens. Change-Id: Id2d7a7e694f01dd4065629c114be78e09e3c6cac --- .../gr-settings-view/gr-settings-view.html | 70 ++++++++++++++++--- .../gr-settings-view/gr-settings-view.js | 22 ++++++ 2 files changed, 83 insertions(+), 9 deletions(-) diff --git a/polygerrit-ui/app/elements/settings/gr-settings-view/gr-settings-view.html b/polygerrit-ui/app/elements/settings/gr-settings-view/gr-settings-view.html index 9da78aa03c..f4c5184102 100644 --- a/polygerrit-ui/app/elements/settings/gr-settings-view/gr-settings-view.html +++ b/polygerrit-ui/app/elements/settings/gr-settings-view/gr-settings-view.html @@ -55,21 +55,63 @@ limitations under the License. #newEmailInput { width: 20em; } - @media only screen and (max-width: 40em) { + nav { + border: 1px solid #eee; + border-top: none; + position: absolute; + top: 0; + width: 14em; + } + nav.pinned { + position: fixed; + } + nav ul { + margin: 1em 2em; + } + nav a { + color: black; + display: inline-block; + margin: .4em 0; + } + @media only screen and (max-width: 67em) { + main { + margin: 2em 0 2em 15em; + } + } + @media only screen and (max-width: 53em) { .loading { padding: 0 var(--default-horizontal-margin); } main { margin: 2em 1em; } + nav { + display: none; + } }
Loading...