* Added stripping space before !important keyword.
+0.2.1 / 2011-03-19
+==================
+
+ * Added stripping space before !important keyword.
+ * Updated repository location and author information in package.json.
+
0.2.0 / 2011-03-02
==================
replace(/;\s*;+/g, ';') // whitespace between semicolons & multiple semicolons
replace(/\n/g, '') // line breaks
replace(/\s+/g, ' ') // multiple whitespace
+ replace(/ !important/g, '!important') // whitespace before !important
replace(/[ ]?,[ ]?/g, ',') // space with a comma
replace(/progid:[^(]+\(([^\)]+)/, function(match, contents) { // restore spaces inside IE filters (IE 7 issue)
return match.replace(/,/g, ', ');
{
"name": "clean-css",
- "author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/JakubPawlowicz)",
+ "author": "Jakub Pawlowicz <jakub@goalsmashers.com> (http://twitter.com/GoalSmashers)",
"description": "A well-tested CSS minifier",
"keywords": ["css", "minifier"],
- "homepage": "http://github.com/jakubpawlowicz/clean-css",
+ "homepage": "http://github.com/GoalSmashers/clean-css",
"repository": {
"type" : "git",
- "url" : "http://github.com/jakubpawlowicz/clean-css.git"
+ "url" : "http://github.com/GoalSmashers/clean-css.git"
},
- "version": "0.2.0",
+ "version": "0.2.1",
"main": "index.js",
"bin": {
"cleancss": "./bin/cleancss"
article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block}
body{line-height:1.5;background:#fff}
table{border-collapse:separate;border-spacing:0}
-caption,th,td{text-align:left;font-weight:400;float:none !important}
+caption,th,td{text-align:left;font-weight:400;float:none!important}
table,th,td{vertical-align:middle}
blockquote:before,blockquote:after,q:before,q:after{content:''}
blockquote,q{quotes:"" ""}
h6{font-size:1em;font-weight:700}
h1 img,h2 img,h3 img,h4 img,h5 img,h6 img{margin:0}
p{margin:0 0 1.5em}
-.left{float:left !important}
+.left{float:left!important}
p .left{margin:1.5em 1.5em 1.5em 0;padding:0}
-.right{float:right !important}
+.right{float:right!important}
p .right{margin:1.5em 0 1.5em 1.5em;padding:0}
a:focus,a:hover{color:#09f}
a{color:#06c;text-decoration:underline}
"@charset 'utf-8';div :before { display: block }@charset 'utf-8';a { color: #f10 }",
"@charset 'utf-8';div :before{display:block}a{color:#f10}"
]
+ }),
+ 'important': cssContext({
+ 'space before': [
+ "body{background-color:#fff !important}",
+ "body{background-color:#fff!important}"
+ ]
})
}).export(module);
\ No newline at end of file