]> git.plutz.net Git - clickslide/blobdiff - autoslide.css
styling
[clickslide] / autoslide.css
index f07cb7e7a78ceb65696cd48694fbc925677ec2ca..34ba18073ec9b506605a022b01e90d30d1b13fc8 100644 (file)
-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;
+  text-align: center;
+}
+
+div.slide:after {
+  position: absolute;
+  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;
+  color: #888;
+}
+
+div.slide > * {
+  vertical-align: middle;
+  text-align: left;
+}
+
+div.slide 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,
+div.slide ol {
+  width: fit-content;
+  margin: .25em auto;
+}
+
+/* ==== 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; }