Merge branch 'master' of github.com:cloudhead/less.js

This commit is contained in:
Alexis Sellier
2011-12-10 14:00:23 +01:00
3 changed files with 8 additions and 1 deletions

View File

@@ -630,7 +630,7 @@ less.Parser = function Parser(env) {
var value, c = input.charCodeAt(i);
if ((c > 57 || c < 45) || c === 47) return;
if (value = $(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/)) {
if (value = $(/^(-?\d*\.?\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/)) {
return new(tree.Dimension)(value[1], value[2]);
}
},

View File

@@ -26,6 +26,9 @@
.shorthands {
padding: -1px 2px 0 -4px;
}
.rem-dimensions {
font-size: 5.5rem;
}
.colors {
color: #123;
border-color: #334455;

View File

@@ -36,6 +36,10 @@
padding: -1px 2px 0 -4px; //
}
.rem-dimensions {
font-size: 20rem / 5 + 1.5rem; // 5.5rem
}
.colors {
color: #123; // #112233
border-color: #234 + #111111; // #334455