This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reusable.css
129 lines (113 loc) · 2.59 KB
/
reusable.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/**
* CSS I've found useful for more than one CSSS presentations
* and thought it might be useful for others too
* @author Lea Verou
*/
/* Mark slides as incomplete to spot them easier */
.incomplete.slide::after {
content: 'INCOMPLETE';
font-weight: bold;
position: absolute;
top: 40%;
left: 30%;
padding: .1em .4em 0;
border: .1em solid;
color: rgba(255, 0, 0, .8);
font-size: 140%;
border-radius: .2em;
transform: rotate(30deg);
}
/* Ribbon */
[data-type].slide:not(.hide-ribbon):after {
content: attr(data-type);
position: fixed;
top: 0;
right: 0;
color: white;
font-size: 50%;
text-align: center;
text-transform: uppercase;
font-weight: bold;
background: hsl(40,100%,50%);
background-image: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
line-height: 1.6;
min-width: 20em;
box-shadow: 0 10px 5px -5px rgba(0,0,0,.3);
transform: rotate(45deg) translate(6em, -2em);
}
/* Full image slides */
@keyframes scroll {
from, to { background-position: 0 0; }
80%, 95% { background-position: 0 100%; }
}
.image.slide {
padding: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: black;
}
/* When you don't want to clip the image at all */
.partial.image.slide {
background-size: contain;
}
/* An image that scrolls indefinitely */
.scrolling.image.slide:target {
background-position: 0 0;
background-repeat: repeat-y;
animation: scroll 10s 1s infinite linear forwards;
}
.bottom-heavy.image.slide {
background-position: center bottom;
}
.top-heavy.image.slide {
background-position: center top;
}
.image.slide > .caption,
.image.slide > h1:only-child {
position: absolute;
top: 50%;
right: 0;
left: 0;
margin-top: -.6em;
padding: .2em 0;
text-align: center;
font-size: 200%;
font-family: inherit;
font-weight: inherit;
line-height: 1.2;
color: white;
background: rgba(0,0,0,.4);
text-shadow: .03em .03em .05em black;
white-space: nowrap;
}
.top-heavy.image.slide > .caption,
.top-heavy.image.slide > h1:only-child {
top: auto;
bottom: .5in;
}
.bottom-heavy.image.slide > .caption,
.bottom-heavy.image.slide > h1:only-child {
position: static;
margin: .5in 0 0;
}
.image.slide > .caption h1 {
font: inherit;
margin-bottom: 0;
}
.image.slide > .caption h1 + a {
font-size: 30%;
display: block;
text-shadow: inherit;
}
.slide[data-source]:after {
content: attr(data-source);
position: absolute;
bottom: 5px;
right: 10px;
color: white;
font-size: 15px;
text-shadow: 0 0 .1em black;
text-shadow: 0 0 .1em .1em black;
}
/* END Full image slides */