Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #39 from ai/trailing

Remove trailing spaces
  • Loading branch information...
commit 8dcf6f64ecbc619cab485e004990bb00f6fc9595 2 parents 92a1875 + b72f8a5
@tj tj authored
View
52 History.md
@@ -1,16 +1,16 @@
-0.13.2 / 2013-02-28
+0.13.2 / 2013-02-28
==================
* add ./rework.js stand-alone build
* refactor positions example with visitor
-0.13.1 / 2013-02-26
+0.13.1 / 2013-02-26
==================
* fix visitor with @charset, @import etc
-0.13.0 / 2013-02-26
+0.13.0 / 2013-02-26
==================
* refactor url() with visitor
@@ -21,57 +21,57 @@
* refactor colors plugin with visitor
* add visit.declarations() helper
-0.12.2 / 2013-02-12
+0.12.2 / 2013-02-12
==================
* add prefix visiting for @media
* add column props (fixes #26)
-0.12.1 / 2013-02-08
+0.12.1 / 2013-02-08
==================
* fix mixins plugin traversal
-0.12.0 / 2013-01-16
+0.12.0 / 2013-01-16
==================
* add placeholder selector support
-0.11.0 / 2013-01-16
+0.11.0 / 2013-01-16
==================
* fix extend nesting. Closes #22
* fix hyphenated property references. Closes #20
-0.10.2 / 2012-12-14
+0.10.2 / 2012-12-14
==================
* fix .svg at2x. Closes #17
* add gradients to rework(1)
-0.10.1 / 2012-12-11
+0.10.1 / 2012-12-11
==================
* fix named color support
-0.10.0 2012-12-10
+0.10.0 2012-12-10
==================
* add .mixin -> .mixins alias
* add debug to component.json
* add `extends` support
-0.9.2 / 2012-12-05
+0.9.2 / 2012-12-05
==================
* revert broken @2x media query implementation
-0.9.1 / 2012-12-04
+0.9.1 / 2012-12-04
==================
* fix rgba() with arity > 2
-0.9.0 / 2012-11-30
+0.9.0 / 2012-11-30
==================
* add mixin support
@@ -79,73 +79,73 @@
* add rgba(color, a) plugin
* add gradient support. Closes #12
-0.8.0 / 2012-11-21
+0.8.0 / 2012-11-21
==================
* add media macros. Closes #10
* add background-size: contain to at2x
-0.7.0 / 2012-10-10
+0.7.0 / 2012-10-10
==================
* add `--ease` to rework(1)
* add `.ease()` plugin for additional easing functions
-0.6.1 / 2012-10-06
+0.6.1 / 2012-10-06
==================
* add --vars to rework(1)
* add web service link
-0.6.0 / 2012-10-06
+0.6.0 / 2012-10-06
==================
* add `.prefix(props)` array support. Closes #1
* add variables plugin. Closes #5
* increase perf ~40% faster for `rework(1)` pass
-0.5.1 / 2012-09-18
+0.5.1 / 2012-09-18
==================
* add visiting of `@media` nodes for `url()`
* add `/g` flag to `url()`
-0.5.0 / 2012-09-17
+0.5.0 / 2012-09-17
==================
* add `.toString({ compress: true })` support
-0.4.1 / 2012-09-17
+0.4.1 / 2012-09-17
==================
* update css dep
-0.4.0 / 2012-09-17
+0.4.0 / 2012-09-17
==================
* add `url()` mapping plugin
-0.3.0 / 2012-09-06
+0.3.0 / 2012-09-06
==================
* add `rework(1)`. Closes #4
-0.2.0 / 2012-09-04
+0.2.0 / 2012-09-04
==================
* add vendor support to at2x [Simen Brekken]
-0.1.2 / 2012-09-01
+0.1.2 / 2012-09-01
==================
* add component "path" dep
-0.1.1 / 2012-09-01
+0.1.1 / 2012-09-01
==================
* add component support
-0.1.0 / 2012-09-01
+0.1.0 / 2012-09-01
==================
* add .prefixSelectors(str) plugin
View
2  examples/ellipsis.js
@@ -14,7 +14,7 @@ function ellipsis(type) {
'white-space': 'nowrap',
'overflow': 'hidden',
'text-overflow': 'ellipsis'
- }
+ }
}
return type;
View
2  examples/extend.js
@@ -5,5 +5,5 @@ var rework = require('..')
var css = rework(read('examples/extend.css', 'utf8'))
.use(rework.extend())
.toString();
-
+
console.log(css);
View
16 lib/plugins/keyframes.js
@@ -1,39 +1,39 @@
/**
* Prefix keyframes.
- *
+ *
* @keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
* yields:
- *
+ *
* @keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
* @-webkit-keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
*/
module.exports = function(vendors) {
View
8 lib/plugins/opacity.js
@@ -1,19 +1,19 @@
/**
* Add IE opacity support.
- *
+ *
* ul {
* opacity: 1 !important;
* }
- *
+ *
* yields:
- *
+ *
* ul {
* opacity: 1 !important;
* -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100) !important;
* filter: alpha(opacity=100) !important
* }
- *
+ *
*/
module.exports = function() {
View
8 lib/plugins/prefix-selectors.js
@@ -1,17 +1,17 @@
/**
* Prefix selectors with `str`.
- *
+ *
* button {
* color: red;
* }
- *
+ *
* yields:
- *
+ *
* #dialog button {
* color: red;
* }
- *
+ *
*/
module.exports = function(str) {
View
44 rework.js
@@ -437,14 +437,14 @@ module.exports = function(css){
if (!open()) return;
comments();
-
+
// declarations
var decl;
while (decl = declaration()) {
decls.push(decl);
comments();
}
-
+
if (!close()) return;
return decls;
}
@@ -452,7 +452,7 @@ module.exports = function(css){
/**
* Parse at rule.
*/
-
+
function atrule() {
return keyframes()
|| media()
@@ -463,14 +463,14 @@ module.exports = function(css){
/**
* Parse rule.
*/
-
+
function rule() {
var sel = selector();
if (!sel) return;
comments();
return { selectors: sel, declarations: declarations() };
}
-
+
return stylesheet();
};
@@ -1088,7 +1088,7 @@ exports.basename = function(path){
};
exports.dirname = function(path){
- return path.split('/').slice(0, -1).join('/') || '.';
+ return path.split('/').slice(0, -1).join('/') || '.';
};
exports.extname = function(path){
@@ -1724,39 +1724,39 @@ require.register("rework/lib/plugins/keyframes.js", function(exports, require, m
/**
* Prefix keyframes.
- *
+ *
* @keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
* yields:
- *
+ *
* @keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
* @-webkit-keyframes animation {
* from {
* opacity: 0;
* }
- *
+ *
* to {
* opacity: 1;
* }
* }
- *
+ *
*/
module.exports = function(vendors) {
@@ -1873,19 +1873,19 @@ require.register("rework/lib/plugins/opacity.js", function(exports, require, mod
/**
* Add IE opacity support.
- *
+ *
* ul {
* opacity: 1 !important;
* }
- *
+ *
* yields:
- *
+ *
* ul {
* opacity: 1 !important;
* -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100) !important;
* filter: alpha(opacity=100) !important
* }
- *
+ *
*/
module.exports = function() {
@@ -1923,17 +1923,17 @@ require.register("rework/lib/plugins/prefix-selectors.js", function(exports, req
/**
* Prefix selectors with `str`.
- *
+ *
* button {
* color: red;
* }
- *
+ *
* yields:
- *
+ *
* #dialog button {
* color: red;
* }
- *
+ *
*/
module.exports = function(str) {
Please sign in to comment.
Something went wrong with that request. Please try again.