From 6f8d70043fb3532f20f2a6339419758c597587f3 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 19 Aug 2020 18:19:28 -0400 Subject: [PATCH] Move coll. navigation to main header for single-user sites This uses the main navigation bar for the Customize and Stats pages, instead of the collection-navigation bar used for multi-user / multi-collection instances. --- less/core.less | 5 +- templates/user/include/header.tmpl | 126 +++++++++++++++-------------- templates/user/include/nav.tmpl | 2 + 3 files changed, 70 insertions(+), 63 deletions(-) diff --git a/less/core.less b/less/core.less index 7dba5b8..b085241 100644 --- a/less/core.less +++ b/less/core.less @@ -1265,7 +1265,7 @@ header { } } &.singleuser { - margin: 0.5em 0.25em; + margin: 0.5em 1em 0.5em 0.25em; nav#user-nav { nav > ul > li:first-child { img { @@ -1273,6 +1273,9 @@ header { } } } + .right-side { + padding-top: 0.5em; + } } .dash-nav { font-weight: bold; diff --git a/templates/user/include/header.tmpl b/templates/user/include/header.tmpl index 21a81ff..9c4effa 100644 --- a/templates/user/include/header.tmpl +++ b/templates/user/include/header.tmpl @@ -1,76 +1,78 @@ {{define "user-navigation"}}
+
{{end}} {{define "header"}} diff --git a/templates/user/include/nav.tmpl b/templates/user/include/nav.tmpl index f159e35..6e208cb 100644 --- a/templates/user/include/nav.tmpl +++ b/templates/user/include/nav.tmpl @@ -3,6 +3,7 @@ {{end}} {{define "collection-nav"}} + {{if not .SingleUser}}
+ {{end}} {{end}}