[Compass Core] Unquote any quoted strings that are passed to the css3 module mixins.

This commit is contained in:
Chris Eppstein 2010-05-03 18:51:19 -07:00
parent e2994eaf8f
commit 36f4aa2911
7 changed files with 12 additions and 3 deletions

View File

@ -19,6 +19,7 @@ $default-background-clip: padding-box !default;
@mixin background-clip($clip: $default-background-clip) { @mixin background-clip($clip: $default-background-clip) {
// webkit and mozilla use the deprecated short [border | padding] // webkit and mozilla use the deprecated short [border | padding]
$clip: unquote($clip);
$deprecated: $clip; $deprecated: $clip;
@if $clip == padding-box { $deprecated: padding; } @if $clip == padding-box { $deprecated: padding; }
@if $clip == border-box { $deprecated: border; } @if $clip == border-box { $deprecated: border; }

View File

@ -15,6 +15,7 @@ $default-background-origin: content-box !default;
@mixin background-origin($origin: $default-background-origin) { @mixin background-origin($origin: $default-background-origin) {
$origin: unquote($origin);
// webkit and mozilla use the deprecated short [border | padding | content] // webkit and mozilla use the deprecated short [border | padding | content]
$deprecated: $origin; $deprecated: $origin;
@if $origin == padding-box { $deprecated: padding; } @if $origin == padding-box { $deprecated: padding; }

View File

@ -9,5 +9,6 @@ $default-background-size: 100% auto !default;
// * percentages are relative to the background-origin (default = padding-box) // * percentages are relative to the background-origin (default = padding-box)
// * mixin defaults to: `$default-background-size` // * mixin defaults to: `$default-background-size`
@mixin background-size($size: $default-background-size) { @mixin background-size($size: $default-background-size) {
$size: unquote($size);
@include experimental(background-size, $size, -moz, -webkit, -o, not -ms, not -khtml); @include experimental(background-size, $size, -moz, -webkit, -o, not -ms, not -khtml);
} }

View File

@ -6,6 +6,7 @@
// [ content-box | border-box ] // [ content-box | border-box ]
@mixin box-sizing($bs) { @mixin box-sizing($bs) {
$bs: unquote($bs);
@include experimental(box-sizing, $bs, @include experimental(box-sizing, $bs,
-moz, -webkit, not -o, -ms, not -khtml, official -moz, -webkit, not -o, -ms, not -khtml, official
); );

View File

@ -14,6 +14,7 @@ $default-box-orient: horizontal !default;
@mixin box-orient( @mixin box-orient(
$orientation: $default-box-orient $orientation: $default-box-orient
) { ) {
$orientation : unquote($orientation);
@include experimental(box-orient, $orientation, @include experimental(box-orient, $orientation,
-moz, -webkit, not -o, not -ms, not -khtml, official -moz, -webkit, not -o, not -ms, not -khtml, official
); );
@ -26,6 +27,7 @@ $default-box-align: stretch !default;
@mixin box-align( @mixin box-align(
$alignment: $default-box-align $alignment: $default-box-align
) { ) {
$alignment : unquote($alignment);
@include experimental(box-align, $alignment, @include experimental(box-align, $alignment,
-moz, -webkit, not -o, not -ms, not -khtml, official -moz, -webkit, not -o, not -ms, not -khtml, official
); );
@ -77,6 +79,7 @@ $default-box-direction: normal !default;
@mixin box-direction( @mixin box-direction(
$direction: $default-box-direction $direction: $default-box-direction
) { ) {
$direction: unquote($direction);
@include experimental(box-direction, $direction, @include experimental(box-direction, $direction,
-moz, -webkit, not -o, not -ms, not -khtml, official -moz, -webkit, not -o, not -ms, not -khtml, official
); );
@ -89,6 +92,7 @@ $default-box-lines: single !default;
@mixin box-lines( @mixin box-lines(
$lines: $default-box-lines $lines: $default-box-lines
) { ) {
$lines: unquote($lines);
@include experimental(box-lines, $lines, @include experimental(box-lines, $lines,
-moz, -webkit, not -o, not -ms, not -khtml, official -moz, -webkit, not -o, not -ms, not -khtml, official
); );
@ -101,6 +105,7 @@ $default-box-pack: start !default;
@mixin box-pack( @mixin box-pack(
$pack: $default-box-pack $pack: $default-box-pack
) { ) {
$pack: unquote($pack);
@include experimental(box-pack, $pack, @include experimental(box-pack, $pack,
-moz, -webkit, not -o, not -ms, not -khtml, official -moz, -webkit, not -o, not -ms, not -khtml, official
); );

View File

@ -31,7 +31,7 @@
// Specify the style of the rule between columns e.g. `dotted`. // Specify the style of the rule between columns e.g. `dotted`.
// This works like border-style. // This works like border-style.
@mixin column-rule-style($s) { @mixin column-rule-style($s) {
@include experimental(rule-style, $s, @include experimental(rule-style, unquote($s),
-moz, -webkit, -o, not -ms, not -khtml, official -moz, -webkit, -o, not -ms, not -khtml, official
); );
} }
@ -40,7 +40,7 @@
// This works like border-color. // This works like border-color.
@mixin column-rule-color($c) { @mixin column-rule-color($c) {
@include experimental(rule-color, $s, @include experimental(rule-color, unquote($s),
-moz, -webkit, -o, not -ms, not -khtml, official -moz, -webkit, -o, not -ms, not -khtml, official
); );
} }

View File

@ -29,7 +29,7 @@ $default-transition-delay: false !default;
// * also accepts "all" or "none" // * also accepts "all" or "none"
@mixin transition-property($properties: $default-transition-property) { @mixin transition-property($properties: $default-transition-property) {
@include experimental(transition-property, $properties, @include experimental(transition-property, unquote($properties),
-moz, -webkit, -o, not -ms, not -khtml, official -moz, -webkit, -o, not -ms, not -khtml, official
); );
} }