From f070e2078348491d6b7a7692f2effa56af630043 Mon Sep 17 00:00:00 2001 From: Helen Sherwood-Taylor Date: Wed, 14 Oct 2020 13:04:27 +0000 Subject: [PATCH] Rearrange main nav bar --- weblab/static/sass/style.scss | 5 +++-- weblab/templates/includes/navbar.html | 15 ++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/weblab/static/sass/style.scss b/weblab/static/sass/style.scss index 4492dde67..7bd59a257 100644 --- a/weblab/static/sass/style.scss +++ b/weblab/static/sass/style.scss @@ -135,7 +135,7 @@ button, } -#usernavbar { +.navbar-submenu { min-width: 100px; ul { @@ -146,9 +146,10 @@ button, padding: 0; /* Aligns drop-down box underneath the menu item */ background-color: #ffffff; - li, li a { + li, & a, & a:hover, & a:active { text-align: left; padding: 0; + white-space: nowrap; } } diff --git a/weblab/templates/includes/navbar.html b/weblab/templates/includes/navbar.html index cc06b3cae..55db0e105 100644 --- a/weblab/templates/includes/navbar.html +++ b/weblab/templates/includes/navbar.html @@ -4,18 +4,23 @@
  • Home
  • {% if user.is_authenticated %}
  • Experiments
  • -
  • My models
  • -
  • My protocols
  • -
  • My datasets
  • + {% else %}
  • Experiments
  • About
  • {% endif %} {% if user.is_authenticated %} -
  • +