summaryrefslogtreecommitdiff
path: root/deck.js/themes/style/web-2.0.scss
blob: 2b36fae05a16582f4714f112803fdfc3e6938e27 (plain)
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
@mixin border-radius($r) {
	-webkit-border-radius:$r;
	-moz-border-radius:$r;
	border-radius:$r;
}

@mixin rotate($deg) {
	-webkit-transform:rotate($deg);    
	-moz-transform:rotate($deg);   
	-ms-transform:rotate($deg);   
	-o-transform:rotate($deg);
	transform:rotate($deg);
}

@mixin box-shadow($x, $y, $blur, $color) {
	-webkit-box-shadow:$x $y $blur $color;
	-moz-box-shadow:$x $y $blur $color;
	box-shadow:$x $y $blur $color;
}


.deck-container {
	font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
	font-size:1.75em;
	background: rgb(244,250,254); /* Old browsers */
	background: -moz-linear-gradient(top, rgba(244,250,254,1) 0%, rgba(204,240,240,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(244,250,254,1)), color-stop(100%,rgba(204,240,240,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Opera11.10+ */
	background: -ms-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* IE10+ */
	background: linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* W3C */
	background-attachment: fixed;
	
	> .slide {
		text-shadow:1px 1px 1px rgba(255,255,255,.5);
		
		.deck-before, .deck-previous {
			opacity:0.4;
			
			&:not(.deck-child-current) {
				.deck-before, .deck-previous {
					opacity:1;
				}
			}
		}
		
		.deck-child-current {
			opacity:1;
		}
	}
	
	.slide {
		h1, h2, h3, h4, h5, h6 {
			font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
		}

		h1 {
			color:#08455f;
		}

		h2 {
			color:#0b7495;
			border-bottom:0;

			.cssreflections & {
				line-height:1;
				-webkit-box-reflect:below -0.5555em -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.3, transparent), color-stop(0.7, rgba(255,255,255,.1)), to(transparent));
	 			-moz-box-reflect:below -0.5555em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255,255,255,.3) 100%);
			}
		}

		h3 {
			color:#000;
		}

		pre {
			border-color:#cde;
			background:#fff;
			position:relative;
			z-index:auto;

			.borderradius & {
				@include border-radius(5px);
			}

			/* http://nicolasgallagher.com/css-drop-shadows-without-images/ */
			.csstransforms.boxshadow & {
				> :first-child:before {
					content:"";
					position:absolute;
					z-index:-1;
					background:#fff;
					top:0;
					bottom:0;
					left:0;
					right:0;
				}

				&:before, &:after {
					content:"";
					position:absolute;
					z-index:-2;
					bottom:15px;
					width:50%;
					height:20%;
					max-width:300px;
					@include box-shadow(0, 15px, 10px, rgba(0, 0, 0, 0.7));
				}

				&:before {
					left:10px;
					@include rotate(-3deg);
				}

				&:after {
					right:10px;
					@include rotate(3deg);
				}
			}
		}

		code {
			color:#789;
		}

		blockquote {
			font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
			font-size:2em;
			padding:1em 2em .5em 2em;
			color:#000;
			background:#fff;
			position:relative;
			border:1px solid #cde;
			z-index:auto;

			.borderradius & {
				@include border-radius(5px);
			}

			.boxshadow & {
				> :first-child:before {
					content:"";
					position:absolute;
					z-index:-1;
					background:#fff;
					top:0;
					bottom:0;
					left:0;
					right:0;
				}

				&:after {
					content:"";
					position:absolute;
					z-index:-2;
					top: 10px;
					bottom: 10px;
					left: 0;
					right: 50%;
					-moz-border-radius: 10px / 100px;
					border-radius: 10px / 100px;
					@include box-shadow(0, 0, 15px, rgba(0,0,0,0.6));
				}
			}

			p {
				margin:0;
			}

			cite {
				font-size:.5em;
				font-style:normal;
				font-weight:bold;
				color:#888;
			}

			&:before {
				content:"“";
				position:absolute;
				top:0;
				left:0;
				font-size:5em;
				line-height:1;
				color:#ccf0f0;
				z-index:1;
			}
		}

		::-moz-selection{ background:#08455f; color:#fff; }
		::selection { background:#08455f; color:#fff; }

		a {
			&, &:hover, &:focus, &:active, &:visited {
				color:#599;
				text-decoration:none;
			}

			&:hover, &:focus {
				text-decoration:underline;
			}
		}
	}
	
	.deck-prev-link, .deck-next-link {
		background:#fff;
		opacity:0.5;

		&, &:hover, &:focus, &:active, &:visited {
			color:#599;
		}

		&:hover, &:focus {
			opacity:1;
			text-decoration:none;
		}
	}
	
	.deck-status {
		font-size:0.6666em;
	}
	
	&.deck-menu {
		.slide {
			background:transparent;
			@include border-radius(5px);
			
			.rgba & {
				background:rgba(0,0,0,.1);
			}
			
			&.deck-current, .rgba &.deck-current, .no-touch &:hover {
				background:#fff;
			}
		}
	}
	
	.goto-form {
		background:#fff;
		border:1px solid #cde;
		@include border-radius(5px);
		
		.boxshadow & {
			-webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
			-moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
			box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
		}
	}
}