summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-05 12:12:05 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-05 12:12:05 -0300
commiteddc905260e06794c1947689e681b3b3a635944e (patch)
tree7fb4cebbd213b87c73d1b11a83ac232b3839797f
parent4c1491f2121633f74abef49c1d9b4df6912ac601 (diff)
Add more css and formatting
-rw-r--r--public/css/sublab.calendar.css9
-rw-r--r--public/js/calendar.js2
-rw-r--r--template/tabcalendar.j22
3 files changed, 11 insertions, 2 deletions
diff --git a/public/css/sublab.calendar.css b/public/css/sublab.calendar.css
index 68ef616..6393490 100644
--- a/public/css/sublab.calendar.css
+++ b/public/css/sublab.calendar.css
@@ -51,3 +51,12 @@
.tabcal-day {
text-align: right;
}
+
+.tabcal-cell>p {
+ font-size: 1.3em;
+}
+
+.tabcal-cell>ul {
+ padding-left: 10px;
+ margin-bottom: 0px;
+}
diff --git a/public/js/calendar.js b/public/js/calendar.js
index 2f402ae..41b35d6 100644
--- a/public/js/calendar.js
+++ b/public/js/calendar.js
@@ -1,5 +1,5 @@
$(function() {
- $('.calendar-listing>p').click(function() {
+ $('.calendar-listing:not(expanded)>p').click(function() {
$(this).next().toggle('fast');
return false;
}).next().hide();
diff --git a/template/tabcalendar.j2 b/template/tabcalendar.j2
index 095ba85..ef84bfd 100644
--- a/template/tabcalendar.j2
+++ b/template/tabcalendar.j2
@@ -1,6 +1,6 @@
<div class="calendar-table">
{%- for month in months %}
-<p>{{ month.date.strftime('%B %Y').decode('utf-8') }}</p>
+<h2>{{ month.date.strftime('%B %Y').decode('utf-8') }}</h2>
<table class="table table-striped">
<tr>
<th>Montag</th>