toolkit 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ $intrinsic-ratio: 16/9 !default;
5
5
  $intrinsic-ratio-width: 100% !default;
6
6
  $intrinsic-ratio-elements: '> *' !default;
7
7
  $intrinsic-ratio-extend: true !default;
8
+ $intrinsic-ratio-direction: top !default;
8
9
 
9
10
  @mixin intrinsic-ratio-parent {
10
11
  position: relative;
@@ -21,14 +22,14 @@ $intrinsic-ratio-extend: true !default;
21
22
  padding: 0;
22
23
  }
23
24
 
24
- @mixin intrinsic-ratio($ratio: $intrinsic-ratio, $width: $intrinsic-ratio-width, $elements: $intrinsic-ratio-elements, $extend: $intrinsic-ratio-extend) {
25
+ @mixin intrinsic-ratio($ratio: $intrinsic-ratio, $width: $intrinsic-ratio-width, $elements: $intrinsic-ratio-elements, $extend: $intrinsic-ratio-extend, $direction: $intrinsic-ratio-direction) {
25
26
  @if not $extend {
26
27
  @include intrinsic-ratio-parent;
27
28
  }
28
29
  @else {
29
30
  @extend %intrinsic-ratio-parent;
30
31
  }
31
- padding-top: (1 / $ratio) * $width;
32
+ padding-#{$direction}: (1 / $ratio) * $width;
32
33
  width: $width;
33
34
  @each $element in $elements {
34
35
  #{$element} {
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Richard
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-26 00:00:00 -05:00
19
+ date: 2011-03-08 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency