From c98f1dfd02c9b84f52be9b0dcf1194f7cc9b2bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 27 Dec 2019 23:25:42 +0100 Subject: CSS Fix gradients for whole day events. --- static/style.css | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index d644306c..c34470ed 100644 --- a/static/style.css +++ b/static/style.css @@ -261,25 +261,49 @@ body { margin: 0 1em; } -.event.continuing { +/* */ + +.events .event.continuing { border-bottom: none; - background-image: linear-gradient(to top, #0007 0%,#FFF0 4em); + background-image: linear-gradient(to top, #0007 0%,#FFF0 2em); } -.event.continued { +.events .event.continued { border-top: none; - background-image: linear-gradient(to bottom, #FFF7 0%,#FFF0 6em); + background-image: linear-gradient(to bottom, #FFF7 0%,#FFF0 3em); } -.event.continued.continuing { - border-top: none; +.events .event.continued.continuing { border-top: none; + border-bottom: none; background-image: linear-gradient(to bottom, #FFF7 0%, #FFF0 10%, #FFF0 90%, #0007 100%); } +/* */ + +.wholeday .event.continuing { + border-right: none; + background-image: linear-gradient(to left, #0007 0%,#FFF0 4em); +} + +.wholeday .event.continued { + border-left: none; + background-image: linear-gradient(to right, #FFF7 0%,#FFF0 6em); +} + +.wholeday .event.continued.continuing { + border-left: none; + border-right: none; + background-image: + linear-gradient(to right, + #FFF7 0%, #FFF0 10%, + #FFF0 90%, #0007 100%); +} + + .event.generated { background-color: #55FF5550; } -- cgit v1.2.3