Tweak the admin bar

This commit is contained in:
Thomas Sileo 2018-07-15 22:20:38 +02:00
parent 1c778dbd38
commit 11ad9ec10a
2 changed files with 10 additions and 3 deletions

View file

@ -53,13 +53,17 @@ a:hover {
background: $primary-color;
color: $background-color;
}
#admin-menu-wrapper {
padding: 10px;
margin:0 auto;
width: 100%;
background: $color-menu-background;
max-width: 720px;
#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;
@ -77,6 +81,7 @@ a:hover {
}
}
}
}
#header {
margin-bottom: 70px;

View file

@ -16,6 +16,7 @@
</head>
<body>
{% if logged_in %}
<div id="admin-menu-wrapper">
<ul id="admin-menu">
<li class="left"><a href="/admin" class="admin-title{% if request.path == "/admin" %} selected{% endif %}">Admin</a></li>
<li class="left"><a href="/admin/new"{% if request.path == "/admin/new" %} class="selected" {% endif %}>New</a></li>
@ -23,6 +24,7 @@
<li class="left"><a href="/admin/notifications"{% if request.path == "/admin/notifications" %} class="selected" {% endif %}>Notifications</a></li>
<li class="left"><a href="/admin/logout">Logout</a></li>
</ul>
</div>
{% endif %}