X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=autoslide.css;h=97c17b70423b9e449381904fe5a26dc7078f2b65;hb=0c1ce131e7e7c857a25d5281d8715f5cf0c056b5;hp=f07cb7e7a78ceb65696cd48694fbc925677ec2ca;hpb=28cd7b0d08df2b9ff1d68ade4af4a3b851aa3a30;p=clickslide diff --git a/autoslide.css b/autoslide.css index f07cb7e..97c17b7 100644 --- a/autoslide.css +++ b/autoslide.css @@ -1,27 +1,176 @@ -div { +* { + box-sizing: border-box; + margin: 0; padding: 0; +} + +body { + padding: 2em 1em 6em 1em; + background-color: #555; + text-align: center; + overflow-x: hidden; +} +body * { text-align: left; } + +body:after { + position: fixed; + bottom: 0; left: 0; + width: 100%; + background-color: #EEE; + height: 30pt; + content: ' '; +} + +a.previous, a.next ,a.toplevel { + text-decoration: none; +} + +footer { + position: fixed; + bottom: 0; left: 0; + width: 100%; + font-size: 14pt; line-height: 14pt; + padding: .5em 4em .5em 12em; + text-align: center; + #background-color: #EEE; + color: #888; + z-index: 3; +} +footer:before { + content: ' '; + position: absolute; + top: 0; left: 0; + bottom: 28pt; + width: 100%; + background-color: #EEE; + z-index: -1; +} + +body a.toplevel { + position: fixed; + bottom: 0; left: 8em; + width: 2ex; overflow: hidden; + font-size: 18pt; + padding-bottom: .25em; + color: #EEE; + z-index: 4; +} +body a.toplevel:before { + color: #888; + content: '\2ba4' +} + +body span.count { + position: fixed; + bottom: 0; left: 6.25em; + font-size: 18pt; + padding-bottom: .125em; + color: #888; + z-index: 4; +} + +/* ==== Overview Screen ==== */ + +div.slide { + position: relative; display: inline-block; overflow: hidden; - width: 40em; height: 30em; + width: 20em; height: 15em; + margin-left: -20em; border: 1px solid black; - font-size: 2pt; + font-size: 6pt; } -div:target { - display: fixed; - top: 0; bottom: 0; - left:0; right: 0; + +div.slide + a { display: none; } +a.nextslide { + display: inline-block; + position: relative; + vertical-align: top; + #margin-left: 2em; + font-size: 6pt; + width: 20em; line-height: 15em; + color: rgba(0, 0, 0, 0); + z-index: 1; +} +div.slide:nth-of-type(1) { margin-right: .5em; } + +/* ==== Slide Appearance ==== */ + +div.slide { + padding: 0 1em; + background-color: #FFF; +} + +div.slide:after { + position: absolute; + bottom: 0; width: 100%; + font-size: .75em; + line-height: 1.5em; + content: attr(count) " /"; + padding-left: 4em; + margin-left: -1.25em; + margin-right: -1.25em; + background-color: #EEE; + color: #888; +} + +h1 { + left: 0; right: 0; + display: block; + text-align: center; + font-size: 1.5em; + background-color: #EEE; + padding: .25em 1em; + margin-left: -1em; + margin-right: -1em; +} + +div.slide ul li, div.slide ol { + indent: 20em; +} + +/* ==== Slide Display ==== */ + +div.slide:target { + position: fixed; + z-index: 2; + top: 0; bottom: 0; left: 0; right: 0; + width: auto; height: auto; + margin: 0; + border: none; font-size: 24pt; } +div.slide:target + a, +div.slide:target + a + a { + position: static; + display: block; + font-size: 18pt; + line-height: 1em; + color: #888; +} +:target + a:before, :target + a + a:before { + display: block; + position: fixed; + bottom: 0; + font-size: 18pt; + color: #888; + padding: 0 1em .25em 1em; + z-index: 3; +} +:target + a:before { left: 0; } +:target + a:before { content: '\22d8'; } +:target + a + a:before { right: 0; } +:target + a + a:before { content: '\22d9'; } -ul { color: #CCC; } -ul:hover { color: #000; } -ul li:first-child { height: 0; } -ul li:first-child:before, -ul li:hover:before, -ul li:active + li:before { +:target .uncover { color: #DDD; } +:target .uncover:hover { color: #000; } +:target .uncover *:first-child { height: 0; } +:target .uncover *:first-child:before, +:target .uncover *:hover:before, +:target .uncover *:active + *:before { content: ' '; position: fixed; top: 0; bottom: 0; left: 0; right: 0; } -ul li:hover ~ li { color: #CCC; } -ul li:active:before { display: none; } +:target .uncover *:hover ~ * { color: #DDD; } +:target .uncover *:active:before { display: none; }