From 0c7c3ccae369642013a4f6221170fba68f8b3d01 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 1 Jul 2018 23:25:26 +0200 Subject: [PATCH] Tweak the admin menu --- sass/base_theme.scss | 26 ++++++++++++++++++++++++-- templates/header.html | 7 ------- templates/layout.html | 12 ++++++++++++ 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/sass/base_theme.scss b/sass/base_theme.scss index ec5bd98..e4e2a37 100644 --- a/sass/base_theme.scss +++ b/sass/base_theme.scss @@ -45,7 +45,30 @@ a:hover { background: $primary-color; color: $background-color; } - +#admin-menu { + list-style-type: none; + display: inline; + padding: 10px; + width: 720px; + margin:0 auto; + background: $color-menu-background; + color: $color-light; + border-radius-bottom-left: 2px; + border-radius-bottom-right: 2px; + .left { float: left; } + .right { float: right; } + li { + a { text-decoration: none; } + .admin-title { + text-transform: uppercase; + font-weight: bold; + } + padding-right:10px; + .selected, a:hover { + color: $primary-color; + } + } +} #header { margin-bottom: 70px; @@ -69,7 +92,6 @@ a:hover { padding: 0; li { float:left; - padding-right:10px; margin-bottom:10px; } } diff --git a/templates/header.html b/templates/header.html index 0bfe9a4..1eb54a8 100644 --- a/templates/header.html +++ b/templates/header.html @@ -19,13 +19,6 @@
  • Following {{ following_count }}
  • -{% if logged_in %} -
  • /stream
  • -
  • /notifs
  • -
  • /new
  • -
  • /admin
  • -
  • /logout
  • -{% endif %} diff --git a/templates/layout.html b/templates/layout.html index 4c74129..cece912 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,6 +19,18 @@ +{% if logged_in %} + +{% endif %} + +
    {% block content %}{% endblock %}