From 2758c997147f2f0fcc234dfd5de92f34d34f3564 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 26 Sep 2026 21:49:29 +0200 Subject: [PATCH] use wiki css in slideshows, menu button to slideshow --- handlers/70_slideshow.sh | 7 +++++-- themes/default.sh | 1 + themes/slideshow.css | 23 ++++++++++++++++++++--- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/handlers/70_slideshow.sh b/handlers/70_slideshow.sh index 04f88b9..3e6b813 100755 --- a/handlers/70_slideshow.sh +++ b/handlers/70_slideshow.sh @@ -23,15 +23,18 @@ esac printf "%s\r\n" "Content-Type: text/html; charset=utf-8" "" +PAGE_CSS="${_BASE}/%5B.%5D/themes/slideshow.css${BR}${PAGE_CSS}" cat <<-EOF - + $(theme_head) $(HTML ${PAGE_TITLE}) - overview EOF +# theme_pagemenu +printf 'overview' + page="${PATH_INFO%\[*\]}" wiki "$page" | { # slide previous ID, slide current ID, slide number diff --git a/themes/default.sh b/themes/default.sh index 58f45a4..e331534 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -52,6 +52,7 @@ theme_pagemenu(){
  • $(_ View)
  • $(_ Edit)
  • $(_ Attachments)
  • +
  • $(_ Slideshow)
  • $(_ Revisions)
  • $(_ Rename)
  • $(_ Move)
  • diff --git a/themes/slideshow.css b/themes/slideshow.css index 423f923..b37cad1 100644 --- a/themes/slideshow.css +++ b/themes/slideshow.css @@ -13,6 +13,21 @@ body background-image: repeating-linear-gradient( to bottom right, #AAA, #999 8px); } +body > .pagemenu { + position: fixed; + top: 0; left: 0; right: 0; z-index: 1; + margin: 0; + padding: .25em 2em; + background-color: #666; + list-style: none; + box-shadow: 0 0 .5em; +} +body > .pagemenu li { + display: inline-block; + margin-right: 1em; +} +body > .pagemenu li a { color: #FFF; } + section.slide { background-color: #FFF; background-image: repeating-linear-gradient( #FFF, #EEE 4px); @@ -60,7 +75,7 @@ section.slide:after /* slide number on overview screen */ body { font-family: sans-serif; - padding: 2em 1em 6em 1em; + padding: 2.5em 1em 6em 1em; #background-color: #555; text-align: center; overflow-x: hidden; @@ -109,9 +124,10 @@ body a.toplevel { bottom: 0; left: 8em; width: 2ex; overflow: hidden; font-size: .875em; - padding-bottom: .25em; + -padding-bottom: .25em; color: transparent; z-index: 5; + word-break: normal; } body a.toplevel:before { #color: #888; @@ -122,7 +138,8 @@ body span.count { position: fixed; bottom: 0; left: 6.25em; font-size: .875em; - padding-bottom: .125em; + line-height: 1.5em; + -padding-bottom: .125em; #color: #888; z-index: 5; } -- 2.47.3