Some minimalistic styling
This commit is contained in:
parent
8ed0caf85b
commit
51f987e83d
|
@ -0,0 +1,27 @@
|
|||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div#auth-header {
|
||||
background: black;
|
||||
color: #eee;
|
||||
padding: 1px 5px 2px 5px;
|
||||
border-bottom: 1px solid #888;
|
||||
}
|
||||
|
||||
div#auth-header a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
div#auth-header a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
div#content {
|
||||
margin: 1em 1ex;
|
||||
}
|
||||
|
||||
span#auth-user-actions {
|
||||
float: right;
|
||||
}
|
|
@ -10,7 +10,8 @@
|
|||
<body>
|
||||
<div id="auth-header">
|
||||
{% block auth_header %}
|
||||
<a href="{% url index %}">{% trans "Home" %}</a> |
|
||||
<a href="{% url index %}">{% trans "Home" %}</a>
|
||||
<span id="auth-user-actions">
|
||||
{% if user.is_authenticated %}
|
||||
{% trans "Logged in" %}: {{ user.username }} |
|
||||
(<a href="{% url auth_logout %}">{% trans "Log out" %}</a> |
|
||||
|
@ -18,6 +19,7 @@
|
|||
{% else %}
|
||||
<a href="{% url auth_login %}">{% trans "Log in" %}</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue