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

View File

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