renamed default variable in has-layout mixin to more appropriate name $approach

This commit is contained in:
B Mathis 2010-11-15 16:28:53 -06:00
parent 0e7bef6dbf
commit e6c28d81f7

View File

@ -8,14 +8,14 @@ $default-has-layout-approach: zoom !default;
// This mixin causes an element matching the selector // This mixin causes an element matching the selector
// to gain the "hasLayout" property in internet explorer. // to gain the "hasLayout" property in internet explorer.
// More information on [hasLayout](http://reference.sitepoint.com/css/haslayout). // More information on [hasLayout](http://reference.sitepoint.com/css/haslayout).
@mixin has-layout($using: $default-has-layout-approach) { @mixin has-layout($approach: $default-has-layout-approach) {
@if $legacy-support-for-ie { @if $legacy-support-for-ie {
@if $using == zoom { @if $using == zoom {
@include has-layout-zoom; @include has-layout-zoom;
} @else if $using == block { } @else if $approach == block {
@include has-layout-block; @include has-layout-block;
} @else { } @else {
@warn "Unknown has-layout approach: #{$using}"; @warn "Unknown has-layout approach: #{$approach}";
@include has-layout-zoom; @include has-layout-zoom;
} }
} }