}
body {
- padding: 2em 1em 4em 1em;
+ 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;
}
position: fixed;
bottom: 0; left: 0;
width: 100%;
- font-size: 14pt;
- padding: .5em 4em .5em 5em;
+ font-size: 14pt; line-height: 14pt;
+ padding: .5em 4em .5em 12em;
text-align: center;
- background-color: #EEE;
+ #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;
+}
-a.toplevel {
+body a.toplevel {
position: fixed;
- bottom: 0; left: 3em;
- width: 1ex; overflow: hidden;
+ bottom: 0; left: 8em;
+ width: 2ex; overflow: hidden;
font-size: 18pt;
padding-bottom: .25em;
- color: #888;
+ color: #EEE;
z-index: 4;
}
-a.toplevel:before {
- content: '\2191'
+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 ==== */
display: inline-block;
overflow: hidden;
width: 20em; height: 15em;
+ margin-left: -20em;
border: 1px solid black;
font-size: 6pt;
}
display: inline-block;
position: relative;
vertical-align: top;
- margin-left: 2em;
- margin-right: -20em;
+ #margin-left: 2em;
font-size: 6pt;
width: 20em; line-height: 15em;
color: rgba(0, 0, 0, 0);
z-index: 1;
}
-a.nextslide:nth-of-type(2) { margin-left: 0; }
div.slide:nth-of-type(1) { margin-right: .5em; }
-div.slide:last-of-type { margin-right: 2.5em; }
/* ==== Slide Appearance ==== */
div.slide:after {
position: absolute;
bottom: 0; width: 100%;
- height: 1.25em;
+ font-size: .75em;
+ line-height: 1.5em;
+ content: attr(count) " /";
+ padding-left: 4em;
+ margin-left: -1.25em;
+ margin-right: -1.25em;
background-color: #EEE;
- content: '';
- margin-left: -1em;
- margin-right: -1em;
+ color: #888;
}
h1 {
div.slide:target {
position: fixed;
z-index: 2;
- top: 0; left: 0;
- width: 100%; height: 100%;
+ top: 0; bottom: 0; left: 0; right: 0;
+ width: auto; height: auto;
+ margin: 0;
+ border: none;
font-size: 24pt;
- background-color: white;
}
div.slide:target + a,
div.slide:target + a + a {
z-index: 3;
}
:target + a:before { left: 0; }
-:target + a:before { content: '<<'; }
+:target + a:before { content: '\22d8'; }
:target + a + a:before { right: 0; }
-:target + a + a:before { content: '>>'; }
+:target + a + a:before { content: '\22d9'; }
:target .uncover { color: #DDD; }
:target .uncover:hover { color: #000; }
#!/bin/sh
-prev='' next='' idoff=1
+prev='' next='' idoff=0
"${0%/*}"/cgilite/html-sh.sed | {
line="$(line)"
case $tag in
*\<slide\ *id=\"?*\"*\>*)
prev="$next"
- next="${tag#*<slide }"
- next="${next#*id=\"}"
- next="${next%\"*}"
- printf '%s<a class="nextslide" href="#%s">next</a><div class="slide" id="%s" %s' \
- "${tag%<slide *}" "$next" "$next" "${tag#*<slide }"
+ next="${tag#*<slide }" next="${next#*id=\"}" next="${next%\"*}"
+ next="autoslide${idoff}"
+ idoff="$((idoff + 1))"
+ printf '%s<a class="nextslide" href="#%s">next</a><div class="slide" count="%i" id="%s" %s' \
+ "${tag%<slide *}" "$next" "$idoff" "$next" "${tag#*<slide }"
tag=''
;;
*\<slide\ *\>*|*\<slide\>*)
prev="$next"
next="autoslide${idoff}"
idoff="$((idoff + 1))"
- printf '%s<a class="nextslide" href="#%s">next</a><div class="slide" id="%s" %s' \
- "${tag%<slide*}" "$next" "$next" "${tag#*<slide}"
+ printf '%s<a class="nextslide" href="#%s">next</a><div class="slide" count="%i" id="%s" %s' \
+ "${tag%<slide*}" "$next" "$idoff" "$next" "${tag#*<slide}"
tag=''
;;
*\</slide\>*)
printf '%s<a href="#" class="toplevel">overview</a>' "$tag"
tag=''
;;
+ *\</body*\>*)
+ printf '<span class="count">%i</span>%s' "$idoff" "$tag"
+ tag=''
+ ;;
*\<*\>*)
printf %s "$tag"
tag=''