From: Paul Hänsch Date: Sun, 21 May 2023 19:59:31 +0000 (+0200) Subject: gallery macro X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d75f33f647280ada400fb51f740701cdb12dd4d3;p=shellwiki gallery macro --- 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; +}