From eddc905260e06794c1947689e681b3b3a635944e Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 5 Apr 2016 12:12:05 -0300 Subject: Add more css and formatting --- public/css/sublab.calendar.css | 9 +++++++++ public/js/calendar.js | 2 +- template/tabcalendar.j2 | 2 +- 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 @@
{%- for month in months %} -

{{ month.date.strftime('%B %Y').decode('utf-8') }}

+

{{ month.date.strftime('%B %Y').decode('utf-8') }}

-- cgit v1.2.1
Montag