From d75f33f647280ada400fb51f740701cdb12dd4d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 21 May 2023 21:59:31 +0200 Subject: [PATCH] gallery macro --- macros/gallery | 32 ++++++++++++++++++++++++++++++++ themes/default.css | 10 ++++++++++ 2 files changed, 42 insertions(+) create mode 100755 macros/gallery diff --git a/macros/gallery b/macros/gallery new file mode 100755 index 0000000..306c517 --- /dev/null +++ b/macros/gallery @@ -0,0 +1,32 @@ +#!/bin/sh + +. "$_EXEC/cgilite/cgilite.sh" +. "$_EXEC/acl.sh" +. "$_EXEC/tools.sh" + +[ $# = 0 ] && set -- "*" + +printf '' diff --git a/themes/default.css b/themes/default.css index 52179a6..7ef7fb3 100644 --- a/themes/default.css +++ b/themes/default.css @@ -204,3 +204,13 @@ body[id$="/[newpage]"] textarea { .macro.toc li.h5 { margin-left: 5em; } .macro.toc li.h6 { margin-left: 6.25em; } +.macro.gallery { + text-align: center; + margin: 2em 0; + padding: .5em .125em; + background-color: #444; +} +.macro.gallery img { + max-height: 9em; + margin: 0 .25em; +} -- 2.39.2