-
Notifications
You must be signed in to change notification settings - Fork 65
/
index.html
357 lines (296 loc) · 20.8 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3 Please! The Cross-Browser CSS3 Rule Generator</title>
<!-- <link rel="stylesheet" href="http://peterned.home.xs4all.nl/matrices/matrices.css"> -->
<link rel="stylesheet" href="css/build.min.css">
<!-- it's only up here because the js does syntax highlighting so i want the js loaded before the page loads. bad practice i know... -->
<script src="javascript/build.min.js"></script>
</head>
<body>
<div id="sandboxwrap">
<div id="sandbox">
<h1>
<abbr title="Cascading Style Sheets Level 3">CSS3</abbr>, please!
</h1>
<p>
This element will receive instant changes as you edit the CSS rules on the left. Enjoy!
</p>
</div>
<pre class="rule comment">/* <a class="off">[toggle styling]</a><span class="endcomment"> */</span></pre>
</div>
<pre class="rule">
/* -------------------------------------------------------------
CSS3, Please!
===================================================
Update: We recommend using <a href="http://css-tricks.com/autoprefixer/">Autoprefixer</a> instead of CSS3Please.
You can edit the underlined values in this css file,
but don't worry about making sure the corresponding
values match, that's all done automagically for you.
Whenever you want, you can copy the whole or part of
this page and paste it into your own stylesheet.
------------------------------------------------------------- */
</pre>
<div id="box_round" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_round {
border-radius: <b g="0">12px</b>; <span class="comment">/* Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+ <span class="endcomment">*/</span></span>
<span class="comment">/* useful if you don't want a bg color from <a href="http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed">leaking outside</a> the border: */</span>
background-clip: padding-box; <span class="comment">/* Android 2.2+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 4+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<!--
<div id="box_round_complex" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_round {
-moz-border-radius: <b g="0">8px 8px 0px 0px</b>; <span class="comment">/* Firefox 1+ <span class="endcomment">*/</span></span>
-webkit-border-top-left-radius: <b g="1" readonly>8px</b>; <span class="comment">/* Safari 3-4 <span class="endcomment">*/</span></span>
-webkit-border-top-right-radius: <b g="2" readonly>8px</b>;
-webkit-border-bottom-right-radius: <b g="3" readonly>0px</b>;
-webkit-border-bottom-left-radius: <b g="4" readonly>0px</b>;
border-radius: <b g="0">8px 8px 0px 0px</b>; <span class="comment">/* Chrome, IE 9+, Opera 10.50+, Safari 5+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
-->
<div id="box_shadow" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="inset">[toggle inset on]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_shadow {
-webkit-box-shadow: <b g="0">0px</b> <b g="1">0px</b> <b g="2">4px</b> <b g="3">0px</b> <b g="4" i="lHex" o="sHex">#ffffff</b>; <span class="comment">/* Android 2.3+, iOS 4.0.2-4.2, Safari 3-4 <span class="endcomment">*/</span></span>
box-shadow: <b g="0">0px</b> <b g="1">0px</b> <b g="2">4px</b> <b g="3">0px</b> <b g="4" i="lHex" o="sHex">#ffffff</b>; <span class="comment">/* Chrome 6+, Firefox 4+, IE 9+, iOS 5+, Opera 10.50+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_gradient" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_gradient {
background-color: <b g="0" i="lHex">#444444</b>;
background-image: -webkit-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* Chrome 10-25, iOS 5+, Safari 5.1+ <span class="endcomment">*/</span></span>
background-image: linear-gradient(to bottom, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* Chrome 26, Firefox 16+, IE 10+, Opera <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_rgba" class="rule_wrapper commentedout">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule on]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_rgba {
background-color: transparent;
background-color: <b g="0" i="s2aHex" o="aCh">rgba(180, 180, 144, 0.6)</b>; <span class="comment">/* Chrome, Firefox 3+, IE 9+, Opera 10.10+, Safari 3+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_rotate" class="rule_wrapper commentedout">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule on]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_rotate {
-webkit-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Chrome, Opera 15+, Safari 3.1+ <span class="endcomment">*/</span></span>
-ms-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* IE 9 <span class="endcomment">*/</span></span>
transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Firefox 16+, IE 10+, Opera <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_scale" class="rule_wrapper commentedout">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule on]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_scale {
-webkit-transform: scale(<b g="0">0.8</b>); <span class="comment">/* Chrome, Opera 15+, Safari 3.1+ <span class="endcomment">*/</span></span>
-ms-transform: scale(<b g="0">0.8</b>); <span class="comment">/* IE 9 <span class="endcomment">*/</span></span>
transform: scale(<b g="0">0.8</b>); <span class="comment">/* Firefox 16+, IE 10+, Opera <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_3dtransforms" class="rule_wrapper commentedout">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule on]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_3dtransforms {
-webkit-perspective: <b g="0">300px</b>; <span class="comment">/* Chrome 12+, Safari 4+ <span class="endcomment">*/</span></span>
-ms-perspective: <b g="0">300px</b>; <span class="comment">/* IE 10 <span class="endcomment">*/</span></span>
perspective: <b g="0">300px</b>;
-webkit-transform: rotateY(<b g="1">180</b>deg); -webkit-transform-style: preserve-3d;
-ms-transform: rotateY(<b g="1">180</b>deg); -ms-transform-style: preserve-3d;
transform: rotateY(<b g="1">180</b>deg); transform-style: preserve-3d;
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_transition" class="rule_wrapper ">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_transition {
-webkit-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6 <span class="endcomment">*/</span></span>
transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_textshadow" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_textshadow {
text-shadow: <b g="0">1px</b> <b g="1">1px</b> <b g="2">3px</b> <b g="3" i="lHex" o="sHex">#888</b>; <span class="comment">/* Chrome, Firefox 3.5+, IE 10+, Opera 9+, Safari 1+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_opacity" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_opacity {
opacity: <b g="0">0.9</b>; <span class="comment">/* Android 2.1+, Chrome 4+, Firefox 2+, IE 9+, iOS 3.2+, Opera 9+, Safari 3.1+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_boxsizing" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
* {
-webkit-box-sizing: <b g="0">border-box</b>; <span class="comment">/* Android ≤ 2.3, iOS ≤ 4 <span class="endcomment">*/</span></span>
-moz-box-sizing: <b g="0">border-box</b>; <span class="comment">/* Firefox ≤ 28 <span class="endcomment">*/</span></span>
box-sizing: <b g="0">border-box</b>; <span class="comment">/* Chrome, Firefox 29+, IE 8+, Opera, Safari 5.1 <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_bgsize" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_bgsize {
-webkit-background-size: <b g="0">100% 100%</b>; <span class="comment">/* Safari 3-4 <span class="endcomment">*/</span></span>
background-size: <b g="0">100% 100%</b>; <span class="comment">/* Chrome, Firefox 4+, IE 9+, Opera, Safari 5+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_columns" class="rule_wrapper commentedout">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule on]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_columns {
-webkit-column-count: <b g="0">2</b>; -webkit-column-gap: <b g="1">15px</b>; <span class="comment">/* Chrome, Safari 3 <span class="endcomment">*/</span></span>
-moz-column-count: <b g="0">2</b>; -moz-column-gap: <b g="1">15px</b>; <span class="comment">/* Firefox 3.5+ <span class="endcomment">*/</span></span>
column-count: <b g="0">2</b>; column-gap: <b g="1">15px</b>; <span class="comment">/* Opera 11+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<div id="box_animation" class="rule_wrapper ">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_animation:hover {
-webkit-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Chrome, Opera 15+, Safari 5+ <span class="endcomment">*/</span></span>
animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Chrome, Firefox 16+, IE 10+, Opera <span class="endcomment">*/</span></span>
}
@-webkit-keyframes <b g="0">myanim</b> {
<b g="1">0%</b> { <b g="2">opacity</b>: <b g="3">0.0</b>; }
<b g="4">50%</b> { <b g="2">opacity</b>: <b g="5">0.5</b>; }
<b g="6">100%</b> { <b g="2">opacity</b>: <b g="7">1.0</b>; }
}
@keyframes <b g="0">myanim</b> {
<b g="1">0%</b> { <b g="2">opacity</b>: <b g="3">0.0</b>; }
<b g="4">50%</b> { <b g="2">opacity</b>: <b g="5">0.5</b>; }
<b g="6">100%</b> { <b g="2">opacity</b>: <b g="7">1.0</b>; }
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
<script defer src="http://peterned.home.xs4all.nl/matrices/matrices.js"></script>
<div id="box_matrix" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<div id="matrixbox">
<span id="save">
Oh hai :)
<br><br>
From <a href="http://peterned.home.xs4all.nl/matrices/">Peter Nederlof</a>
<a href="#1,0,0,1,0,0" class="reset">oh noes!</a>
</span>
<span id="play">
Manipulate me, please!
<span class="rotate">rotate</span>
<span class="scale">scale</span>
<span class="skewx">skew</span>
<span class="skewy">skew</span>
<span class="move">move</span>
</span>
</div>
<pre class="rule">
.matrix {
<div class="comment"><div id="output" class="declaration" style="min-height: 100px">Play for output ...</div></div>
}</pre>
</div>
<div id="box_webfont" class="rule_wrapper">
<pre class="rule comment"><span class="comment">/* <a class="cb">[to clipboard]</a><!-- <a class="off">[toggle rule off]</a>--> <span class="endcomment">*/</span></span> </pre>
<pre class="rule">
@font-face {
font-family: '<b g="1">WebFont</b>';
src: url('<b g="0">myfont</b>.woff') format('woff'), <span class="comment">/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ <span class="endcomment">*/</span></span>
url('<b g="0">myfont</b>.ttf') format('truetype'); <span class="comment">/* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 <span class="endcomment">*/</span></span>
}</pre>
<!-- <pre class="rule comment commentclose"><span class="comment">/* */</span></pre> -->
</div>
<div id="box_tabsize" class="rule_wrapper">
<pre class="rule comment">/* <a class="cb">[to clipboard]</a> <a class="off">[toggle rule off]</a> <span class="endcomment">*/</span></pre>
<pre class="rule">
.box_tabsize {
-moz-tab-size: <b g="0">2</b>; <span class="comment">/* Firefox 4+ <span class="endcomment">*/</span></span>
tab-size: <b g="0">2</b>;
}</pre>
<!-- <pre class="rule comment commentclose"><span class="comment">/* */</span></pre> -->
</div>
<pre class="rule footer"><span class="comment">
/*
btw- up/down keys work, along with your mouse wheel. ;)
coming soon.. extra css transforms (skew, scale) and more.
<a href="http://paulirish.com/2010/introducing-css3please/#comments">plz leave feedback here</a>.
also css3please is an open source project!. <a href="https://github.com/paulirish/css3please">report bugs or contribute!</a>
Notes:
+ IE<10 browsers do not support gradients. Possible solutions are <a href="http://abouthalf.com/2010/10/25/internet-explorer-9-gradients-with-rounded-corners/">using SVG</a> or <a href="http://timmywillison.com/post/31419874608/gradients-plus-border-radius-in-ie9">using a filter with a wrapper div</a>.
+ The rotation transform ends up with a different transform-origin in IE. Look at heygrady's <a href="http://github.com/heygrady/transform">transform</a>
library and his <a href="http://wiki.github.com/heygrady/transform/correcting-transform-origin-and-translate-in-ie">excellent guide</a> for the best results.
+ If you’re doing transitions, Matthew Lein’s <a href="http://matthewlein.com/ceaser/">Ceaser</a> generates code with lots of presets, including the Penner equations.
© 2012; a <a href="http://paulirish.com/">Paul Irish</a> and <a href="http://twitter.com/jon_neal">Jonathan Neal</a> joint, <small>in association w/ <a href="http://www.boazsender.com/">Boaz Sender</a> and <a href="http://www.useragentman.com/">Zoltan Hawryluk</a>.</small>
if you like this, you'll probably also dig <a href="http://yayquery.com/">yayQuery</a> and <a href="//mothereffinghsl.com">mothereffinghsl.com</a>. <3
*/
</span>
</pre>
<pre class="rule changelog">
/*
__Changelog__
2013.04.05: Opera 12.10 supports unprefixed CSS animations, gradients, transforms, and transitions.
2013.04.05: Removed -webkit-background-clip (thx <a href="https://github.com/scheinercc">Albert Scheiner</a>).
2013.02.11: Added inset toggle for box-shadow (thx <a href="https://github.com/ryanttb">Ryan</a>).
2013.02.05: Chrome 26 support for unprefix transitions and unprefixed gradients.
2012.12.31: Removed -moz-background-clip (thx <a href="https://github.com/Mottie">Mottie</a>).
2012.08.29: Removed IE6-8 support.
2012.06.06: Removed -ms prefixes from transition, animations and gradients.
2012.03.02: Added <a href="http://paulirish.com/2012/box-sizing-border-box-ftw/">box-sizing</a>. Woo!
2012.01.21: Added transform scale and 3d transforms.(thx <a href="https://github.com/uxder">uxder</a>)
2012.01.19: Linear Gradient Syntax <a href="https://github.com/paulirish/css3please/issues/78">Updated</a>. (thx <a href="http://cssdeck.com">cssdeck</a> and <a href="https://github.com/uxder">uxder</a>!)
2012.01.14: Added <code>tab-size</code>. (Blame <a href="http://mathiasbynens.be/">Mathias</a> if anything breaks!)
2011.10.23: Added the sweet matrix manip demo from <a href="http://peterned.home.xs4all.nl/matrices/">Peter Nederlof</a>. Thx Peter!
2011.10.18: <a href="http://css-tricks.com/snippets/css/webkit-keyframe-animation-syntax/">CSS Animations</a> added. (thx <a href="//twitter.com/wookiehangover">wookiehangover</a>!)
2011.07.27: Added multicolumn. (thx <a href="https://twitter.com/hotmeteor" target="_blank">hotmeteor</a>!)
2011.04.12: Added gradient for IE10! (thx <a href="https://github.com/Calvein" target="_blank">calvein</a>!)
2011.04.11: Added <a href="https://developer.mozilla.org/en/CSS/background-clip" target="_blank">background-clip</a> for the border-radius rule (thx <a href="//twitter.com/matthewlein" target="_blank">matthewlein</a>!).
2011.04.09: Simplified and corrected MS gradient filter syntax. (thanks <a href="https://github.com/thedavidmeister" target="_blank">david meister</a>)
2011.04.07: Added <a href="https://developer.mozilla.org/en/CSS/background-size" target="_blank">background-size</a> (thx codler!).
2011.03.26: Added Ceaser link.
2011.03.15: Added linear gradients for Opera 11.10. (Thanks, <a href="http://miketaylr.com/" target="_blank">Mike</a>!)
2012.03.01: Went one year into the future to make a minor text change. Phew!
2011.02.22: Browser support updated.
2011.02.20: Tab key support added (good idea, iszak)
2011.02.20: Fixed longstanding rgba NaN bug.
2011.02.16: Fixed IE filter sizingMethod (moved to the end) after maybe 10 bug reports for it. (Whoops.)
2011.02.10: New gradient syntax (Thx <a href="http://samhuri.net/" target="_blank">Sami</a>). Update @font-face syntax.
2011.01.05: Removed unneeded <code>-ms-filter</code> declarations and added unprefixed <code>linear-gradient</code>. (Thx <a href="http://mathiasbynens.be/" target="_blank">Mathias</a>)
2010.11.19: Better handling of users without Flash. (Thx <a href="http://mathiasbynens.be/" target="_blank">Mathias</a>)
2010.11.06: Toggle to light skin (Thx <a href="http://curtisblackwell.com/" target="_blank">Curtis Blackwell</a>!). IE9 Transform added. Clipboard only grabs rules, no selector.
2010.10.05: Unprefixed transitions, transforms
2010.06.02: Clipboard click strips comments
2010.05.03: IE Rotation bug fixed. (Thx <a href="http://www.joshuabradley.co.uk/" target="_blank">Joshua</a>!)
2010.04.11: text-shadow added.
2010.04.05: <a href="http://www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/" target="_blank">Real rotation</a> in IE (Thx Zoltan!). Added transition. No more DropShadow for IE (it's crap)
2010.04.04: New copy to clipboard style. Better mousewheel support.
2010.03.25: Fixed the gradient flipflop. Fixed positioning bug.
*/
</pre>
</body>
</html>