Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:paulirish/css3please

* 'master' of github.com:paulirish/css3please:
  Closing some wild span tags
  Change timmy's website address
  Remove IE6-8 support
  Update browser detail on gradient
  Avoid the use of abbreviations for browser names consistently
  Opera 12.50 will unprefix transitions
  Opera 12.50 will unprefix transforms
  Remove newline to make it look like every other line
  Add details on Firefox 16
  Add README
  Add a Gruntfile and use concatenated + minified versions of JS and CSS
  Update gradient CSS in light.css
  add animation and keyframes. #99
  #99 remove ms-transition, ms-linear-gradient and ms keyframe animations.
  small fix to force the ColorPicker to close if you're tabbing out of a color input field.  currently the behavior is that each individual ColorPicker remains open unless you close it with the mouse.
  • Loading branch information...
commit bd23af57f10d172a56790a8d763f398eb894f942 2 parents 2901187 + 759906f
@paulirish authored
View
1  .gitignore
@@ -0,0 +1 @@
+node_modules
View
10 README.md
@@ -0,0 +1,10 @@
+# [CSS3 Please](http://css3please.com/)
+
+## How to build after changing the CSS or JavaScript
+
+```bash
+# Install grunt-css if you haven’t already
+npm install grunt-css
+# Then, just run `grunt` from the root directory of this project
+grunt
+```
View
806 css/build.css
@@ -0,0 +1,806 @@
+/*! css3please.com | 2012-08-03 17:33:50 */
+
+html, body {
+ padding:0;
+ margin:0;
+ background:#def;
+}
+
+body {
+ font-family:arial,tahoma,verdana;
+ font-size:75%;
+ line-height:1.5;
+ padding:20px;
+}
+
+h1 {
+ font-family:georgia, garamond, serif;
+ font-weight:normal;
+ color:rgba(0,0,0,0.5);
+ text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
+}
+
+p {
+ width:230px;
+}
+
+#save {
+ width:300px;
+ height:300px;
+ padding:20px;
+ position:absolute;
+ left:50%;
+ top:50%;
+ margin:-150px 0 0 -150px;
+ border:1px dashed rgba(0,0,0,0.5);
+ color:rgba(0,0,0,0.5);
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+
+
+}
+ #save a.reset {
+ position:absolute;
+ color:rgba(0,0,0,0.5);
+ left:20px;
+ bottom:20px;
+ text-decoration:none;
+ font-size:10px;
+ }
+ #save a.reset:hover {
+ -webkit-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ -moz-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0px,0px);
+ -ms-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ -o-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ }
+
+#play {
+ width:300px;
+ height:300px;
+ padding:20px;
+ position:absolute;
+ left:50%;
+ top:50%;
+ margin:-150px 0 0 -150px;
+ background:#ffa;
+
+ -webkit-user-select: none;
+
+ -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.15);
+ -moz-box-shadow: 0 0 10px rgba(0,0,0,0.15);
+ box-shadow: 0 0 10px rgba(0,0,0,0.15);
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+
+ -webkit-transform: translate3d(0,0,0);
+}
+ #play span {
+ position:absolute;
+ border:1px solid silver;
+ background:white;
+ font-size:14px;
+ padding:4px 8px;
+ white-space:nowrap;
+ cursor:pointer;
+
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ }
+ #play span:hover {
+ border-color:gray;
+ }
+
+ #play .rotate {
+ right:-65px;
+ top:45%;
+ cursor: n-resize;
+ }
+
+ #play .scale {
+ bottom:-40px;
+ right:-50px;
+ cursor: nw-resize;
+
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+ }
+
+ #play .skewx {
+ left:42%;
+ bottom:-15px;
+ cursor: w-resize;
+ }
+
+ #play .skewy {
+ left:-25px;
+ top:45%;
+ cursor: n-resize;
+
+ -webkit-transform: rotate(-90deg);
+ -moz-transform: rotate(-90deg);
+ -ms-transform: rotate(-90deg);
+ -o-transform: rotate(-90deg);
+ transform: rotate(-90deg);
+ }
+
+ #play .move {
+ top:10px;
+ right:10px;
+ cursor: move;
+ }
+
+#output {
+ position:absolute;
+ width:100%;
+ bottom:0;
+ left:0;
+ padding:20px 20px;
+ border-top:1px solid gray;
+ background:#fff;
+ font-family: courier new;
+ text-align:center;
+ white-space:pre;
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+.colorpicker {
+ width: 356px;
+ height: 176px;
+ overflow: hidden;
+ position: absolute;
+ background: url(../img/colorpicker/colorpicker_background.png);
+ font-family: Arial, Helvetica, sans-serif;
+ display: none;
+ z-index: 100;
+}
+.colorpicker_color {
+ width: 150px;
+ height: 150px;
+ left: 14px;
+ top: 13px;
+ position: absolute;
+ background: #f00;
+ overflow: hidden;
+ cursor: crosshair;
+}
+.colorpicker_color div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 150px;
+ height: 150px;
+ background: url(../img/colorpicker/colorpicker_overlay.png);
+}
+.colorpicker_color div div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 11px;
+ height: 11px;
+ overflow: hidden;
+ background: url(../img/colorpicker/colorpicker_select.gif);
+ margin: -5px 0 0 -5px;
+}
+.colorpicker_hue {
+ position: absolute;
+ top: 13px;
+ left: 171px;
+ width: 35px;
+ height: 150px;
+ cursor: n-resize;
+}
+.colorpicker_hue div {
+ position: absolute;
+ width: 35px;
+ height: 9px;
+ overflow: hidden;
+ background: url(../img/colorpicker/colorpicker_indic.gif) left top;
+ margin: -4px 0 0 0;
+ left: 0px;
+}
+.colorpicker_new_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 213px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker_current_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 283px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker input {
+ background-color: transparent;
+ border: 1px solid transparent;
+ position: absolute;
+ font-size: 10px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #898989;
+ top: 4px;
+ right: 11px;
+ text-align: right;
+ margin: 0;
+ padding: 0;
+ height: 11px;
+}
+.colorpicker_hex {
+ position: absolute;
+ width: 72px;
+ height: 22px;
+ background: url(../img/colorpicker/colorpicker_hex.png) top;
+ left: 212px;
+ top: 142px;
+}
+.colorpicker_hex input {
+ right: 6px;
+}
+.colorpicker_field {
+ height: 22px;
+ width: 62px;
+ background-position: top;
+ position: absolute;
+}
+.colorpicker_field span {
+ position: absolute;
+ width: 12px;
+ height: 22px;
+ overflow: hidden;
+ top: 0;
+ right: 0;
+ cursor: n-resize;
+}
+.colorpicker_rgb_r {
+ background-image: url(../img/colorpicker/colorpicker_rgb_r.png);
+ top: 52px;
+ left: 212px;
+}
+.colorpicker_rgb_g {
+ background-image: url(../img/colorpicker/colorpicker_rgb_g.png);
+ top: 82px;
+ left: 212px;
+}
+.colorpicker_rgb_b {
+ background-image: url(../img/colorpicker/colorpicker_rgb_b.png);
+ top: 112px;
+ left: 212px;
+}
+.colorpicker_hsb_h {
+ background-image: url(../img/colorpicker/colorpicker_hsb_h.png);
+ top: 52px;
+ left: 282px;
+}
+.colorpicker_hsb_s {
+ background-image: url(../img/colorpicker/colorpicker_hsb_s.png);
+ top: 82px;
+ left: 282px;
+}
+.colorpicker_hsb_b {
+ background-image: url(../img/colorpicker/colorpicker_hsb_b.png);
+ top: 112px;
+ left: 282px;
+}
+.colorpicker_submit {
+ position: absolute;
+ width: 22px;
+ height: 22px;
+ background: url(../img/colorpicker/colorpicker_submit.png) top;
+ left: 322px;
+ top: 142px;
+ overflow: hidden;
+}
+.colorpicker_focus {
+ background-position: center;
+}
+.colorpicker_hex.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_submit.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_slider {
+ background-position: bottom;
+}
+
+/* --------------------------------
+ Normalize CSS Reset v1.2
+ Firefox IE Safari Chrome Opera
+ Jonathan Neal
+ jneal@liferay.com
+ 01-28-2010
+--------------------------------*/
+
+/* Global */
+
+html {
+ overflow-y: scroll;
+ background:none;
+}
+
+article,
+aside,
+figure,
+footer,
+header,
+hgroup,
+nav,
+section {
+ display: block;
+}
+
+a {
+ cursor: pointer;
+ outline: none;
+}
+a:link { color: #aaa;}
+
+q:before,
+q:after {
+ content: "";
+}
+
+img {
+ border: 0;
+ vertical-align: text-bottom;
+}
+
+table {
+ border-collapse: collapse;
+}
+
+/* Box Model */
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin: 20px 0;
+}
+
+blockquote,
+dl,
+ol,
+menu,
+p,
+pre,
+ul {
+ margin: 16px 0;
+}
+
+body {
+ margin: 8px;
+}
+
+ol,
+ul ol {
+ list-style: decimal outside;
+}
+
+ul,
+ol ul {
+ list-style: disc outside;
+}
+
+ul ul {
+ list-style: circle;
+}
+
+ol ol {
+ list-style: upper-roman;
+}
+
+.rule_wrapper {
+ margin: 0 0 15px 0;
+ position: relative;
+}
+
+/* Toolbox */
+
+.toolbox_container {
+ position: absolute; visibility:hidden;
+ bottom: 18px; left: 15px;
+}
+
+.rule_wrapper:hover .toolbox_container { visibility:visible; }
+
+.toolbox {
+ position: relative;
+ display: block;
+ /*
+ background: #05070e;
+ border: 1px solid #1b2448;
+ width: 100px;
+ padding: 3px;
+ height: 24px;
+ */
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+
+}
+
+.button_container {
+ position: relative;
+ float: left;
+}
+
+.copybutton {
+ width: 24px;
+ height: 24px;
+ background: url(../img/clipboard.png) no-repeat 0 0;
+ background-position: 0 0;
+ background-position-x: 0;
+ background-position-y: 0;
+}
+
+.copybutton.hover {
+ background: url(../img/clipboard.png) no-repeat 0 -24px;
+ background-position: 0 -24px;
+ background-position-x: 0;
+ background-position-y: -24px;
+}
+
+.resetbutton {
+ width: 24px;
+ height: 24px;
+ background: url(../img/reset.png) no-repeat 0 0;
+ background-position: 0 0;
+ background-position-x: 0;
+ background-position-y: 0;
+
+ display:none;
+}
+
+.resetbutton:hover {
+ background: url(../img/reset.png) no-repeat 0 -24px;
+ background-position: 0 -24px;
+ background-position-x: 0;
+ background-position-y: -24px;
+}
+/* Color */
+
+abbr {
+ border-bottom: 1px dotted;
+ border-bottom-color: inherit;
+}
+
+body {
+ background-color: #FFF;
+ color: #d8d8d8;
+}
+
+hr {
+ border: 0 solid #808080;
+ border-width: 0 0 1px;
+ height: 0;
+}
+
+/* Fonts */
+
+body {
+ font: 16px/20px Times, "Times New Roman", Georgia, serif;
+}
+
+code,
+h3,
+h4,
+h5,
+h6,
+kbd,
+listing,
+pre,
+samp,
+tt {
+ line-height: 20px;
+}
+
+h1 {
+ font-size: 32px;
+ line-height: 40px;
+}
+
+h2 {
+ font-size: 24px;
+ line-height: 30px;
+}
+
+h3 {
+ font-size: 18px;
+}
+
+h4,
+h5,
+h6 {
+ font-size: 16px;
+}
+
+sub,
+sup {
+ font-size: 12px;
+ line-height: 0;
+}
+
+code,
+kbd,
+listing,
+pre,
+samp,
+tt {
+ font-size: 13px;
+}
+
+dfn {
+ font-style: italic;
+}
+
+/* --------------------------------
+ CSS34All Theme
+ Jonathan Neal
+ jneal@liferay.com
+ 01-28-2010
+--------------------------------*/
+
+body {
+ background-color: #0c1021; /*was url(../img/texture.jpg)*/
+ overflow-x: hidden;
+
+
+}
+
+#sandboxwrap {
+ position: fixed;
+ right: 25px;
+ top: 50px;
+ z-index: 10;
+}
+#sandbox {
+ font-family: "goudy-bookletter-1911-1","goudy-bookletter-1911-2","Baskerville","Georgia",serif;
+ border:1px solid rgba(21, 11, 11, 0.2);
+ overflow: hidden;
+ padding: 20px;
+
+ width: 440px;
+ z-index: 2;
+ color: rgba(0, 0, 0, 0.6);
+ font-size: 16px;
+/* text-shadow: 0px 0px 1px rgba(255, 255, 255, .1); */
+}
+#sandbox h1{
+ font-weight: normal;
+ margin: 0 0 20px 0;
+ font-size: 56px;
+ word-spacing: 2px;
+}
+#sandbox abbr{
+ cursor: help;
+ font-size: 1.3em;
+ color: #ff2166;
+ text-shadow: 0px 0px 1px #333;
+ border-bottom: 1px dashed #888;
+}
+#sandbox p{
+ font-size: 30px;
+ line-height: 50px;
+ margin: 0;
+ width: auto;
+}
+
+.rule,
+.rule input {
+ font: 14px/20px Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
+ white-space: pre;
+ margin: 0;
+ position: relative;
+ z-index: 1;
+ display: inline
+}
+.bracket { color: #f8f8f8; }
+
+.rule .comment {
+ color: #0088ff;
+ color: rgba(0,136,255,.9);
+}
+.rule.comment { display:block;}
+.comment a { color:inherit; text-decoration:none;
+}
+
+.commentedout .endcomment { display:none;}
+.commentclose { visibility:hidden;}
+.commentedout .commentclose { visibility:visible;}
+.commentedout .rule , .commentedout .rule span{ color: #0088ff; color: rgba(0,136,255,.9) !important;}
+body .declaration .comment, span.comment .comment { color: rgba(0,136,255,.3) !important }
+
+pre.comment .comment { color: rgba(0,136,255,.5);
+ -moz-transition: color 0.6s ease-out; /* FF3.7+ */
+ -o-transition: color 0.6s ease-out; /* Opera 10.5 */
+ -webkit-transition: color 0.6s ease-out; /* Saf3.2+, Chrome */
+ }
+
+
+
+.rule_wrapper:hover pre.comment .comment { color: rgba(0,136,255,.9);}
+
+.rule_wrapper pre.comment span.comment a:hover,
+.rule_wrapper pre.comment span.comment a.hover { color: rgba(0,136,255,1);}
+
+body .commentclose .comment { color: rgba(0,136,255,.9) !important;}
+
+.footer .comment a, .comment a { border-bottom: 1px solid hsla(208, 100%, 70%, 0.4) !important }
+
+.rule .selector {
+ color: #ff6400;
+}
+
+.rule .property, span.ie {
+ color: #8da6ce;
+}
+.rule .comment .declaration { color: #8da6ce; }
+
+.rule .value, span.ie .filter {
+ color: #61ce3c;
+}
+
+.rule b {
+ border-bottom: 1px dotted #808080;
+ color: #d8fa3c;
+ font-weight: normal;
+ padding: 0 0 1px;
+ position: relative;
+}
+.rule b[readonly] { border-bottom: 0; opacity: .82}
+.commentedout .rule b[readonly] { opacity: 1}
+
+
+.rule b input {
+ background: none;
+ border: 0;
+ color: inherit;
+ display: none;
+ left: -1px;
+ min-width: 2em;
+ outline: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ width: 200%;
+}
+
+.rule b.edit span {
+ visibility: hidden;
+}
+
+.rule b.edit input {
+ display: inline;
+ color: white;
+}
+#guestbook{position:absolute;right:10px;padding-bottom: 10px; }
+
+
+::-moz-selection{
+ background: #FF5E99;
+ color:#fff;
+}
+
+::selection {
+ background:#FF5E99;
+ color:#fff;
+}
+
+/* --------------------------------
+ Curtis Blackwell's Changes
+ blackwell.curtis@gmail.com
+ 11.4.10
+--------------------------------*/
+
+#sandbox { margin-bottom: 20px; }
+
+#sandboxwrap .rule.comment { text-align: right; }
+
+body {
+ -webkit-transition: background-color 0.5s ease-out; /* Saf3.2+, Chrome */
+ -moz-transition: background-color 0.5s ease-out; /* FF4+ */
+ -ms-transition: background-color 0.5s ease-out; /* IE10? */
+ -o-transition: background-color 0.5s ease-out; /* Opera 10.5+ */
+ transition: background-color 0.5s ease-out;
+}
+
+/* @mathias */
+
+.cb { display: none; }
+.flash .cb { display: inline; }
+
+
+/* overruling the new matrix stuff. */
+
+
+#matrixbox { position:relative; top: 160px;}
+#output { position: static; background: none; border: 0;
+ text-align: inherit;
+ font-family: inherit;
+}
+#box_matrix {
+position: relative;
+z-index: 10;
+background: #0c1021;
+min-height: 270px;
+margin-right: -10px;
+}
+
+
+
+#play, #save {
+height: 160px;
+width: 160px;
+padding: 50px;
+text-align: center;
+right: 12%;
+z-index: 20;
+left: auto;
+color:black;
+}
+#save { color: white;
+border-color: white; }
+.light body, .light #box_matrix {
+ background-color: #eee;
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#fff)); /* Saf4+, Chrome */
+ background-image: -webkit-linear-gradient(top, #eee, #fff); /* Chrome 10+, Saf5.1+, iOS 5+ */
+ background-image: -moz-linear-gradient(top, #eee, #fff); /* FF3.6+ */
+ background-image: -o-linear-gradient(top, #eee, #fff); /* Opera 11.10+ */
+ background-image: linear-gradient(to bottom, #eee, #fff);
+ color: #ff6400;
+}
+
+.light .rule_wrapper pre.comment .comment,
+.light .rule .comment,
+.light .commentedout .rule,
+.light .commentedout .rule span {
+ color: #50bd2b !important;
+}
+
+.light .rule_wrapper:hover pre.comment .comment,
+.light .rule_wrapper pre.comment span.comment a:hover,
+.light .rule_wrapper pre.comment span.comment a.hover {
+ color: #2d9e06;
+}
+
+.light .rule .property, span.ie {
+ color: #333;
+}
+
+.light .rule b {
+ color: rgba(0, 136, 255, 0.898438);
+}
+
+.light .rule b.edit input {
+ color: red;
+}
+
+.light .rule .value, span.ie .filter {
+ color: saddleBrown;
+}
+
+.light .footer .comment a,
+.light .comment a {
+ border-bottom: 1px solid #50bd2b;
+}
+
+.light .rule.comment .comment a {
+ border-bottom: none;
+}
View
2  css/build.min.css
@@ -0,0 +1,2 @@
+/*! css3please.com | 2012-08-03 17:33:50 */
+html,body{padding:0;margin:0;background:#def}body{font-family:arial,tahoma,verdana;font-size:75%;line-height:1.5;padding:20px}h1{font-family:georgia,garamond,serif;font-weight:normal;color:rgba(0,0,0,0.5);text-shadow:1px 1px 2px rgba(0,0,0,0.25)}p{width:230px}#save{width:300px;height:300px;padding:20px;position:absolute;left:50%;top:50%;margin:-150px 0 0 -150px;border:1px dashed rgba(0,0,0,0.5);color:rgba(0,0,0,0.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#save a.reset{position:absolute;color:rgba(0,0,0,0.5);left:20px;bottom:20px;text-decoration:none;font-size:10px}#save a.reset:hover{-webkit-transform:matrix(1.4172,-0.3424,0.3074,1.2345,0,0);-moz-transform:matrix(1.4172,-0.3424,0.3074,1.2345,0px,0px);-ms-transform:matrix(1.4172,-0.3424,0.3074,1.2345,0,0);-o-transform:matrix(1.4172,-0.3424,0.3074,1.2345,0,0);transform:matrix(1.4172,-0.3424,0.3074,1.2345,0,0)}#play{width:300px;height:300px;padding:20px;position:absolute;left:50%;top:50%;margin:-150px 0 0 -150px;background:#ffa;-webkit-user-select:none;-webkit-box-shadow:0 0 10px rgba(0,0,0,0.15);-moz-box-shadow:0 0 10px rgba(0,0,0,0.15);box-shadow:0 0 10px rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translate3d(0,0,0)}#play span{position:absolute;border:1px solid silver;background:white;font-size:14px;padding:4px 8px;white-space:nowrap;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#play span:hover{border-color:gray}#play .rotate{right:-65px;top:45%;cursor:n-resize}#play .scale{bottom:-40px;right:-50px;cursor:nw-resize;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}#play .skewx{left:42%;bottom:-15px;cursor:w-resize}#play .skewy{left:-25px;top:45%;cursor:n-resize;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}#play .move{top:10px;right:10px;cursor:move}#output{position:absolute;width:100%;bottom:0;left:0;padding:20px 20px;border-top:1px solid gray;background:#fff;font-family:courier new;text-align:center;white-space:pre;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../img/colorpicker/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none;z-index:100}.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:#f00;overflow:hidden;cursor:crosshair}.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../img/colorpicker/colorpicker_overlay.png)}.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../img/colorpicker/colorpicker_select.gif);margin:-5px 0 0 -5px}.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize}.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../img/colorpicker/colorpicker_indic.gif) left top;margin:-4px 0 0 0;left:0}.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:#f00}.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:#f00}.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;margin:0;padding:0;height:11px}.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../img/colorpicker/colorpicker_hex.png) top;left:212px;top:142px}.colorpicker_hex input{right:6px}.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute}.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize}.colorpicker_rgb_r{background-image:url(../img/colorpicker/colorpicker_rgb_r.png);top:52px;left:212px}.colorpicker_rgb_g{background-image:url(../img/colorpicker/colorpicker_rgb_g.png);top:82px;left:212px}.colorpicker_rgb_b{background-image:url(../img/colorpicker/colorpicker_rgb_b.png);top:112px;left:212px}.colorpicker_hsb_h{background-image:url(../img/colorpicker/colorpicker_hsb_h.png);top:52px;left:282px}.colorpicker_hsb_s{background-image:url(../img/colorpicker/colorpicker_hsb_s.png);top:82px;left:282px}.colorpicker_hsb_b{background-image:url(../img/colorpicker/colorpicker_hsb_b.png);top:112px;left:282px}.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../img/colorpicker/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden}.colorpicker_focus{background-position:center}.colorpicker_hex.colorpicker_focus{background-position:bottom}.colorpicker_submit.colorpicker_focus{background-position:bottom}.colorpicker_slider{background-position:bottom}html{overflow-y:scroll;background:none}article,aside,figure,footer,header,hgroup,nav,section{display:block}a{cursor:pointer;outline:none}a:link{color:#aaa}q:before,q:after{content:""}img{border:0;vertical-align:text-bottom}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{margin:20px 0}blockquote,dl,ol,menu,p,pre,ul{margin:16px 0}body{margin:8px}ol,ul ol{list-style:decimal outside}ul,ol ul{list-style:disc outside}ul ul{list-style:circle}ol ol{list-style:upper-roman}.rule_wrapper{margin:0 0 15px 0;position:relative}.toolbox_container{position:absolute;visibility:hidden;bottom:18px;left:15px}.rule_wrapper:hover .toolbox_container{visibility:visible}.toolbox{position:relative;display:block;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.button_container{position:relative;float:left}.copybutton{width:24px;height:24px;background:url(../img/clipboard.png) no-repeat 0 0;background-position:0 0;background-position-x:0;background-position-y:0}.copybutton.hover{background:url(../img/clipboard.png) no-repeat 0 -24px;background-position:0 -24px;background-position-x:0;background-position-y:-24px}.resetbutton{width:24px;height:24px;background:url(../img/reset.png) no-repeat 0 0;background-position:0 0;background-position-x:0;background-position-y:0;display:none}.resetbutton:hover{background:url(../img/reset.png) no-repeat 0 -24px;background-position:0 -24px;background-position-x:0;background-position-y:-24px}abbr{border-bottom:1px dotted;border-bottom-color:inherit}body{background-color:#FFF;color:#d8d8d8}hr{border:0 solid #808080;border-width:0 0 1px;height:0}body{font:16px/20px Times,"Times New Roman",Georgia,serif}code,h3,h4,h5,h6,kbd,listing,pre,samp,tt{line-height:20px}h1{font-size:32px;line-height:40px}h2{font-size:24px;line-height:30px}h3{font-size:18px}h4,h5,h6{font-size:16px}sub,sup{font-size:12px;line-height:0}code,kbd,listing,pre,samp,tt{font-size:13px}dfn{font-style:italic}body{background-color:#0c1021;overflow-x:hidden}#sandboxwrap{position:fixed;right:25px;top:50px;z-index:10}#sandbox{font-family:"goudy-bookletter-1911-1","goudy-bookletter-1911-2","Baskerville","Georgia",serif;border:1px solid rgba(21,11,11,0.2);overflow:hidden;padding:20px;width:440px;z-index:2;color:rgba(0,0,0,0.6);font-size:16px}#sandbox h1{font-weight:normal;margin:0 0 20px 0;font-size:56px;word-spacing:2px}#sandbox abbr{cursor:help;font-size:1.3em;color:#ff2166;text-shadow:0 0 1px #333;border-bottom:1px dashed #888}#sandbox p{font-size:30px;line-height:50px;margin:0;width:auto}.rule,.rule input{font:14px/20px Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;white-space:pre;margin:0;position:relative;z-index:1;display:inline}.bracket{color:#f8f8f8}.rule .comment{color:#08f;color:rgba(0,136,255,.9)}.rule.comment{display:block}.comment a{color:inherit;text-decoration:none}.commentedout .endcomment{display:none}.commentclose{visibility:hidden}.commentedout .commentclose{visibility:visible}.commentedout .rule,.commentedout .rule span{color:#08f;color:rgba(0,136,255,.9)!important}body .declaration .comment,span.comment .comment{color:rgba(0,136,255,.3)!important}pre.comment .comment{color:rgba(0,136,255,.5);-moz-transition:color 0.6s ease-out;-o-transition:color 0.6s ease-out;-webkit-transition:color 0.6s ease-out}.rule_wrapper:hover pre.comment .comment{color:rgba(0,136,255,.9)}.rule_wrapper pre.comment span.comment a:hover,.rule_wrapper pre.comment span.comment a.hover{color:rgba(0,136,255,1)}body .commentclose .comment{color:rgba(0,136,255,.9)!important}.footer .comment a,.comment a{border-bottom:1px solid hsla(208,100%,70%,0.4)!important}.rule .selector{color:#ff6400}.rule .property,span.ie{color:#8da6ce}.rule .comment .declaration{color:#8da6ce}.rule .value,span.ie .filter{color:#61ce3c}.rule b{border-bottom:1px dotted #808080;color:#d8fa3c;font-weight:normal;padding:0 0 1px;position:relative}.rule b[readonly]{border-bottom:0;opacity:.82}.commentedout .rule b[readonly]{opacity:1}.rule b input{background:none;border:0;color:inherit;display:none;left:-1px;min-width:2em;outline:0;padding:0;position:absolute;top:0;width:200%}.rule b.edit span{visibility:hidden}.rule b.edit input{display:inline;color:white}#guestbook{position:absolute;right:10px;padding-bottom:10px}::-moz-selection{background:#FF5E99;color:#fff}::selection{background:#FF5E99;color:#fff}#sandbox{margin-bottom:20px}#sandboxwrap .rule.comment{text-align:right}body{-webkit-transition:background-color 0.5s ease-out;-moz-transition:background-color 0.5s ease-out;-ms-transition:background-color 0.5s ease-out;-o-transition:background-color 0.5s ease-out;transition:background-color 0.5s ease-out}.cb{display:none}.flash .cb{display:inline}#matrixbox{position:relative;top:160px}#output{position:static;background:none;border:0;text-align:inherit;font-family:inherit}#box_matrix{position:relative;z-index:10;background:#0c1021;min-height:270px;margin-right:-10px}#play,#save{height:160px;width:160px;padding:50px;text-align:center;right:12%;z-index:20;left:auto;color:black}#save{color:white;border-color:white}.light body,.light #box_matrix{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#fff));background-image:-webkit-linear-gradient(top,#eee,#fff);background-image:-moz-linear-gradient(top,#eee,#fff);background-image:-o-linear-gradient(top,#eee,#fff);background-image:linear-gradient(to bottom,#eee,#fff);color:#ff6400}.light .rule_wrapper pre.comment .comment,.light .rule .comment,.light .commentedout .rule,.light .commentedout .rule span{color:#50bd2b!important}.light .rule_wrapper:hover pre.comment .comment,.light .rule_wrapper pre.comment span.comment a:hover,.light .rule_wrapper pre.comment span.comment a.hover{color:#2d9e06}.light .rule .property,span.ie{color:#333}.light .rule b{color:rgba(0,136,255,0.898438)}.light .rule b.edit input{color:red}.light .rule .value,span.ie .filter{color:saddleBrown}.light .footer .comment a,.light .comment a{border-bottom:1px solid #50bd2b}.light .rule.comment .comment a{border-bottom:none}
View
57 css/light.css
@@ -1,26 +1,47 @@
-body, #box_matrix {
- background-color: #eeeeee;
- background-image: -moz-linear-gradient(top, #eeeeee, #ffffff);
- background-image: -ms-linear-gradient(top, #eeeeee, #ffffff);
- background-image: -o-linear-gradient(top, #eeeeee, #ffffff);
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eeeeee),color-stop(1, #ffffff));
- background-image: -webkit-linear-gradient(#eeeeee, #ffffff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#ffffff');
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#ffffff')";
- color: #FF6400;
+.light body, .light #box_matrix {
+ background-color: #eee;
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#fff)); /* Saf4+, Chrome */
+ background-image: -webkit-linear-gradient(top, #eee, #fff); /* Chrome 10+, Saf5.1+, iOS 5+ */
+ background-image: -moz-linear-gradient(top, #eee, #fff); /* FF3.6+ */
+ background-image: -o-linear-gradient(top, #eee, #fff); /* Opera 11.10+ */
+ background-image: linear-gradient(to bottom, #eee, #fff);
+ color: #ff6400;
}
-.rule_wrapper pre.comment .comment, .rule .comment, .commentedout .rule, .commentedout .rule span { color: #50BD2B !important; }
-.rule_wrapper:hover pre.comment .comment, .rule_wrapper pre.comment span.comment a:hover, .rule_wrapper pre.comment span.comment a.hover { color: #2d9e06; }
+.light .rule_wrapper pre.comment .comment,
+.light .rule .comment,
+.light .commentedout .rule,
+.light .commentedout .rule span {
+ color: #50bd2b !important;
+}
+
+.light .rule_wrapper:hover pre.comment .comment,
+.light .rule_wrapper pre.comment span.comment a:hover,
+.light .rule_wrapper pre.comment span.comment a.hover {
+ color: #2d9e06;
+}
-.rule .property, span.ie { color: #333; }
+.light .rule .property, span.ie {
+ color: #333;
+}
-.rule b { color: rgba(0, 136, 255, 0.898438); }
+.light .rule b {
+ color: rgba(0, 136, 255, 0.898438);
+}
-.rule b.edit input { color: red; }
+.light .rule b.edit input {
+ color: red;
+}
-.rule .value, span.ie .filter { color: saddleBrown; }
+.light .rule .value, span.ie .filter {
+ color: saddleBrown;
+}
-.footer .comment a, .comment a { border-bottom: 1px solid #50BD2B; }
+.light .footer .comment a,
+.light .comment a {
+ border-bottom: 1px solid #50bd2b;
+}
-.rule.comment .comment a { border-bottom: none; }
+.light .rule.comment .comment a {
+ border-bottom: none;
+}
View
154 css/matrices.css
@@ -0,0 +1,154 @@
+html, body {
+ padding:0;
+ margin:0;
+ background:#def;
+}
+
+body {
+ font-family:arial,tahoma,verdana;
+ font-size:75%;
+ line-height:1.5;
+ padding:20px;
+}
+
+h1 {
+ font-family:georgia, garamond, serif;
+ font-weight:normal;
+ color:rgba(0,0,0,0.5);
+ text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
+}
+
+p {
+ width:230px;
+}
+
+#save {
+ width:300px;
+ height:300px;
+ padding:20px;
+ position:absolute;
+ left:50%;
+ top:50%;
+ margin:-150px 0 0 -150px;
+ border:1px dashed rgba(0,0,0,0.5);
+ color:rgba(0,0,0,0.5);
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+
+
+}
+ #save a.reset {
+ position:absolute;
+ color:rgba(0,0,0,0.5);
+ left:20px;
+ bottom:20px;
+ text-decoration:none;
+ font-size:10px;
+ }
+ #save a.reset:hover {
+ -webkit-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ -moz-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0px,0px);
+ -ms-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ -o-transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ transform: matrix(1.4172,-0.3424,0.3074,1.2345,0,0);
+ }
+
+#play {
+ width:300px;
+ height:300px;
+ padding:20px;
+ position:absolute;
+ left:50%;
+ top:50%;
+ margin:-150px 0 0 -150px;
+ background:#ffa;
+
+ -webkit-user-select: none;
+
+ -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.15);
+ -moz-box-shadow: 0 0 10px rgba(0,0,0,0.15);
+ box-shadow: 0 0 10px rgba(0,0,0,0.15);
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+
+ -webkit-transform: translate3d(0,0,0);
+}
+ #play span {
+ position:absolute;
+ border:1px solid silver;
+ background:white;
+ font-size:14px;
+ padding:4px 8px;
+ white-space:nowrap;
+ cursor:pointer;
+
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ }
+ #play span:hover {
+ border-color:gray;
+ }
+
+ #play .rotate {
+ right:-65px;
+ top:45%;
+ cursor: n-resize;
+ }
+
+ #play .scale {
+ bottom:-40px;
+ right:-50px;
+ cursor: nw-resize;
+
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+ }
+
+ #play .skewx {
+ left:42%;
+ bottom:-15px;
+ cursor: w-resize;
+ }
+
+ #play .skewy {
+ left:-25px;
+ top:45%;
+ cursor: n-resize;
+
+ -webkit-transform: rotate(-90deg);
+ -moz-transform: rotate(-90deg);
+ -ms-transform: rotate(-90deg);
+ -o-transform: rotate(-90deg);
+ transform: rotate(-90deg);
+ }
+
+ #play .move {
+ top:10px;
+ right:10px;
+ cursor: move;
+ }
+
+#output {
+ position:absolute;
+ width:100%;
+ bottom:0;
+ left:0;
+ padding:20px 20px;
+ border-top:1px solid gray;
+ background:#fff;
+ font-family: courier new;
+ text-align:center;
+ white-space:pre;
+
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
View
16 css/stylesheet.css
@@ -66,7 +66,7 @@ ul {
}
body {
- margin: 8px;
+ margin: 8px;
}
ol,
@@ -145,7 +145,7 @@ ol ol {
background-position: 0 0;
background-position-x: 0;
background-position-y: 0;
-
+
display:none;
}
@@ -256,7 +256,7 @@ body {
border:1px solid rgba(21, 11, 11, 0.2);
overflow: hidden;
padding: 20px;
-
+
width: 440px;
z-index: 2;
color: rgba(0, 0, 0, 0.6);
@@ -299,7 +299,7 @@ body {
color: rgba(0,136,255,.9);
}
.rule.comment { display:block;}
-.comment a { color:inherit; text-decoration:none;
+.comment a { color:inherit; text-decoration:none;
}
.commentedout .endcomment { display:none;}
@@ -308,7 +308,7 @@ body {
.commentedout .rule , .commentedout .rule span{ color: #0088ff; color: rgba(0,136,255,.9) !important;}
body .declaration .comment, span.comment .comment { color: rgba(0,136,255,.3) !important }
-pre.comment .comment { color: rgba(0,136,255,.5);
+pre.comment .comment { color: rgba(0,136,255,.5);
-moz-transition: color 0.6s ease-out; /* FF3.7+ */
-o-transition: color 0.6s ease-out; /* Opera 10.5 */
-webkit-transition: color 0.6s ease-out; /* Saf3.2+, Chrome */
@@ -399,7 +399,7 @@ body {
-moz-transition: background-color 0.5s ease-out; /* FF4+ */
-ms-transition: background-color 0.5s ease-out; /* IE10? */
-o-transition: background-color 0.5s ease-out; /* Opera 10.5+ */
- transition: background-color 0.5s ease-out;
+ transition: background-color 0.5s ease-out;
}
/* @mathias */
@@ -416,7 +416,7 @@ body {
text-align: inherit;
font-family: inherit;
}
-#box_matrix {
+#box_matrix {
position: relative;
z-index: 10;
background: #0c1021;
@@ -426,7 +426,7 @@ margin-right: -10px;
-#play, #save {
+#play, #save {
height: 160px;
width: 160px;
padding: 50px;
View
47 grunt.js
@@ -0,0 +1,47 @@
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ 'meta': {
+ 'banner': '/*! css3please.com | <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */',
+ 'srcfiles': [
+ 'javascript/detect-flash.js',
+ 'javascript/jquery-1.7.1.min.js',
+ 'javascript/jquery.plugins.min.js',
+ 'javascript/javascript.js',
+ 'javascript/cb_plugins.js',
+ 'javascript/analytics.js'
+ ]
+ },
+ 'concat': {
+ 'js': {
+ 'src': ['<banner:meta.banner>', '<config:meta.srcfiles>'],
+ 'dest': 'javascript/build.js'
+ },
+ 'css': {
+ 'src': ['<banner:meta.banner>', 'css/matrices.css', 'css/colorpicker.css', 'css/stylesheet.css', 'css/light.css'],
+ 'dest': 'css/build.css'
+ }
+ },
+ 'min': {
+ 'dist': {
+ 'src': ['<config:concat.js.dest>'],
+ 'dest': 'javascript/build.min.js'
+ }
+ },
+ 'cssmin': {
+ 'dist': {
+ 'src': ['<config:concat.css.dest>'],
+ 'dest': 'css/build.min.css'
+ }
+ },
+ 'watch': {
+ 'files': '<config:meta.srcfiles>',
+ 'tasks': 'default'
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-css');
+
+ grunt.registerTask('default', 'concat min cssmin');
+
+};
View
134 index.html
@@ -1,20 +1,14 @@
<!DOCTYPE html>
<html>
<head>
- <meta charset="UTF-8">
+ <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/colorpicker.css">
- <link rel="stylesheet" href="css/stylesheet.css" media="screen">
+ <!-- <link rel="stylesheet" href="http://peterned.home.xs4all.nl/matrices/matrices.css"> -->
+ <link rel="stylesheet" href="css/build.min.css">
-<script>if (((navigator.plugins && typeof navigator.plugins['Shockwave Flash'] == 'object') || (window.ActiveXObject && (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')))) && location.protocol != 'file:') document.documentElement.className = 'flash';</script>
-
-<!-- its 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/jquery-1.7.1.min.js"></script>
-<script src="javascript/jquery.plugins.min.js"></script>
-<script src="javascript/javascript.js"></script>
-<script src="javascript/cb_plugins.js"></script>
+ <!-- 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>
@@ -50,8 +44,8 @@
<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 {
- -webkit-border-radius: <b g="0">12px</b>; <span class="comment">/* Saf3-4, iOS 1-3.2, Android &le;1.6 <span class="endcomment">*/</span></span>
- border-radius: <b g="0">12px</b>; <span class="comment">/* Opera 10.5, IE9, Saf5, Chrome, FF4+, iOS 4, Android 2.1+ <span class="endcomment">*/</span></span>
+ -webkit-border-radius: <b g="0">12px</b>; <span class="comment">/* Safari 3-4, iOS 1-3.2, Android &le;1.6 <span class="endcomment">*/</span></span>
+ border-radius: <b g="0">12px</b>; <span class="comment">/* Opera 10.5, IE9+, Safari 5, Chrome, Firefox 4+, iOS 4, Android 2.1+ <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>
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
@@ -63,12 +57,12 @@
<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">/* FF1+ <span class="endcomment">*/</span></span>
- -webkit-border-top-left-radius: <b g="1" readonly>8px</b>; <span class="comment">/* Saf3-4 <span class="endcomment">*/</span></span>
+ -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">/* Opera 10.5, IE9, Saf5, Chrome <span class="endcomment">*/</span></span>
+ border-radius: <b g="0">8px 8px 0px 0px</b>; <span class="comment">/* Opera 10.5, IE9, Safari 5, Chrome <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -78,8 +72,8 @@
<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_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">/* Saf3-4, iOS 4.0.2 - 4.2, Android 2.3+ <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">/* Opera 10.5, IE9, FF4+, Chrome 6+, iOS 5 <span class="endcomment">*/</span></span>
+ -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">/* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ <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">/* Opera 10.5, IE9+, Firefox 4+, Chrome 6+, iOS 5 <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -89,12 +83,11 @@
<pre class="rule">
.box_gradient {
background-color: <b g="0" i="lHex">#444444</b>;
- background-image: -webkit-gradient(linear, left top, left bottom, from(<b g="0" i="lHex">#444444</b>), to(<b g="1" i="lHex">#999999</b>)); <span class="comment">/* Saf4+, Chrome <span class="endcomment">*/</span></span>
- 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+, Saf5.1+, iOS 5+ <span class="endcomment">*/</span></span>
- background-image: -moz-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* FF3.6+ <span class="endcomment">*/</span></span>
- background-image: -ms-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* IE10 <span class="endcomment">*/</span></span>
- background-image: -o-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* Opera 11.10+ <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>
+ background-image: -webkit-gradient(linear, left top, left bottom, from(<b g="0" i="lHex">#444444</b>), to(<b g="1" i="lHex">#999999</b>)); <span class="comment">/* Safari 4+, Chrome <span class="endcomment">*/</span></span>
+ 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+, Safari 5.1+, iOS 5+ <span class="endcomment">*/</span></span>
+ background-image: -moz-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* Firefox 3.6-15 <span class="endcomment">*/</span></span>
+ background-image: -o-linear-gradient(top, <b g="0" i="lHex">#444444</b>, <b g="1" i="lHex">#999999</b>); <span class="comment">/* Opera 11.10-12.00 <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">/* Firefox 16+, IE10, Opera 12.50+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -106,9 +99,7 @@
<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">/* FF3+, Saf3+, Opera 10.10+, Chrome, IE9 <span class="endcomment">*/</span></span>
- <span class="ie">filter: <span class="filter">progid:DXImageTransform.Microsoft.gradient(startColorstr=<b g="0" i="s2aHex">#99B4B490</b>,endColorstr=<b g="0" i="s2aHex">#99B4B490</b>)</span>; <span class="comment">/* IE6–IE9 <span class="endcomment">*/</span></span></span>
- zoom: 1;
+ background-color: <b g="0" i="s2aHex" o="aCh">rgba(180, 180, 144, 0.6)</b>; <span class="comment">/* Firefox 3+, Safari 3+, Opera 10.10+, Chrome, IE9+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -117,14 +108,11 @@
<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">/* Saf3.1+, Chrome <span class="endcomment">*/</span></span>
- -moz-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* FF3.5+ <span class="endcomment">*/</span></span>
- -ms-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* IE9 <span class="endcomment">*/</span></span>
- -o-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Opera 10.5 <span class="endcomment">*/</span></span>
- transform: rotate(<b g="0">7.5</b>deg);
- <span class="ie">filter: <span class="filter">progid:DXImageTransform.Microsoft.Matrix(<span class="comment">/* IE6–IE9 <span class="endcomment">*/</span></span>
- <b g="0" i="matrix2deg" o="deg2matrix" readonly>M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104</b>, sizingMethod='auto expand')</span>;</span></span>
- zoom: 1;
+ -webkit-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Safari 3.1+, Chrome <span class="endcomment">*/</span></span>
+ -moz-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Firefox 3.5-15 <span class="endcomment">*/</span></span>
+ -ms-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* IE9+ <span class="endcomment">*/</span></span>
+ -o-transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Opera 10.5-12.00 <span class="endcomment">*/</span></span>
+ transform: rotate(<b g="0">7.5</b>deg); <span class="comment">/* Firefox 16+, Opera 12.50+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -133,13 +121,11 @@
<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">/* Saf3.1+, Chrome <span class="endcomment">*/</span></span>
- -moz-transform: scale(<b g="0">0.8</b>); <span class="comment">/* FF3.5+ <span class="endcomment">*/</span></span>
- -ms-transform: scale(<b g="0">0.8</b>); <span class="comment">/* IE9 <span class="endcomment">*/</span></span>
- -o-transform: scale(<b g="0">0.8</b>); <span class="comment">/* Opera 10.5+ <span class="endcomment">*/</span></span>
+ -webkit-transform: scale(<b g="0">0.8</b>); <span class="comment">/* Safari 3.1+, Chrome <span class="endcomment">*/</span></span>
+ -moz-transform: scale(<b g="0">0.8</b>); <span class="comment">/* Firefox 3.5+ <span class="endcomment">*/</span></span>
+ -ms-transform: scale(<b g="0">0.8</b>); <span class="comment">/* IE9+ <span class="endcomment">*/</span></span>
+ -o-transform: scale(<b g="0">0.8</b>); <span class="comment">/* Opera 10.50+ <span class="endcomment">*/</span></span>
transform: scale(<b g="0">0.8</b>);
- <span class="ie">filter: <span class="filter">progid:DXImageTransform.Microsoft.Matrix(<span class="comment">/* IE6–IE9 <span class="endcomment">*/</span></span>
- <b g="0" i="matrix2deg" o="deg2matrix" readonly>M11=0.9999025240093042, M12=-0.013962180339145272, M21=0.013962180339145272, M22=0.9999025240093042</b>,SizingMethod='auto expand')</span>;</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -148,8 +134,8 @@
<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">300</b>; <span class="comment">/* Saf4+, Chrome 12+ <span class="endcomment">*/</span></span>
- -moz-perspective: <b g="0">300</b>; <span class="comment">/* FF10+ <span class="endcomment">*/</span></span>
+ -webkit-perspective: <b g="0">300</b>; <span class="comment">/* Safari 4+, Chrome 12+ <span class="endcomment">*/</span></span>
+ -moz-perspective: <b g="0">300</b>; <span class="comment">/* Firefox 10+ <span class="endcomment">*/</span></span>
-ms-perspective: <b g="0">300</b>; <span class="comment">/* IE10+ <span class="endcomment">*/</span></span>
perspective: <b g="0">300</b>;
-webkit-transform: rotateY(<b g="1">180</b>deg); -webkit-transform-style: preserve-3d;
@@ -165,11 +151,10 @@
<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">/* Saf3.2+, Chrome <span class="endcomment">*/</span></span>
- -moz-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* FF4+ <span class="endcomment">*/</span></span>
- -ms-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* IE10 <span class="endcomment">*/</span></span>
- -o-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Opera 10.5+ <span class="endcomment">*/</span></span>
- transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>;
+ -webkit-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Safari 3.2+, Chrome <span class="endcomment">*/</span></span>
+ -moz-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Firefox 4-15 <span class="endcomment">*/</span></span>
+ -o-transition: <b g="0">all</b> <b g="1">0.3s</b> <b g="2">ease-out</b>; <span class="comment">/* Opera 10.5–12.00 <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">/* Firefox 16+, Opera 12.50+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -180,7 +165,7 @@
<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">/* FF3.5+, Opera 9+, Saf1+, Chrome, IE10 <span class="endcomment">*/</span></span>
+ 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">/* Firefox 3.5+, Opera 9+, Safari 1+, Chrome, IE10 <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -190,8 +175,7 @@
<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">/* Chrome 4+, FF2+, Saf3.1+, Opera 9+, IE9, iOS 3.2+, Android 2.1+ <span class="endcomment">*/</span></span>
- filter: alpha(opacity=<b g="0" i="fraction" o="percent">90</b>); <span class="comment">/* IE6-IE8 <span class="endcomment">*/</span></span>
+ opacity: <b g="0">0.9</b>; <span class="comment">/* Chrome 4+, Firefox 2+, Safari 3.1+, Opera 9+, IE9+, iOS 3.2+, Android 2.1+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -202,9 +186,9 @@
<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">/* <=iOS4, <= Android 2.3 <span class="endcomment">*/</span></span>
- -moz-box-sizing: <b g="0">border-box</b>; <span class="comment">/* FF1+ <span class="endcomment">*/</span></span>
- box-sizing: <b g="0">border-box</b>; <span class="comment">/* Chrome, IE8, Opera, Safari 5.1<span class="endcomment">*/</span></span>
+ -webkit-box-sizing: <b g="0">border-box</b>; <span class="comment">/* &lt;=iOS4, &lt;= Android 2.3 <span class="endcomment">*/</span></span>
+ -moz-box-sizing: <b g="0">border-box</b>; <span class="comment">/* Firefox 1+ <span class="endcomment">*/</span></span>
+ box-sizing: <b g="0">border-box</b>; <span class="comment">/* Chrome, IE8+, Opera, Safari 5.1<span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -214,8 +198,8 @@
<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">/* Saf3-4 <span class="endcomment">*/</span></span>
- background-size: <b g="0">100% 100%</b>; <span class="comment">/* Opera, IE9, Saf5, Chrome, FF4+ <span class="endcomment">*/</span></span>
+ -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">/* Opera, IE9+, Safari 5, Chrome, Firefox 4+ <span class="endcomment">*/</span></span>
}</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
</div>
@@ -224,8 +208,8 @@
<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">/* Saf3, Chrome<span class="endcomment">*/</span></span>
- -moz-column-count: <b g="0">2</b>; -moz-column-gap: <b g="1">15px</b>; <span class="comment">/* FF3.5+ <span class="endcomment">*/</span></span>
+ -webkit-column-count: <b g="0">2</b>; -webkit-column-gap: <b g="1">15px</b>; <span class="comment">/* Safari 3, Chrome<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>
@@ -235,10 +219,10 @@
<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&#58;hover {
- -webkit-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Saf5, Chrome <span class="endcomment">*/</span></span>
- -moz-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* FF5+ <span class="endcomment">*/</span></span>
- -ms-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* IE10 <span class="endcomment">*/</span></span>
+ -webkit-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Safari 5, Chrome <span class="endcomment">*/</span></span>
+ -moz-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Firefox 5-15 <span class="endcomment">*/</span></span>
-o-animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Opera 12+ <span class="endcomment">*/</span></span>
+ animation: <b g="0">myanim</b> <b g="8">5s</b> infinite; <span class="comment">/* Safari 5, Chrome, Firefox 16+ <span class="endcomment">*/</span></span>
}
@-webkit-keyframes <b g="0">myanim</b> {
@@ -251,12 +235,12 @@
<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>; }
}
-@-ms-keyframes <b g="0">myanim</b> {
+@-o-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>; }
}
-@-o-keyframes <b g="0">myanim</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>; }
@@ -302,9 +286,8 @@
<pre class="rule">
@font-face {
font-family: '<b g="1">WebFont</b>';
- src: url('<b g="0">myfont</b>.eot?#') format('eot'), <span class="comment">/* IE6–8 <span class="endcomment">*/</span></span>
- url('<b g="0">myfont</b>.woff') format('woff'), <span class="comment">/* FF3.6+, IE9, Chrome6+, Saf5.1+<span class="endcomment">*/</span></span>
- url('<b g="0">myfont</b>.ttf') format('truetype'); <span class="comment">/* Saf3—5, Chrome4+, FF3.5, Opera 10+ <span class="endcomment">*/</span></span>
+ src: url('<b g="0">myfont</b>.woff') format('woff'), <span class="comment">/* Firefox 3.6+, IE9+, Chrome 6+, Safari 5.1+<span class="endcomment">*/</span></span>
+ url('<b g="0">myfont</b>.ttf') format('truetype'); <span class="comment">/* Safari 3—5, Chrome4+, Firefox 3.5, Opera 10+ <span class="endcomment">*/</span></span>
}
</pre>
@@ -334,14 +317,12 @@
also css3please is an open source project!. <a href="https://github.com/paulirish/css3please">report bugs or contribute!</a>
Notes:
- + Multiple IE filters must be comma delimited in a single declaration. They are not additive in separate blocks.
- + IE9 starts to suck with filter-based gradients and rounded corners. 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://www.timmywillison.com/2011/Gradients-plus-border-radius-in-IE9.html">adding a wrapper</a>.
- + The closest thing to box-shadow for IE is <a href="http://msdn.microsoft.com/en-us/library/ms532979(v=VS.85).aspx">Blur with makeShadow</a> but you need a duplicate div.
+ + IE&lt;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.
- &copy; 2010; 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>
+ &copy; 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
*/
@@ -354,7 +335,8 @@
<pre class="rule changelog">
/*
__Changelog__
-
+ 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>!)
@@ -379,12 +361,11 @@
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.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.
-
+ 2010.03.25: Fixed the gradient flipflop. Fixed positioning bug.
*/
@@ -392,10 +373,5 @@
</pre>
-<div id="toggle_style"></div>
-
-
-<script>var _gaq=[['_setAccount','UA-15142720-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'));</script>
-
</body>
</html>
View
7 javascript/analytics.js
@@ -0,0 +1,7 @@
+window._gaq = [['_setAccount', 'UA-15142720-1'], ['_trackPageview']];
+(function(d, t) {
+ var g = d.createElement(t),
+ s = d.getElementsByTagName(t)[0];
+ g.src = '//www.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g, s);
+}(document, 'script'));
View
742 javascript/build.js
742 additions, 0 deletions not shown
View
1  javascript/build.min.js
1 addition, 0 deletions not shown
View
15 javascript/cb_plugins.js
@@ -1,17 +1,10 @@
$(function(){
- var $toggle = $('#toggle_style');
+ var $html = $(document.documentElement);
/*==TOGGLE STYLING==*/
- $('#sandboxwrap .off').click().toggle(
- // Change to my styling
- function() {
- $toggle.html('<link rel="stylesheet" href="css/light.css" />');
- },
- // ...and back to original CSS3, please! styling.
- function() {
- $toggle.empty();
- }
- );
+ $('#sandboxwrap .off').click(function() {
+ $html.toggleClass('light');
+ });
});
View
1  javascript/detect-flash.js
@@ -0,0 +1 @@
+if (((navigator.plugins && typeof navigator.plugins['Shockwave Flash'] == 'object') || (window.ActiveXObject && (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')))) && location.protocol != 'file:') document.documentElement.className = 'flash';
View
3  javascript/javascript.js
@@ -559,6 +559,9 @@ $(document).ready(function () {
//create colorpicker
colorPicker("b[i='s2Hex'], b[i='lHex']", 'hex');
+ //force colorpicker to close when tabbing out of a color input field
+ $("b[i='s2Hex'] input, b[i='lHex'] input").bind("keydown", function(e) { if (e.keyCode == 9) $(this).parent("b").ColorPickerHide(); });
+
//track events via google analytics custom events
$(document).on('click', 'b, #matrixbox', function(event) {
trackEvent( $(this).closest('.rule_wrapper').attr('id') );
Please sign in to comment.
Something went wrong with that request. Please try again.