├── .gitignore ├── CNAME ├── README.md ├── ZeroClipboard.swf ├── css ├── Anonymous_Pro.eot ├── Anonymous_Pro.ttf ├── Anonymous_Pro.woff ├── build.css ├── build.min.css ├── colorpicker.css ├── light.css ├── matrices.css └── stylesheet.css ├── favicon.ico ├── filtertests ├── multipleFiltersInDifferentRuleSets.html └── multipleFiltersInSameRuleSets.html ├── grunt.js ├── img ├── clipboard.png ├── colorpicker │ ├── colorpicker_background.png │ ├── colorpicker_hex.png │ ├── colorpicker_hsb_b.png │ ├── colorpicker_hsb_h.png │ ├── colorpicker_hsb_s.png │ ├── colorpicker_indic.gif │ ├── colorpicker_overlay.png │ ├── colorpicker_rgb_b.png │ ├── colorpicker_rgb_g.png │ ├── colorpicker_rgb_r.png │ ├── colorpicker_select.gif │ ├── colorpicker_submit.png │ ├── custom_background.png │ ├── custom_hex.png │ ├── custom_hsb_b.png │ ├── custom_hsb_h.png │ ├── custom_hsb_s.png │ ├── custom_indic.gif │ ├── custom_rgb_b.png │ ├── custom_rgb_g.png │ ├── custom_rgb_r.png │ ├── custom_submit.png │ ├── select.png │ ├── select2.png │ └── slider.png ├── disabled.png ├── love.png ├── off.png ├── on.png ├── reset.png └── unchecked.png ├── index.html ├── javascript ├── analytics.js ├── build.js ├── build.min.js ├── cb_plugins.js ├── detect-flash.js ├── javascript.js ├── jcoglan.com │ ├── CHANGELOG.txt │ ├── sylvester.js │ ├── sylvester.js.gz │ └── sylvester.src.js ├── jquery-1.4.2.js ├── jquery-1.7.1.min.js ├── jquery.plugins.min.js └── zc │ ├── ZeroClipboard.as │ ├── ZeroClipboard.fla │ └── ZeroClipboard.js ├── test_math.html ├── test_math.js ├── test_ui.html └── tests.html /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | css3please.com -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ## deprecated 3 | 4 | This site isn't well maintained. **Use Autoprefixer instead**: 5 | 6 | * https://github.com/postcss/autoprefixer#autoprefixer- 7 | * https://developers.google.com/web/fundamentals/tools/build/setupbuildprocess#dont-trip-up-with-vendor-prefixes 8 | * http://css-tricks.com/autoprefixer/ 9 | * use the sublime plugin for ez pz 10 | 11 | 12 |
22 | This element will receive instant changes as you edit the CSS rules on the left. Enjoy! 23 |
24 |/* [toggle styling] */26 |
29 | /* ------------------------------------------------------------- 30 | CSS3, Please! 31 | =================================================== 32 | 33 | Update: We recommend using Autoprefixer instead of CSS3Please. 34 | 35 | You can edit the underlined values in this css file, 36 | but don't worry about making sure the corresponding 37 | values match, that's all done automagically for you. 38 | 39 | Whenever you want, you can copy the whole or part of 40 | this page and paste it into your own stylesheet. 41 | ------------------------------------------------------------- */ 42 | 43 |44 | 45 |
/* [to clipboard] [toggle rule off] */47 |
48 | .box_round { 49 | border-radius: 12px; /* Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+ */ 50 | 51 | /* useful if you don't want a bg color from leaking outside the border: */ 52 | background-clip: padding-box; /* Android 2.2+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 4+ */ 53 | }54 |
/* */
55 | /* [to clipboard] [toggle inset on] [toggle rule off] */74 |
75 | .box_shadow { 76 | -webkit-box-shadow: 0px 0px 4px 0px #ffffff; /* Android 2.3+, iOS 4.0.2-4.2, Safari 3-4 */ 77 | box-shadow: 0px 0px 4px 0px #ffffff; /* Chrome 6+, Firefox 4+, IE 9+, iOS 5+, Opera 10.50+ */ 78 | }79 |
/* */
80 | /* [to clipboard] [toggle rule off] */84 |
85 | .box_gradient { 86 | background-color: #444444; 87 | background-image: -webkit-linear-gradient(top, #444444, #999999); /* Chrome 10-25, iOS 5+, Safari 5.1+ */ 88 | background-image: linear-gradient(to bottom, #444444, #999999); /* Chrome 26, Firefox 16+, IE 10+, Opera */ 89 | }90 |
/* */
91 | /* [to clipboard] [toggle rule on] */107 |
108 | .box_rotate { 109 | -webkit-transform: rotate(7.5deg); /* Chrome, Opera 15+, Safari 3.1+ */ 110 | -ms-transform: rotate(7.5deg); /* IE 9 */ 111 | transform: rotate(7.5deg); /* Firefox 16+, IE 10+, Opera */ 112 | }113 |
/* */
114 | /* [to clipboard] [toggle rule on] */118 |
119 | .box_scale { 120 | -webkit-transform: scale(0.8); /* Chrome, Opera 15+, Safari 3.1+ */ 121 | -ms-transform: scale(0.8); /* IE 9 */ 122 | transform: scale(0.8); /* Firefox 16+, IE 10+, Opera */ 123 | }124 |
/* */
125 | /* [to clipboard] [toggle rule on] */129 |
130 | .box_3dtransforms { 131 | -webkit-perspective: 300px; /* Chrome 12+, Safari 4+ */ 132 | -ms-perspective: 300px; /* IE 10 */ 133 | perspective: 300px; 134 | -webkit-transform: rotateY(180deg); -webkit-transform-style: preserve-3d; 135 | -ms-transform: rotateY(180deg); -ms-transform-style: preserve-3d; 136 | transform: rotateY(180deg); transform-style: preserve-3d; 137 | }138 |
/* */
139 | /* [to clipboard] [toggle rule off] */144 |
145 | .box_transition { 146 | -webkit-transition: all 0.3s ease-out; /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6 */ 147 | transition: all 0.3s ease-out; /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+ */ 148 | }149 |
/* */
150 | /* [to clipboard] [toggle rule off] */156 |
157 | .box_textshadow {
158 | text-shadow: 1px 1px 3px #888; /* Chrome, Firefox 3.5+, IE 10+, Opera 9+, Safari 1+ */
159 | }
160 | /* */
161 | /* [to clipboard] [toggle rule off] */166 |
167 | .box_opacity {
168 | opacity: 0.9; /* Android 2.1+, Chrome 4+, Firefox 2+, IE 9+, iOS 3.2+, Opera 9+, Safari 3.1+ */
169 | }
170 | /* */
171 | /* [to clipboard] */177 |
178 | * { 179 | -webkit-box-sizing: border-box; /* Android ≤ 2.3, iOS ≤ 4 */ 180 | -moz-box-sizing: border-box; /* Firefox ≤ 28 */ 181 | box-sizing: border-box; /* Chrome, Firefox 29+, IE 8+, Opera, Safari 5.1 */ 182 | }183 |
/* */
184 | /* [to clipboard] [toggle rule off] */189 |
190 | .box_bgsize { 191 | -webkit-background-size: 100% 100%; /* Safari 3-4 */ 192 | background-size: 100% 100%; /* Chrome, Firefox 4+, IE 9+, Opera, Safari 5+ */ 193 | }194 |
/* */
195 | /* [to clipboard] [toggle rule on] */199 |
200 | .box_columns { 201 | -webkit-column-count: 2; -webkit-column-gap: 15px; /* Chrome, Safari 3 */ 202 | -moz-column-count: 2; -moz-column-gap: 15px; /* Firefox 3.5+ */ 203 | column-count: 2; column-gap: 15px; /* Opera 11+ */ 204 | }205 |
/* */
206 | /* [to clipboard] [toggle rule off] */210 |
211 | .box_animation:hover { 212 | -webkit-animation: myanim 5s infinite; /* Chrome, Opera 15+, Safari 5+ */ 213 | animation: myanim 5s infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ 214 | } 215 | 216 | @-webkit-keyframes myanim { 217 | 0% { opacity: 0.0; } 218 | 50% { opacity: 0.5; } 219 | 100% { opacity: 1.0; } 220 | } 221 | @keyframes myanim { 222 | 0% { opacity: 0.0; } 223 | 50% { opacity: 0.5; } 224 | 100% { opacity: 1.0; } 225 | } 226 |227 |
/* */
228 | /* [to clipboard] [toggle rule off] */234 | 235 |
253 | .matrix { 254 |256 | 257 | 258 |255 | }Play for output ...
/* [to clipboard] */
263 | 264 | @font-face { 265 | font-family: 'WebFont'; 266 | src: url('myfont.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ 267 | url('myfont.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */ 268 | }269 | 270 |
/* [to clipboard] [toggle rule off] */275 |
276 | .box_tabsize {
277 | -moz-tab-size: 2; /* Firefox 4+ */
278 | tab-size: 2;
279 | }
280 |
281 |
285 |
286 |
287 | /*
288 | btw- up/down keys work, along with your mouse wheel. ;)
289 | coming soon.. extra css transforms (skew, scale) and more.
290 | plz leave feedback here.
291 | also css3please is an open source project!. report bugs or contribute!
292 |
293 | Notes:
294 | + IE<10 browsers do not support gradients. Possible solutions are using SVG or using a filter with a wrapper div.
295 | + The rotation transform ends up with a different transform-origin in IE. Look at heygrady's transform
296 | library and his excellent guide for the best results.
297 | + If you’re doing transitions, Matthew Lein’s Ceaser generates code with lots of presets, including the Penner equations.
298 |
299 | © 2012; a Paul Irish and Jonathan Neal joint, in association w/ Boaz Sender and Zoltan Hawryluk.
300 |
301 | if you like this, you'll probably also dig yayQuery and mothereffinghsl.com. <3
302 | */
303 |
304 |
305 |
306 |
307 |
308 |
309 | 310 | /* 311 | __Changelog__ 312 | 313 | 2013.04.05: Opera 12.10 supports unprefixed CSS animations, gradients, transforms, and transitions. 314 | 2013.04.05: Removed -webkit-background-clip (thx Albert Scheiner). 315 | 2013.02.11: Added inset toggle for box-shadow (thx Ryan). 316 | 2013.02.05: Chrome 26 support for unprefix transitions and unprefixed gradients. 317 | 2012.12.31: Removed -moz-background-clip (thx Mottie). 318 | 2012.08.29: Removed IE6-8 support. 319 | 2012.06.06: Removed -ms prefixes from transition, animations and gradients. 320 | 2012.03.02: Added box-sizing. Woo! 321 | 2012.01.21: Added transform scale and 3d transforms.(thx uxder) 322 | 2012.01.19: Linear Gradient Syntax Updated. (thx cssdeck and uxder!) 323 | 2012.01.14: Added355 | 356 | 357 | 358 | -------------------------------------------------------------------------------- /javascript/analytics.js: -------------------------------------------------------------------------------- 1 | window._gaq = [['_setAccount', 'UA-15142720-1'], ['_trackPageview']]; 2 | (function(d, t) { 3 | var g = d.createElement(t), 4 | s = d.getElementsByTagName(t)[0]; 5 | g.src = '//www.google-analytics.com/ga.js'; 6 | s.parentNode.insertBefore(g, s); 7 | }(document, 'script')); -------------------------------------------------------------------------------- /javascript/cb_plugins.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | 3 | var $html = $(document.documentElement); 4 | 5 | /*==TOGGLE STYLING==*/ 6 | $('#sandboxwrap .off').click(function() { 7 | $html.toggleClass('light'); 8 | }); 9 | 10 | }); -------------------------------------------------------------------------------- /javascript/detect-flash.js: -------------------------------------------------------------------------------- 1 | if (((navigator.plugins && typeof navigator.plugins['Shockwave Flash'] == 'object') || (window.ActiveXObject && (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')))) && location.protocol != 'file:') document.documentElement.className = 'flash'; -------------------------------------------------------------------------------- /javascript/javascript.js: -------------------------------------------------------------------------------- 1 | window.cssMath = { 2 | /* Number rounded by Length */ 3 | round: function (n, l) { 4 | l = Math.pow(10, l); 5 | 6 | return Math.round(n * l) / l; 7 | }, 8 | /* X and Y coordinates to Rotation and Strength */ 9 | xy2rs: function (x, y) { 10 | return { 11 | r: this.round(Math.atan2(x, y * -1) * 180 / Math.PI, 3), 12 | s: this.round(Math.sqrt((x * x) + (y * y)), 3) 13 | }; 14 | }, 15 | /* Rotation and Strength to X and Y coordinates */ 16 | rs2xy: function (r, s) { 17 | return { 18 | x: this.round(Math.sin(r * Math.PI / 180) * s, 3), 19 | y: this.round(Math.cos(r * Math.PI / 180) * s * -1, 3) 20 | }; 21 | }, 22 | /* Rotation to Degree */ 23 | r2d: function (r) { 24 | return r * 90; 25 | }, 26 | /* Degree to Rotation */ 27 | d2r: function (d) { 28 | return d / 90; 29 | }, 30 | 31 | /* Degrees to Radians */ 32 | d2rad: function (d){ 33 | return (d) * Math.PI / 180; 34 | }, 35 | 36 | /* Radians to Degrees */ 37 | rad2d: function (r) { 38 | return (180*r)/Math.PI + 360; 39 | }, 40 | 41 | /* matrix to IE String */ 42 | m2s: function (M) { 43 | return 'M11=' + M.e(1, 1) + ', M12=' + M.e(1,2) + ', M21=' + M.e(2,1) + ', M22=' + M.e(2,2); 44 | }, 45 | 46 | s2m: function (s) { 47 | 48 | var entries = s.split(','); 49 | var values = new Array(); 50 | 51 | for (var i=0; itab-size
. (Blame Mathias if anything breaks!) 324 | 2011.10.23: Added the sweet matrix manip demo from Peter Nederlof. Thx Peter! 325 | 2011.10.18: CSS Animations added. (thx wookiehangover!) 326 | 2011.07.27: Added multicolumn. (thx hotmeteor!) 327 | 2011.04.12: Added gradient for IE10! (thx calvein!) 328 | 2011.04.11: Added background-clip for the border-radius rule (thx matthewlein!). 329 | 2011.04.09: Simplified and corrected MS gradient filter syntax. (thanks david meister) 330 | 2011.04.07: Added background-size (thx codler!). 331 | 2011.03.26: Added Ceaser link. 332 | 2011.03.15: Added linear gradients for Opera 11.10. (Thanks, Mike!) 333 | 2012.03.01: Went one year into the future to make a minor text change. Phew! 334 | 2011.02.22: Browser support updated. 335 | 2011.02.20: Tab key support added (good idea, iszak) 336 | 2011.02.20: Fixed longstanding rgba NaN bug. 337 | 2011.02.16: Fixed IE filter sizingMethod (moved to the end) after maybe 10 bug reports for it. (Whoops.) 338 | 2011.02.10: New gradient syntax (Thx Sami). Update @font-face syntax. 339 | 2011.01.05: Removed unneeded-ms-filter
declarations and added unprefixedlinear-gradient
. (Thx Mathias) 340 | 2010.11.19: Better handling of users without Flash. (Thx Mathias) 341 | 2010.11.06: Toggle to light skin (Thx Curtis Blackwell!). IE9 Transform added. Clipboard only grabs rules, no selector. 342 | 2010.10.05: Unprefixed transitions, transforms 343 | 2010.06.02: Clipboard click strips comments 344 | 2010.05.03: IE Rotation bug fixed. (Thx Joshua!) 345 | 2010.04.11: text-shadow added. 346 | 2010.04.05: Real rotation in IE (Thx Zoltan!). Added transition. No more DropShadow for IE (it's crap) 347 | 2010.04.04: New copy to clipboard style. Better mousewheel support. 348 | 2010.03.25: Fixed the gradient flipflop. Fixed positioning bug. 349 | */ 350 | 351 | 352 | 353 | 354 |
98 | .box_rgba { 99 | background-color: transparent; 100 | background-color: rgba(180, 180, 144, 0.6); /* Chrome, Firefox 3+, IE 9+, Opera 10.10+, Safari 3+ */ 101 | }
102 |/* */
103 |