From 4c1491f2121633f74abef49c1d9b4df6912ac601 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 5 Apr 2016 11:58:31 -0300 Subject: Use ul for events in tabular calendar --- public/css/sublab.calendar.css | 11 +++++++++++ template/tabcalendar.j2 | 11 ++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/public/css/sublab.calendar.css b/public/css/sublab.calendar.css index 246fb34..68ef616 100644 --- a/public/css/sublab.calendar.css +++ b/public/css/sublab.calendar.css @@ -40,3 +40,14 @@ margin: 2px 0 0 0; padding: 0.5em 0.2em 0.1em 0.7em; } + +.tabcal-cell { + font-size: 0.75em; + border-left: 1px solid #1c1e22 ! important; + border-right: 1px solid #1c1e22 ! important; + border-bottom: 1px solid #1c1e22 ! important; +} + +.tabcal-day { + text-align: right; +} diff --git a/template/tabcalendar.j2 b/template/tabcalendar.j2 index 84b08b6..095ba85 100644 --- a/template/tabcalendar.j2 +++ b/template/tabcalendar.j2 @@ -18,13 +18,14 @@ {%- endfor %} {%- for day in week %} -{{ day.day }} +

{{ day.day }} +{%- if day.events %} +

+{%- endif %} {%- endfor %} -- cgit v1.2.1