Comparing version 0.27.1 to 0.27.2
@@ -1,2 +0,1 @@ | ||
/*! | ||
@@ -123,5 +122,6 @@ * Stylus - css to stylus conversion | ||
var prop = node.style[i] | ||
, val = node.style[prop]; | ||
, val = node.style[prop] | ||
, importance = node.style['_importants'][prop] ? ' !important' : ''; | ||
if (prop) { | ||
buf += this.indent + prop + ': ' + val + '\n'; | ||
buf += this.indent + prop + ': ' + val + importance + '\n'; | ||
} | ||
@@ -128,0 +128,0 @@ } |
@@ -70,2 +70,3 @@ | ||
this.str = str | ||
.replace(/\s+$/, '\n') | ||
.replace(/\r\n?/g, '\n') | ||
@@ -434,2 +435,3 @@ .replace(/\\ *\n/g, ' ') | ||
tok.space = captures[2]; | ||
this.isURL = false; | ||
return tok; | ||
@@ -436,0 +438,0 @@ } |
@@ -425,3 +425,4 @@ | ||
, ';' | ||
, '}'].indexOf(this.lookahead(i).type)) | ||
, '}' | ||
, 'eos'].indexOf(this.lookahead(i).type)) | ||
++i; | ||
@@ -428,0 +429,0 @@ |
@@ -27,3 +27,3 @@ | ||
exports.version = '0.27.1'; | ||
exports.version = '0.27.2'; | ||
@@ -30,0 +30,0 @@ /** |
@@ -8,20 +8,14 @@ | ||
// units found in http://www.w3.org/TR/css3-values | ||
module.exports = [ | ||
'em' | ||
, 'ex' | ||
, 'px' | ||
, 'mm' | ||
, 'cm' | ||
, 'in' | ||
, 'pt' | ||
, 'pc' | ||
, 'deg' | ||
, 'rad' | ||
, 'grad' | ||
, 'ms' | ||
, 's' | ||
, 'Hz' | ||
, 'kHz' | ||
, 'rem' | ||
, '%' | ||
]; | ||
'em', 'ex', 'ch', 'rem' // relative lengths | ||
, 'vw', 'vh', 'vmin' // relative viewport-percentage lengths | ||
, 'cm', 'mm', 'in', 'pt', 'pc', 'px' // absolute lengths | ||
, 'deg', 'grad', 'rad', 'turn' // angles | ||
, 's', 'ms' // times | ||
, 'Hz', 'kHz' // frequencies | ||
, 'dpi', 'dpcm', 'dppx' // resolutions | ||
, '%' // percentage type | ||
, 'fr' // grid-layout (http://www.w3.org/TR/css3-grid-layout/) | ||
]; |
@@ -370,3 +370,3 @@ /*! | ||
if (this.isURL) args = '"' + args + '"'; | ||
delete this.isURL; | ||
this.isURL = false; | ||
return call.name + '(' + args + ')'; | ||
@@ -373,0 +373,0 @@ }; |
{ "name": "stylus" | ||
, "description": "Robust, expressive, and feature-rich CSS superset" | ||
, "version": "0.27.1" | ||
, "version": "0.27.2" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"] |
220751
8625