forked from LeaVerou/css3test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
360 lines (295 loc) · 5.57 KB
/
style.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
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
body {
max-width: 60em;
padding: 1em;
margin: auto;
background: url(http://dabblet.com/img/noise.png) hsl(24, 20%, 95%);
font: 100%/1.5 sans-serif;
text-shadow: 0 1px white;
}
a {
color: hsl(200, 10%, 20%);
font-weight: bold;
text-decoration: none;
}
h1, h2 {
margin: 1em 0 .5em;
font-weight: normal;
line-height: 1;
}
body > section section section h1 {
font-size: 180%;
}
section section section section h1 {
color: hsla(200, 10%, 20%, .5);
font-size: 120%;
font-weight: bold;
text-transform: capitalize;
}
h1 > .score {
float: right;
font-weight: bold;
}
h1 > .spec-link {
display: inline-block;
padding: .3em .4em;
margin: 0 0 0 .3em;
font-size: 50%;
background: hsl(200, 10%, 20%);
color: white;
border-radius: .3em;
vertical-align: middle;
text-shadow: 0 .1em .1em black;
}
h1 > .spec-link:hover {
background: #f06;
}
body > h1 {
position: fixed;
left: 0;
top: 0;
padding: .5em 1em;
background: hsl(200, 10%, 20%);
box-shadow: -2px 2px 10px rgba(0,0,0,.5);
color: white;
font-size: 150%;
font-weight: bold;
text-transform: uppercase;
text-shadow: 0 .1em .1em black;
z-index: 1;
-webkit-transform: rotate(-90deg) translateX(-100%);
-webkit-transform-origin: top left;
-moz-transform: rotate(-90deg) translateX(-100%);
-moz-transform-origin: top left;
-ms-transform: rotate(-90deg) translateX(-100%);
-ms-transform-origin: top left;
-o-transform: rotate(-90deg) translateX(-100%);
-o-transform-origin: top left;
transform: rotate(-90deg) translateX(-100%);
transform-origin: top left;
}
#mark img {
position: fixed;
left: 10px;
top: 230px;
width: 50px;
border-radius: 50%;
box-shadow: 2px 2px 10px rgba(0,0,0,.5);
z-index: 2;
-webkit-transform: rotate(-15deg);
-moz-transform: rotate(-15deg);
-ms-transform: rotate(-15deg);
-o-transform: rotate(-15deg);
transform: rotate(-15deg);
}
#tests {
float: left;
width: 65%;
margin-right: 2em;
}
#tests #hgroup {
text-align: center;
}
#tests > #hgroup > h1 {
font-size: 250%;
}
#tests h1 > strong {
display: block;
margin-top: .1em;
font-size: 500%;
line-height: .7;
}
#tests h2 {
font-size: 80%;
}
dl {
margin: .3em 0;
font: 100% Monaco, Consolas, monospace;
}
dl dl {
margin:0;
}
dt, dd[class] {
padding: .5em;
background: gray;
color: white;
border-radius: .3em;
text-shadow: 0 -.05em .1em rgba(0,0,0,.5);
position: relative;
}
dt {
cursor: pointer;
}
dd {
margin: .3em 0 .3em 2em;
font-size: 90%;
}
dd dd {
border: 1px solid white;
}
dd small {
display: block;
opacity: .8;
}
dl .pass,
#specsTested li.pass:before {
background-color: #490;
}
dl .almost-pass,
#specsTested li.almost-pass:before {
background-color: #8c0;
}
dl .slightly-buggy,
#specsTested li.slightly-buggy:before {
background-color: #bb0;
}
dl .buggy,
#specsTested li.buggy:before {
background-color: #e80;
}
dl .very-buggy,
#specsTested li.very-buggy:before {
background-color: #e40;
}
dl .fail,
#specsTested li.fail:before {
background-color: #e20;
}
dl .epic-fail,
#specsTested li.epic-fail:before {
background-color: #b00;
}
dt:before {
content: '▶';
display: inline-block;
margin-right: .5em;
font-size: 60%;
opacity: .5;
}
dl.open > dt:before {
content: '▼';
}
dl > dd {
display: none;
}
dl.open > dd {
display: block;
}
/* Emoticons */
dt:after,
dd[class]:after,
#specsTested li:after {
opacity: 0.75;
position: absolute;
top: 0;
}
dt:after,
dd[class]:after {
letter-spacing: -2px;
line-height: 35px;
right: 10px;
}
#specsTested li:after {
font: 83.3%/29px Monaco, Consolas, monospace;
right: 0;
}
.almost-pass:after { content: ':)'; }
.buggy:after { content: ':('; }
.epic-fail:after { content: '›:('; }
.fail:after { content: ':′('; }
.pass:after { content: ':D'; }
.slightly-buggy:after { content: ':|'; }
.very-buggy:after { content: ':o'; }
/* End emoticons */
aside {
font-size: 85%;
}
aside section {
margin-left: 66%;
}
aside .caution p {
padding: 1em;
margin-left: 2em;
background: hsl(200, 10%, 20%);
color: white;
text-shadow: 0 -.1em .2em black;
}
aside h1 {
font-size: 150%;
}
aside ul {
margin: .5em 0;
padding: 0 0 0 2em;
}
aside li {
list-style: none;
padding: .3em 0;
border-bottom: 2px dotted rgba(0,0,0,.25);
border-top: 2px dotted white;
}
aside li:first-child {
border-top: none;
}
aside li:last-child {
border-bottom: none;
}
#specsTested li {
position: relative;
}
#specsTested li:before {
content: '';
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-right: .5em;
vertical-align: -.2em;
border-radius: 50%;
box-shadow: 0 2px white;
}
footer {
margin-left: 65%;
font-size: 85%;
word-spacing: -1px;
}
footer > p {
margin-left: 2em;
padding: 1em 0;
border-top: 1px solid hsl(200, 10%, 20%);
text-align: center;
}
/* Carbon Ads */
#carbonads {
display: block;
overflow: hidden;
padding: 1em;
border: solid 1px hsla(0, 0%, 80%, .8);
background-color: hsla(0, 0%, 98%, .6);
box-shadow: inset 0 1px hsla(0, 0%, 100%, .6);
font-size: 12px;
line-height: 1.5;
}
#carbonads a {
font-weight: 400;
}
#carbonads span {
position: relative;
display: block;
overflow: hidden;
}
.carbon-img {
float: left;
margin-right: 1em;
}
.carbon-img img { display: block; }
.carbon-text {
display: block;
float: left;
max-width: calc(100% - 130px - 1em);
text-align: left;
}
.carbon-poweredby {
position: absolute;
right: 0;
bottom: 0;
display: block;
font-size: 10px;
}