]> git.plutz.net Git - clickslide/blob - autoslide.css
auto elements
[clickslide] / autoslide.css
1 * {
2   box-sizing: border-box;
3   margin: 0; padding: 0;
4 }
5
6 body {
7   padding: 2em 1em 4em 1em;
8   background-color: #555;
9   text-align: center;
10   overflow-x: hidden;
11 }
12 body * { text-align: left; }
13
14 a.previous, a.next ,a.toplevel {
15   text-decoration: none;
16 }
17
18 footer {
19   position: fixed;
20   bottom: 0; left: 0;
21   width: 100%;
22   font-size: 14pt;
23   padding: .5em 4em .5em 5em;
24   text-align: center;
25   background-color: #EEE;
26   color: #888;
27   z-index: 3;
28 }
29
30 a.toplevel {
31   position: fixed;
32   bottom: 0; left: 3em;
33   width: 1ex; overflow: hidden;
34   font-size: 18pt;
35   padding-bottom: .25em;
36   color: #888;
37   z-index: 4;
38 }
39 a.toplevel:before {
40   content: '\2191'
41 }
42
43 /* ==== Overview Screen ==== */
44
45 div.slide {
46   position: relative;
47   display: inline-block;
48   overflow: hidden;
49   width: 20em; height: 15em;
50   border: 1px solid black;
51   font-size: 6pt;
52 }
53
54 div.slide + a { display: none; }
55 a.nextslide {
56   display: inline-block;
57   position: relative;
58   vertical-align: top;
59   margin-left: 2em;
60   margin-right: -20em;
61   font-size: 6pt;
62   width: 20em; line-height: 15em;
63   color: rgba(0, 0, 0, 0);
64   z-index: 1;
65 }
66 a.nextslide:nth-of-type(2) { margin-left: 0; }
67 div.slide:nth-of-type(1) { margin-right: .5em; }
68 div.slide:last-of-type { margin-right: 2.5em; }
69
70 /* ==== Slide Appearance ==== */
71
72 div.slide {
73   padding: 0 1em;
74   background-color: #FFF;
75 }
76
77 div.slide:after {
78   position: absolute;
79   bottom: 0; width: 100%;
80   height: 1.25em;
81   background-color: #EEE;
82   content: '';
83   margin-left: -1em;
84   margin-right: -1em;
85 }
86
87 h1 {
88   left: 0; right: 0;
89   display: block;
90   text-align: center;
91   font-size: 1.5em;
92   background-color: #EEE;
93   padding: .25em 1em;
94   margin-left: -1em;
95   margin-right: -1em;
96 }
97
98 div.slide ul li, div.slide ol {
99   indent: 20em;
100 }
101
102 /* ==== Slide Display ==== */
103
104 div.slide:target {
105   position: fixed;
106   z-index: 2;
107   top: 0; left: 0;
108   width: 100%; height: 100%;
109   font-size: 24pt;
110   background-color: white;
111 }
112 div.slide:target + a,
113 div.slide:target + a + a {
114   position: static;
115   display: block;
116   font-size: 18pt;
117   line-height: 1em;
118   color: #888;
119 }
120 :target + a:before, :target + a + a:before {
121   display: block;
122   position: fixed;
123   bottom: 0;
124   font-size: 18pt;
125   color: #888;
126   padding: 0 1em .25em 1em;
127   z-index: 3;
128 }
129 :target + a:before { left:  0; }
130 :target + a:before { content: '<<'; }
131 :target + a + a:before { right: 0; }
132 :target + a + a:before { content: '>>'; }
133
134 :target .uncover { color: #DDD; }
135 :target .uncover:hover { color: #000; }
136 :target .uncover *:first-child { height: 0; }
137 :target .uncover *:first-child:before,
138 :target .uncover *:hover:before,
139 :target .uncover *:active + *:before {
140   content: ' ';
141   position: fixed;
142   top: 0; bottom: 0;
143   left: 0; right: 0;
144 }
145 :target .uncover *:hover ~ * { color: #DDD; }
146 :target .uncover *:active:before { display: none; }