aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-01-23 09:13:46 +0100
committerAlban Gruin2017-01-23 09:13:46 +0100
commit7c6b159442ee91c16201d296fe4cd11d7c724589 (patch)
treedf86c52444c8e9441c8252fecbbd2f2f160e343e /templates
parentf2717d6a04d5c463a5b5e8aa41001c0589d3b4c5 (diff)
Amélioration du css
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html27
-rw-r--r--templates/timetable.html2
2 files changed, 18 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html
index b839951..5fe6678 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,33 +16,40 @@ h1, h2, h3 {
line-height: 1.2em;
}
-h1 a, h3 a {
- color: #31363b;
+a {
text-decoration: none;
}
-h1 a:hover, h1 a:focus, h3 a:hover, h3 a:focus {
+a:hover, a:focus {
text-decoration: underline;
}
+h1 a, h3 a {
+ color: #31363b;
+}
+
.content {
max-width: 50em;
margin: 0 auto;
}
-@media print {
- body, .content {
- max-width: none;
- }
-}
-
li {
line-height: 1.2em;
margin-bottom: 5px;
}
li.course {
- margin-bottom: 20px;
+ margin-bottom: 20px;
+}
+
+@media print {
+ body, .content {
+ max-width: none;
+ }
+
+ header, footer, a.subscribe {
+ display: none;
+ }
}
</style>
</head>
diff --git a/templates/timetable.html b/templates/timetable.html
index 74a7bbb..28f6005 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -11,4 +11,4 @@
<li class="course"><b>{{ course.name }}</b>, de {{ course.begin|date:"H:i" }} à {{ course.end|date:"H:i" }}{% if course.rooms.all|length > 0 %}<br /><em>Salle{% if course.rooms.all|length > 1 %}s{% endif %} {% for room in course.rooms.all %}{{ room }} {% endfor %}</em>{% endif %}</li>{% endfor %}
</ul>
</section>{% endfor %}
- <p><a href="{% url "subscribe" timetable.slug year week group.slug %}">S'abonner à cet emploi du temps</a></p>{% endblock %}
+ <p><a class="subscribe" href="{% url "subscribe" timetable.slug year week group.slug %}">S'abonner à cet emploi du temps</a></p>{% endblock %}