Fix header css

This commit is contained in:
Tim Van Baak 2020-01-28 00:59:30 -08:00
parent fce6e7145b
commit 298352caed
2 changed files with 11 additions and 6 deletions

View File

@ -17,14 +17,16 @@ div#header {
box-shadow: 2px 2px 10px #888888;
border-radius: 5px;
overflow: auto;
position: relative;
}
div#header p, div#header h2 {
margin: 5px;
float: left;
}
div#login-status {
float: right;
text-align: right;
position: absolute;
top: 10px;
right: 10px;
}
div#sidebar {
width: 200px;
@ -143,10 +145,13 @@ div.dashboard-lexicon-item p {
max-width: 548px;
width: inherit;
float: inherit;
margin: 5px auto;
margin: 10px auto;
}
div#content{
margin: 5px auto;
margin: 10px auto;
}
div.content-1col {
max-width: 564px;
}
div.content-2col {
max-width: 564px;

View File

@ -11,8 +11,8 @@
<div id="header">
<div id="login-status" {% block login_status_attr %}{% endblock %}>
{% if current_user.is_authenticated %}
Logged in as <b>{{ current_user.username -}}</b>
<br><a href="{{ url_for('auth.logout') }}">Logout</a>
<b>{{ current_user.username -}}</b>
(<a href="{{ url_for('auth.logout') }}">Logout</a>)
{% else %}
<a href="{{ url_for('auth.login') }}">Login</a>
{% endif %}