stylesheets/toolkit/_intrinsic-ratio.scss in toolkit-2.0.0.alpha.1 vs stylesheets/toolkit/_intrinsic-ratio.scss in toolkit-2.0.0.alpha.2
- old
+ new
@@ -1,10 +1,10 @@
////////////////////////
// Fluid Embeds and whatever WITH NO JAVASCIPT!
////////////////////////
@mixin intrinsic-ratio-parent($extend: null) {
- $extend: if($extend !== null, $extend, toolkit-get('intrinsic ratio extend'));
+ $extend: if($extend != null, $extend, toolkit-get('intrinsic ratio extend'));
@if $extend {
@extend %intrinsic-ratio-parent;
}
@@ -13,11 +13,11 @@
height: 0;
}
}
@mixin intrinsic-ratio-child($extend: null) {
- $extend: if($extend !== null, $extend, toolkit-get('intrinsic ratio extend'));
+ $extend: if($extend != null, $extend, toolkit-get('intrinsic ratio extend'));
@if $extend {
@extend %intrinsic-ratio-child;
}
@else {
display: block;
@@ -29,21 +29,21 @@
padding: 0;
}
}
@mixin intrinsic-ratio-ratio($ratio: null, $width: null, $direction: null) {
- $ratio: if($ration !== null, $ratio, toolkit-get('intrinsic ratio'));
- $width: if($width !== null, $width, toolkit-get('intrinsic ratio width'));
- $direction: if($direction !== null, $direction, toolkit-get('intrinsic ratio direction'));
+ $ratio: if($ration != null, $ratio, toolkit-get('intrinsic ratio'));
+ $width: if($width != null, $width, toolkit-get('intrinsic ratio width'));
+ $direction: if($direction != null, $direction, toolkit-get('intrinsic ratio direction'));
padding-#{$direction}: (1 / $ratio) * $width;
width: $width;
}
@mixin intrinsic-ratio($ratio: null, $width: null, $elements: null, $direction: null, $extend: null) {
- $ratio: if($ration !== null, $ratio, toolkit-get('intrinsic ratio'));
- $width: if($width !== null, $width, toolkit-get('intrinsic ratio width'));
- $direction: if($direction !== null, $direction, toolkit-get('intrinsic ratio direction'));
- $extend: if($extend !== null, $extend, toolkit-get('intrinsic ratio extend'));
+ $ratio: if($ration != null, $ratio, toolkit-get('intrinsic ratio'));
+ $width: if($width != null, $width, toolkit-get('intrinsic ratio width'));
+ $direction: if($direction != null, $direction, toolkit-get('intrinsic ratio direction'));
+ $extend: if($extend != null, $extend, toolkit-get('intrinsic ratio extend'));
@include intrinsic-ratio-parent($extend);
@include intrinsic-ratio-ratio($ratio, $width, $direction);
@each $element in $elements {
\ No newline at end of file