prettydocs-jekyll 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/_shower/setup.md +39 -0
- data/_includes/_shower/showerify.html +125 -0
- data/_layouts/shower.html +23 -0
- data/_sass/vendor/_shower.scss +549 -0
- data/_sass/vendor/shower/defaults.scss +47 -0
- data/_sass/vendor/shower/fonts.scss +40 -0
- data/_sass/vendor/shower/reset.scss +46 -0
- data/_sass/vendor/shower/screen.scss +549 -0
- data/assets/css/shower.scss +4 -0
- data/assets/fonts/Anka.Coder.Italic.woff +0 -0
- data/assets/fonts/Anka.Coder.woff +0 -0
- data/assets/fonts/OpenSans.Bold.Italic.woff +0 -0
- data/assets/fonts/OpenSans.Bold.woff +0 -0
- data/assets/fonts/OpenSans.Italic.woff +0 -0
- data/assets/fonts/OpenSans.Light.woff +0 -0
- data/assets/fonts/OpenSans.woff +0 -0
- metadata +18 -2
@@ -0,0 +1,47 @@
|
|
1
|
+
// Bright theme for Shower HTML presentation engine: github.com/shower/shower
|
2
|
+
// Copyright © 2010–2015 Vadim Makeev, pepelsbey.net
|
3
|
+
// Licensed under MIT license: github.com/shower/shower/wiki/MIT-License
|
4
|
+
|
5
|
+
// Layout
|
6
|
+
$width:1024px; // Slide width, permanent in most cases
|
7
|
+
$height:640px; // Slide height, 640px for 16:10, 768px for 4:3
|
8
|
+
$top:100px; // Top padding above slide content
|
9
|
+
$left:128px; // Left slide content padding
|
10
|
+
$right:96px; // Right slide content padding
|
11
|
+
$break:1180px; // Window width for small thumbnails to appear
|
12
|
+
$ratio:'16x10'; // Available options: '16x10' or '4x3'
|
13
|
+
|
14
|
+
// Colors
|
15
|
+
$color:#52A2DF;
|
16
|
+
$yellow:#FAFAC4;
|
17
|
+
|
18
|
+
// Mixins
|
19
|
+
@mixin retina {
|
20
|
+
@media (-webkit-min-device-pixel-ratio:2), (min-resolution:192dpi) {
|
21
|
+
@content;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Underline
|
26
|
+
@mixin underline($color, $width) {
|
27
|
+
background:
|
28
|
+
linear-gradient(
|
29
|
+
to top,
|
30
|
+
$color,
|
31
|
+
$color #{$width}em,
|
32
|
+
transparent #{$width}em,
|
33
|
+
transparent
|
34
|
+
) repeat-x;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Offscreen
|
38
|
+
@mixin offscreen {
|
39
|
+
position:absolute;
|
40
|
+
clip:rect(0 0 0 0);
|
41
|
+
overflow:hidden;
|
42
|
+
margin:-1px;
|
43
|
+
padding:0;
|
44
|
+
width:1px;
|
45
|
+
height:1px;
|
46
|
+
border:none;
|
47
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// Bright theme for Shower HTML presentation engine: github.com/shower/shower
|
2
|
+
// Copyright © 2010–2015 Vadim Makeev, pepelsbey.net
|
3
|
+
// Licensed under MIT license: github.com/shower/shower/wiki/MIT-License
|
4
|
+
|
5
|
+
// Open Sans
|
6
|
+
@font-face {
|
7
|
+
font-family:'Open Sans';
|
8
|
+
src:url(../fonts/OpenSans.woff) format('woff');
|
9
|
+
}
|
10
|
+
@font-face {
|
11
|
+
font-weight:bold;
|
12
|
+
font-family:'Open Sans';
|
13
|
+
src:url(../fonts/OpenSans.Bold.woff) format('woff');
|
14
|
+
}
|
15
|
+
@font-face {
|
16
|
+
font-style:italic;
|
17
|
+
font-family:'Open Sans';
|
18
|
+
src:url(../fonts/OpenSans.Italic.woff) format('woff');
|
19
|
+
}
|
20
|
+
@font-face {
|
21
|
+
font-style:italic;
|
22
|
+
font-weight:bold;
|
23
|
+
font-family:'Open Sans';
|
24
|
+
src:url(../fonts/OpenSans.Bold.Italic.woff) format('woff');
|
25
|
+
}
|
26
|
+
@font-face {
|
27
|
+
font-family:'Open Sans Light';
|
28
|
+
src:url(../fonts/OpenSans.Light.woff) format('woff');
|
29
|
+
}
|
30
|
+
|
31
|
+
// Anka Coder
|
32
|
+
@font-face {
|
33
|
+
font-family:'Anka Coder';
|
34
|
+
src:url(../fonts/Anka.Coder.woff) format('woff');
|
35
|
+
}
|
36
|
+
@font-face {
|
37
|
+
font-style:italic;
|
38
|
+
font-family:'Anka Coder';
|
39
|
+
src:url(../fonts/Anka.Coder.Italic.woff) format('woff');
|
40
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// http://meyerweb.com/eric/tools/css/reset/
|
2
|
+
// v2.0 | 20110126
|
3
|
+
// License: none (public domain)
|
4
|
+
|
5
|
+
html, body, div, span, applet, object, iframe,
|
6
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
7
|
+
a, abbr, acronym, address, big, cite, code,
|
8
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
9
|
+
small, strike, strong, sub, sup, tt, var,
|
10
|
+
b, u, i, center,
|
11
|
+
dl, dt, dd, ol, ul, li,
|
12
|
+
fieldset, form, label, legend,
|
13
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
14
|
+
article, aside, canvas, details, embed,
|
15
|
+
figure, figcaption, footer, header, hgroup,
|
16
|
+
menu, nav, output, ruby, section, summary,
|
17
|
+
time, mark, audio, video {
|
18
|
+
margin:0;
|
19
|
+
padding:0;
|
20
|
+
border:0;
|
21
|
+
font-size:100%;
|
22
|
+
font:inherit;
|
23
|
+
vertical-align:baseline;
|
24
|
+
}
|
25
|
+
article, aside, details, figcaption, figure,
|
26
|
+
footer, header, hgroup, menu, nav, section {
|
27
|
+
display:block;
|
28
|
+
}
|
29
|
+
body {
|
30
|
+
line-height:1;
|
31
|
+
}
|
32
|
+
ol, ul {
|
33
|
+
list-style:none;
|
34
|
+
}
|
35
|
+
blockquote, q {
|
36
|
+
quotes:none;
|
37
|
+
}
|
38
|
+
blockquote:before, blockquote:after,
|
39
|
+
q:before, q:after {
|
40
|
+
content:'';
|
41
|
+
content:none;
|
42
|
+
}
|
43
|
+
table {
|
44
|
+
border-collapse:collapse;
|
45
|
+
border-spacing:0;
|
46
|
+
}
|
@@ -0,0 +1,549 @@
|
|
1
|
+
// Bright theme for Shower HTML presentation engine: github.com/shower/shower
|
2
|
+
// Copyright © 2010–2015 Vadim Makeev, pepelsbey.net
|
3
|
+
// Licensed under MIT license: github.com/shower/shower/wiki/MIT-License
|
4
|
+
|
5
|
+
@import 'defaults';
|
6
|
+
@import 'fonts';
|
7
|
+
@import 'reset';
|
8
|
+
|
9
|
+
.shower {
|
10
|
+
counter-reset:slide;
|
11
|
+
font:24px/2 'Open Sans', sans-serif;
|
12
|
+
@media print {
|
13
|
+
text-rendering:geometricPrecision;
|
14
|
+
}
|
15
|
+
a {
|
16
|
+
color:$color;
|
17
|
+
@include underline(currentColor, 0.09);
|
18
|
+
text-decoration:none;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// Caption
|
23
|
+
// -------------------------------
|
24
|
+
.caption {
|
25
|
+
display:none;
|
26
|
+
margin:0 0 60px;
|
27
|
+
padding:0 50px 0 0;
|
28
|
+
color:#555;
|
29
|
+
h1 {
|
30
|
+
font:50px 'Open Sans Light', sans-serif;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Badge
|
35
|
+
// -------------------------------
|
36
|
+
.badge {
|
37
|
+
position:absolute;
|
38
|
+
top:0;
|
39
|
+
right:0;
|
40
|
+
display:none;
|
41
|
+
overflow:hidden;
|
42
|
+
visibility:hidden;
|
43
|
+
width:11em;
|
44
|
+
height:11em;
|
45
|
+
line-height:2.5;
|
46
|
+
font-size:15px;
|
47
|
+
}
|
48
|
+
.badge a {
|
49
|
+
position:absolute;
|
50
|
+
bottom:50%;
|
51
|
+
right:-50%;
|
52
|
+
left:-50%;
|
53
|
+
visibility:visible;
|
54
|
+
background:$color;
|
55
|
+
color:#FFF;
|
56
|
+
text-align:center;
|
57
|
+
transform-origin:50% 100%;
|
58
|
+
transform:rotate(45deg) translateY(-1em);
|
59
|
+
}
|
60
|
+
|
61
|
+
// Region
|
62
|
+
// -------------------------------
|
63
|
+
.region {
|
64
|
+
display:none;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Slide
|
68
|
+
// -------------------------------
|
69
|
+
.slide {
|
70
|
+
position:relative;
|
71
|
+
width:$width;
|
72
|
+
height:$height;
|
73
|
+
background:#FFF;
|
74
|
+
color:#000;
|
75
|
+
-webkit-print-color-adjust:exact;
|
76
|
+
-webkit-text-size-adjust:none;
|
77
|
+
-moz-text-size-adjust:none;
|
78
|
+
-ms-text-size-adjust:none;
|
79
|
+
@media print {
|
80
|
+
page-break-before:always;
|
81
|
+
}
|
82
|
+
// Number
|
83
|
+
&:after {
|
84
|
+
position:absolute;
|
85
|
+
right:0;
|
86
|
+
bottom:45px;
|
87
|
+
left:0;
|
88
|
+
color:#AAA;
|
89
|
+
counter-increment:slide;
|
90
|
+
content:counter(slide);
|
91
|
+
text-align:center;
|
92
|
+
line-height:1;
|
93
|
+
}
|
94
|
+
// Inner
|
95
|
+
> div {
|
96
|
+
position:absolute;
|
97
|
+
top:0;
|
98
|
+
left:0;
|
99
|
+
overflow:hidden;
|
100
|
+
padding:$top $right 0 $left;
|
101
|
+
width:$width - $left - $right;
|
102
|
+
height:$height - $top;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Elements
|
107
|
+
// -------------------------------
|
108
|
+
.slide {
|
109
|
+
// Header
|
110
|
+
h2 {
|
111
|
+
margin:0 0 58px;
|
112
|
+
font:48px/1 'Open Sans Light', sans-serif;
|
113
|
+
}
|
114
|
+
// Text
|
115
|
+
p {
|
116
|
+
margin:0 0 48px;
|
117
|
+
}
|
118
|
+
p.note {
|
119
|
+
color:#AAA;
|
120
|
+
}
|
121
|
+
b, strong {
|
122
|
+
font-weight:bold;
|
123
|
+
}
|
124
|
+
i, em {
|
125
|
+
font-style:italic;
|
126
|
+
}
|
127
|
+
code, kbd, samp {
|
128
|
+
padding:5px 7px 1px;
|
129
|
+
background:rgba(#000, 0.08);
|
130
|
+
color:#000;
|
131
|
+
line-height:1;
|
132
|
+
font-family:'Anka Coder', monospace;
|
133
|
+
}
|
134
|
+
mark {
|
135
|
+
padding:2px 7px;
|
136
|
+
background:$yellow;
|
137
|
+
color:#000;
|
138
|
+
}
|
139
|
+
sub, sup {
|
140
|
+
position: relative;
|
141
|
+
line-height:0;
|
142
|
+
font-size:75%;
|
143
|
+
}
|
144
|
+
sub {
|
145
|
+
bottom:-0.25em;
|
146
|
+
}
|
147
|
+
sup {
|
148
|
+
top:-0.5em;
|
149
|
+
}
|
150
|
+
// Quote
|
151
|
+
blockquote {
|
152
|
+
font-style:italic;
|
153
|
+
&:before {
|
154
|
+
position:absolute;
|
155
|
+
margin:-49px 0 0 -100px;
|
156
|
+
color:#DDD;
|
157
|
+
content:'\201C';
|
158
|
+
line-height:1;
|
159
|
+
font-size:200px;
|
160
|
+
}
|
161
|
+
& + figcaption {
|
162
|
+
margin:-48px 0 48px;
|
163
|
+
font-style:italic;
|
164
|
+
font-weight:bold;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
// Lists
|
168
|
+
ol, ul {
|
169
|
+
margin:0 0 48px;
|
170
|
+
counter-reset:list;
|
171
|
+
li {
|
172
|
+
text-indent:-2em;
|
173
|
+
&:before {
|
174
|
+
display:inline-block;
|
175
|
+
width:2em;
|
176
|
+
color:#AAA;
|
177
|
+
text-align:right;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
ol, ul {
|
181
|
+
margin:0 0 0 2em;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
ul > li:before {
|
185
|
+
content:'\2022\00A0\00A0\2009';
|
186
|
+
}
|
187
|
+
ul > li:lang(ru):before {
|
188
|
+
content:'\2014\00A0\2009';
|
189
|
+
}
|
190
|
+
ol > li:before {
|
191
|
+
counter-increment:list;
|
192
|
+
content:counter(list)'.\00A0\2009';
|
193
|
+
}
|
194
|
+
// Code
|
195
|
+
pre {
|
196
|
+
margin:0 0 45px;
|
197
|
+
padding:3px 0 0;
|
198
|
+
counter-reset:code;
|
199
|
+
white-space:normal;
|
200
|
+
tab-size:4;
|
201
|
+
code {
|
202
|
+
display:block;
|
203
|
+
padding:0;
|
204
|
+
background:none;
|
205
|
+
white-space:pre;
|
206
|
+
line-height:2;
|
207
|
+
&:before {
|
208
|
+
position:absolute;
|
209
|
+
margin-left:-50px;
|
210
|
+
color:#AAA;
|
211
|
+
counter-increment:code;
|
212
|
+
content:counter(code, decimal-leading-zero)'.';
|
213
|
+
}
|
214
|
+
&:only-child:before {
|
215
|
+
content:'';
|
216
|
+
}
|
217
|
+
}
|
218
|
+
// Mark
|
219
|
+
mark {
|
220
|
+
padding:5px 7px 1px;
|
221
|
+
&.important {
|
222
|
+
background:$color;
|
223
|
+
color:#FFF;
|
224
|
+
}
|
225
|
+
&.comment {
|
226
|
+
padding:0;
|
227
|
+
background:none;
|
228
|
+
color:#AAA;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
// Table
|
233
|
+
table {
|
234
|
+
margin:0 0 50px;
|
235
|
+
width:100%;
|
236
|
+
border-collapse:collapse;
|
237
|
+
border-spacing:0;
|
238
|
+
th, td {
|
239
|
+
@include underline($color, 0.055);
|
240
|
+
}
|
241
|
+
th {
|
242
|
+
text-align:left;
|
243
|
+
font-weight:bold;
|
244
|
+
}
|
245
|
+
&.striped {
|
246
|
+
tr:nth-child(even) {
|
247
|
+
background:mix($color, #FFF, 8%);
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
// Cover Shout
|
252
|
+
&.cover,
|
253
|
+
&.shout {
|
254
|
+
z-index:1;
|
255
|
+
&:after {
|
256
|
+
content:'';
|
257
|
+
}
|
258
|
+
}
|
259
|
+
// Cover
|
260
|
+
&.cover {
|
261
|
+
background:#000;
|
262
|
+
@mixin cover {
|
263
|
+
img, svg, video,
|
264
|
+
object, canvas, iframe {
|
265
|
+
@content;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
@include cover {
|
269
|
+
position:absolute;
|
270
|
+
top:0;
|
271
|
+
left:0;
|
272
|
+
z-index:-1;
|
273
|
+
}
|
274
|
+
&.w {
|
275
|
+
@include cover {
|
276
|
+
top:50%;
|
277
|
+
width:100%;
|
278
|
+
transform:translateY(-50%);
|
279
|
+
}
|
280
|
+
}
|
281
|
+
&.h {
|
282
|
+
@include cover {
|
283
|
+
left:50%;
|
284
|
+
height:100%;
|
285
|
+
transform:translateX(-50%);
|
286
|
+
}
|
287
|
+
}
|
288
|
+
&.w.h {
|
289
|
+
@include cover {
|
290
|
+
top:0;
|
291
|
+
left:0;
|
292
|
+
transform:none;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
// Shout
|
297
|
+
&.shout {
|
298
|
+
background:$color;
|
299
|
+
h2 {
|
300
|
+
position:absolute;
|
301
|
+
top:50%;
|
302
|
+
left:128px;
|
303
|
+
right:96px;
|
304
|
+
color:#FFF;
|
305
|
+
font-size:100px;
|
306
|
+
transform:translateY(-50%);
|
307
|
+
a {
|
308
|
+
@include underline(currentColor, 0.055);
|
309
|
+
color:#FFF;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
}
|
313
|
+
// Place
|
314
|
+
.place {
|
315
|
+
position:absolute;
|
316
|
+
top:50%;
|
317
|
+
left:50%;
|
318
|
+
transform:translate(-50%, -50%);
|
319
|
+
&.t.l, &.t.r, &.b.r, &.b.l {
|
320
|
+
transform:none;
|
321
|
+
}
|
322
|
+
&.t, &.b {
|
323
|
+
transform:translate(-50%, 0);
|
324
|
+
}
|
325
|
+
&.l, &.r {
|
326
|
+
transform:translate(0, -50%);
|
327
|
+
}
|
328
|
+
&.t, &.t.l, &.t.r {
|
329
|
+
top:0;
|
330
|
+
}
|
331
|
+
&.r {
|
332
|
+
right:0;
|
333
|
+
left:auto;
|
334
|
+
}
|
335
|
+
&.b, &.b.r, &.b.l {
|
336
|
+
top:auto;
|
337
|
+
bottom:0;
|
338
|
+
}
|
339
|
+
&.l {
|
340
|
+
left:0;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
// Notes
|
344
|
+
footer {
|
345
|
+
position:absolute;
|
346
|
+
left:0;
|
347
|
+
right:0;
|
348
|
+
bottom:-$height;
|
349
|
+
z-index:1;
|
350
|
+
display:none;
|
351
|
+
padding:21px $right 4px $left;
|
352
|
+
background:$yellow;
|
353
|
+
box-shadow:0 0 0 2px rgba(#000, 0.05);
|
354
|
+
transition:bottom 0.3s;
|
355
|
+
p {
|
356
|
+
margin:0 0 16px;
|
357
|
+
}
|
358
|
+
mark {
|
359
|
+
background:rgba(#FFF, 0.7);
|
360
|
+
}
|
361
|
+
}
|
362
|
+
&:hover footer {
|
363
|
+
bottom:0;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
|
367
|
+
// Screen
|
368
|
+
@media screen {
|
369
|
+
// List
|
370
|
+
.shower.list {
|
371
|
+
position:absolute;
|
372
|
+
clip:rect(0, auto, auto, 0); // Having fun with IE10
|
373
|
+
padding:50px 0 50px 50px;
|
374
|
+
background:desaturate(lighten($color, 30%), 60%);
|
375
|
+
text-align:center;
|
376
|
+
// Outfit
|
377
|
+
.caption,
|
378
|
+
.badge {
|
379
|
+
display:block;
|
380
|
+
}
|
381
|
+
// Slide
|
382
|
+
.slide {
|
383
|
+
// Gap between slides
|
384
|
+
$gap:50px;
|
385
|
+
position:relative;
|
386
|
+
top:$height/2 - $gap;
|
387
|
+
display:inline-block;
|
388
|
+
margin:($gap - $height/2) ($gap - $width/2) 0 0;
|
389
|
+
text-align:left;
|
390
|
+
transform-origin:0 0;
|
391
|
+
transform:scale(0.5);
|
392
|
+
@media (max-width:$break) {
|
393
|
+
top:$height/2 + $height/4 - $gap;
|
394
|
+
margin:($gap - ($height/2 + $height/4)) ($gap - ($width/2 + $width/4)) 0 0;
|
395
|
+
transform:scale(0.25);
|
396
|
+
}
|
397
|
+
// Frame
|
398
|
+
&:before {
|
399
|
+
position:absolute;
|
400
|
+
top:0;
|
401
|
+
left:0;
|
402
|
+
z-index:-1;
|
403
|
+
width:$width/2;
|
404
|
+
height:$height/2;
|
405
|
+
box-shadow:0 0 0 1px #DDD;
|
406
|
+
content:'';
|
407
|
+
transform-origin:0 0;
|
408
|
+
transform:scale(2);
|
409
|
+
@media (max-width:$break) {
|
410
|
+
width:$width/4;
|
411
|
+
height:$height/4;
|
412
|
+
transform:scale(4);
|
413
|
+
}
|
414
|
+
}
|
415
|
+
// Number
|
416
|
+
&:after {
|
417
|
+
top:100%;
|
418
|
+
bottom:auto;
|
419
|
+
padding-top:50px;
|
420
|
+
@media (max-width:$break) {
|
421
|
+
width:$width/2;
|
422
|
+
transform-origin:0 0;
|
423
|
+
transform:scale(2);
|
424
|
+
}
|
425
|
+
}
|
426
|
+
// Hover
|
427
|
+
&:hover:before {
|
428
|
+
box-shadow:
|
429
|
+
0 0 0 1px #EEE,
|
430
|
+
0 0 0 12px rgba(#FFF, 0.5);
|
431
|
+
}
|
432
|
+
// Current
|
433
|
+
&:target {
|
434
|
+
&:before {
|
435
|
+
box-shadow:
|
436
|
+
0 0 10px 0 darken($color, 5%),
|
437
|
+
0 0 0 12px $color;
|
438
|
+
}
|
439
|
+
&:after {
|
440
|
+
color:$color;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
// Inner
|
444
|
+
> div {
|
445
|
+
&:before {
|
446
|
+
position:absolute;
|
447
|
+
top:0;
|
448
|
+
right:0;
|
449
|
+
bottom:0;
|
450
|
+
left:0;
|
451
|
+
z-index:2;
|
452
|
+
content:'';
|
453
|
+
}
|
454
|
+
}
|
455
|
+
// Cover Shout
|
456
|
+
&.cover,
|
457
|
+
&.shout {
|
458
|
+
&:after {
|
459
|
+
content:counter(slide);
|
460
|
+
}
|
461
|
+
}
|
462
|
+
// Notes
|
463
|
+
footer {
|
464
|
+
display:block;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
}
|
468
|
+
// Full
|
469
|
+
.shower.full {
|
470
|
+
position:absolute;
|
471
|
+
top:50%;
|
472
|
+
left:50%;
|
473
|
+
overflow:hidden;
|
474
|
+
margin:(-$height/2) 0 0 (-$width/2);
|
475
|
+
width:$width;
|
476
|
+
height:$height;
|
477
|
+
background:#000;
|
478
|
+
// Debug
|
479
|
+
&.debug:after {
|
480
|
+
position:absolute;
|
481
|
+
top:0;
|
482
|
+
right:0;
|
483
|
+
bottom:0;
|
484
|
+
left:0;
|
485
|
+
z-index:2;
|
486
|
+
background:url(../images/grid-#{$ratio}.svg) no-repeat;
|
487
|
+
content:'';
|
488
|
+
}
|
489
|
+
// Region
|
490
|
+
.region {
|
491
|
+
@include offscreen;
|
492
|
+
display:block;
|
493
|
+
}
|
494
|
+
// Slide
|
495
|
+
.slide {
|
496
|
+
position:absolute;
|
497
|
+
top:0;
|
498
|
+
left:0;
|
499
|
+
margin-left:150%;
|
500
|
+
// Next
|
501
|
+
.next {
|
502
|
+
visibility:hidden;
|
503
|
+
&.active {
|
504
|
+
visibility:visible;
|
505
|
+
}
|
506
|
+
}
|
507
|
+
// Current
|
508
|
+
&:target {
|
509
|
+
margin:0;
|
510
|
+
}
|
511
|
+
// Shout
|
512
|
+
&.shout {
|
513
|
+
&.right, &.up {
|
514
|
+
h2 {
|
515
|
+
opacity:0;
|
516
|
+
transition:all 0.4s ease-out;
|
517
|
+
}
|
518
|
+
&:target h2 {
|
519
|
+
opacity:1;
|
520
|
+
transform:translateX(0) translateY(-50%);
|
521
|
+
}
|
522
|
+
}
|
523
|
+
&.right h2 {
|
524
|
+
transform:translateX(-100%) translateY(-50%);
|
525
|
+
}
|
526
|
+
&.up h2 {
|
527
|
+
transform:translateX(0) translateY(100%);
|
528
|
+
}
|
529
|
+
}
|
530
|
+
}
|
531
|
+
// Progress
|
532
|
+
.progress {
|
533
|
+
position:absolute;
|
534
|
+
bottom:0;
|
535
|
+
left:0;
|
536
|
+
z-index:1;
|
537
|
+
width:0;
|
538
|
+
height:8px;
|
539
|
+
background:$color;
|
540
|
+
transition:width 0.2s linear;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
}
|
544
|
+
|
545
|
+
// Print
|
546
|
+
@page {
|
547
|
+
margin:0;
|
548
|
+
size:$width $height;
|
549
|
+
}
|