improve look and feel

This commit is contained in:
erichhasl
2017-11-18 20:37:39 +01:00
parent 9da7f73569
commit 63f61af33a
8 changed files with 61 additions and 15 deletions
@@ -0,0 +1,26 @@
ul.meinlinks {
margin: 0.75em 0;
padding: 0 1em;
list-style: none;
}
ul.meinlinks li:before {
content: "";
border-color: transparent #111;
border-style: solid;
border-width: 0.35em 0 0.35em 0.45em;
display: block;
height: 0;
width: 0;
left: -1em;
top: 0.9em;
position: relative;
}
ul.meinlinks a, ul.meinlinks a:visited {
text-decoration: none;
color: #9F2D17;
}
ul.meinlinks a:hover {
color: #48140a;
}
@@ -1,9 +1,17 @@
{% extends "public/default.html" %} {% extends "public/default.html" %}
{% load static %}
{% block content %} {% block content %}
<p>Mein Goethopia!</p> <link rel="stylesheet" type="text/css" href="{% static "meingoethopia/css/index.css" %}">
<p>Du möchtest einen Betrieb anmelden? Oder eine Partei gründen? Vielleicht sogar als Präsidentin
kandidieren?</p>
<p>Dann bist du hier genau richtig!</p>
<ul class="meinlinks">
<li><a href="{% url "meingoethopia:betrieb_new" %}">Betrieb anmelden</a></li>
<li><a href="{% url "meingoethopia:partei_new" %}">Partei gründen</a></li>
<li><a href="{% url "meingoethopia:praesident_werden" %}">Als Präsidentin aufstellen lassen</a></li>
</ul>
<p><a href="{% url "meingoethopia:betrieb_new" %}">Betrieb anmelden</a></p>
<p><a href="{% url "meingoethopia:partei_new" %}">Partei gründen</a></p>
<p><a href="{% url "meingoethopia:praesident_werden" %}">Als Präsidentin aufstellen lassen</a></p>
{% endblock %} {% endblock %}
@@ -0,0 +1,4 @@
#content{
margin-left: 5%;
margin-right: 5%;
}
@@ -0,0 +1,4 @@
#footer {
margin-left: 2%;
margin-right: 2%;
}
+5 -5
View File
@@ -57,7 +57,7 @@ table td{
color: black; color: black;
outline: none; outline: none;
} }
ul { ul.navbar {
list-style-type: none; list-style-type: none;
position: relative; position: relative;
margin-left: 2%; margin-left: 2%;
@@ -69,7 +69,7 @@ ul {
border: none; border: none;
} }
li { li.navbar {
float: left; float: left;
width: 30%; width: 30%;
margin-top: 0.5%; margin-top: 0.5%;
@@ -79,7 +79,7 @@ li {
color: #929292; color: #929292;
} }
li a { li.navbar a {
display: block; display: block;
color: #666; color: #666;
text-align: center; text-align: center;
@@ -89,11 +89,11 @@ li a {
border-top-left-radius: 2.5px; border-top-left-radius: 2.5px;
} }
.active { li.navbar a.active {
background: #9F2D17; background: #9F2D17;
color: white; color: white;
} }
li a:hover:not(.active) { li.navbar a:hover:not(.active) {
background: #929292; background: #929292;
} }
@@ -1,6 +1,9 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load static %}
{% block raw_content %} {% block raw_content %}
<link rel="stylesheet" type="text/css" href="{% static "public/css/default.css" %}">
<div id="content"> <div id="content">
{% block content %} {% block content %}
{% endblock %} {% endblock %}
+3 -2
View File
@@ -1,5 +1,6 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static "public/css/footer.css" %}">
<div id="footer"> <div id="footer">
<p>(C) N.H. und C.M.</p> <p>(C) N.H. und C.M.</p>
</div> </div>
+4 -4
View File
@@ -29,10 +29,10 @@
</tr> </tr>
</table> </table>
<div id="navigation"> <div id="navigation">
<ul> <ul class="navbar">
<li><a {% if appname == "startpage" %}class="active"{% endif %} href="/">Gesetzesblatt</a></li> <li class ="navbar"><a {% if appname == "startpage" %}class="active"{% endif %} href="/">Gesetzesblatt</a></li>
<li><a {% if appname == "datenbank" %}class="active"{% endif %} href="{% url "datenbank:index" %}">Datenbank</a></li> <li class="navbar"><a {% if appname == "datenbank" %}class="active"{% endif %} href="{% url "datenbank:index" %}">Datenbank</a></li>
<li><a {% if appname == "meingoethopia" %}class="active"{% endif %} href="{% url "meingoethopia:index" %}">Mein Goethopia</a></li> <li class="navbar"><a {% if appname == "meingoethopia" %}class="active"{% endif %} href="{% url "meingoethopia:index" %}">Mein Goethopia</a></li>
</ul> </ul>
</div> </div>
</div> </div>