]> git.plutz.net Git - clickslide/blobdiff - autoslide.css
styling
[clickslide] / autoslide.css
index 5a1b7d755ab88bd0d1997846f015c9aebc3a1166..34ba18073ec9b506605a022b01e90d30d1b13fc8 100644 (file)
@@ -4,13 +4,22 @@
 }
 
 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;
 }
@@ -19,25 +28,44 @@ footer {
   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 ==== */
@@ -47,6 +75,7 @@ div.slide {
   display: inline-block;
   overflow: hidden;
   width: 20em; height: 15em;
+  margin-left: -20em;
   border: 1px solid black;
   font-size: 6pt;
 }
@@ -56,35 +85,41 @@ a.nextslide {
   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 {
   padding: 0 1em;
   background-color: #FFF;
+  text-align: center;
 }
 
 div.slide:after {
   position: absolute;
-  bottom: 0; width: 100%;
-  height: 1.25em;
+  bottom: 0; left: 0;
+  width: 100%;
+  font-size: .75em;
+  line-height: 1.5em;
+  text-align: left;
+  content: attr(count) " /";
+  padding-left: 4em;
   background-color: #EEE;
-  content: '';
-  margin-left: -1em;
-  margin-right: -1em;
+  color: #888;
 }
 
-h1 {
+div.slide > * {
+  vertical-align: middle;
+  text-align: left;
+}
+
+div.slide h1 {
   left: 0; right: 0;
   display: block;
   text-align: center;
@@ -95,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 ==== */
@@ -104,10 +141,11 @@ div.slide ul li, div.slide ol {
 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 {
@@ -127,9 +165,9 @@ 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; }