diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-22 20:36:53 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-22 20:36:53 +0100 |
commit | 8173e578488a9210b0297671ff87d41c4930d219 (patch) | |
tree | d1265dd542fca4d91cc9d954e0832e69cfbbe875 | |
parent | HTML weekly proper week-start. (diff) | |
download | calp-8173e578488a9210b0297671ff87d41c4930d219.tar.gz calp-8173e578488a9210b0297671ff87d41c4930d219.tar.xz |
Restore contiued-continuing style for long events.
Diffstat (limited to '')
-rw-r--r-- | module/output/html.scm | 8 | ||||
-rw-r--r-- | static/style.css | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/module/output/html.scm b/module/output/html.scm index 2877a399..016bd45e 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -206,7 +206,13 @@ (class "hidelink")) (div (@ (class "event CAL_" ,(html-attr (attr (parent ev) 'NAME)) ,(when (and (attr ev 'PARTSTAT) (string= "TENTATIVE" (attr ev 'PARTSTAT))) - " tentative")) + " tentative") + ,(when (date/-time< (attr ev 'DTSTART) start-date) + " continued") + ,(when (date/-time< (date+ end-date (date day: 1)) (attr ev 'DTEND)) + " continuing" + ) + ) (style ,style)) (div (@ (class "event-inner")) (div (@ (class "popup")) diff --git a/static/style.css b/static/style.css index 5ff30e3f..44322d63 100644 --- a/static/style.css +++ b/static/style.css @@ -343,17 +343,17 @@ html, body { /* */ -.wholeday .event.continuing { +.longevents .event.continuing { border-right: none; background-image: linear-gradient(to left, #0007 0%,#FFF0 4em); } -.wholeday .event.continued { +.longevents .event.continued { border-left: none; background-image: linear-gradient(to right, #FFF7 0%,#FFF0 6em); } -.wholeday .event.continued.continuing { +.longevents .event.continued.continuing { border-left: none; border-right: none; background-image: |