From: Paul Hänsch Date: Wed, 13 Feb 2019 18:35:29 +0000 (+0100) Subject: styling X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=33051920f2a111c3f6474843968a8e1ef80e68ab;p=clickslide styling --- diff --git a/autoslide.css b/autoslide.css index 97c17b7..34ba180 100644 --- a/autoslide.css +++ b/autoslide.css @@ -98,22 +98,28 @@ div.slide:nth-of-type(1) { margin-right: .5em; } div.slide { padding: 0 1em; background-color: #FFF; + text-align: center; } div.slide:after { position: absolute; - bottom: 0; width: 100%; + bottom: 0; left: 0; + width: 100%; font-size: .75em; line-height: 1.5em; + text-align: left; content: attr(count) " /"; padding-left: 4em; - margin-left: -1.25em; - margin-right: -1.25em; background-color: #EEE; color: #888; } -h1 { +div.slide > * { + vertical-align: middle; + text-align: left; +} + +div.slide h1 { left: 0; right: 0; display: block; text-align: center; @@ -124,8 +130,10 @@ h1 { margin-right: -1em; } -div.slide ul li, div.slide ol { - indent: 20em; +div.slide ul, +div.slide ol { + width: fit-content; + margin: .25em auto; } /* ==== Slide Display ==== */ diff --git a/example.short b/example.short index f93a1cc..b19c6e3 100644 --- a/example.short +++ b/example.short @@ -16,7 +16,9 @@ ] ][slide [h1 Folie B] + foo bar qua spam eggs bacon jam elephant [ol .uncover [li x] [li y] [li z]] + giraffe sabertooth kitten vegetarian ] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]] [slide [h1 Slide]]