aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-09 16:51:20 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-09 16:51:20 +0200
commit080470b1428a0ca58a9ed7eb7aac8050f26543a2 (patch)
tree7382d975411371bd456a8e100dfc39fe3e848b7d
parentJavascript now sends the description on event creation. (diff)
downloadcalp-080470b1428a0ca58a9ed7eb7aac8050f26543a2.tar.gz
calp-080470b1428a0ca58a9ed7eb7aac8050f26543a2.tar.xz
HTML Download tab now div instead of article.
-rw-r--r--module/output/html.scm8
-rw-r--r--static/style.css4
2 files changed, 7 insertions, 5 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 93fc5375..f73e975b 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -175,10 +175,10 @@
,(tabset
(append
`(("📅" ,(fmt-single-event ev))
- ("⤓" (article (@ (style "font-family:sans"))
- (p "Ladda ner")
- (ul (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".ics"))) "som iCal"))
- (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".xcs"))) "som xCal"))))))
+ ("⤓" (div (@ (style "font-family:sans"))
+ (p "Ladda ner")
+ (ul (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".ics"))) "som iCal"))
+ (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".xcs"))) "som xCal"))))))
(when (edit-mode)
`(("</>" (script (@ (class "xcal")
(type "application/calendar+xml"))
diff --git a/static/style.css b/static/style.css
index f7b8fbfa..f4a076fa 100644
--- a/static/style.css
+++ b/static/style.css
@@ -643,7 +643,9 @@ along with their colors.
min-height: 20ch;
}
-.popup article {
+.popup article,
+.popup div
+{
/* makes the text in the popup scroll, but not the sidebar */
overflow-y: auto;
padding: 1em;