flint-gs 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7477d159a0eb1dd7630cae0e8e482d430b9f3e1
4
- data.tar.gz: d4fad9cf670670049e472814c89134314f6ef5a0
3
+ metadata.gz: 210a1129993b21ac6ed638a82454840012f49440
4
+ data.tar.gz: 716791663896ff7ef1c7fc760d3b6666a7c40cf6
5
5
  SHA512:
6
- metadata.gz: ec96a252bf04fadfe9f5daadc281d22e9f17c1eaf24dd54da1a91d9d764576e5ff5d40812e177a4cd8b2d93f71150eea853f3a4ae3fc9ac2e7cf71ddfb2ed1da
7
- data.tar.gz: 5897b787476e46dda94601c8392bd2b2d15d3d3fc7b82ab9561596cb7972b2aa66ca5fefc005f747ab825118b70442b5663083ef90f113ba242ec7e284e60670
6
+ metadata.gz: 3cebfb52c50e200c7f2a38043c2ecd9d74a770b46a62a6d6742260bfcdf4e4e13e0a134e819d0fd29e99e326a56d3ae51d1916fea8e1b90c09bca8705e89e737
7
+ data.tar.gz: f51f260e8361be04529c55d4fbda139793d51743f6b026d4b6628207fd26e22524182e0dd1056aca2d3b9cb61e8637a83a6ba39e2f06b9ccd3f551c63f1ac940
data/lib/flint.rb CHANGED
@@ -5,7 +5,7 @@ Compass::Frameworks.register('flint', :path => extension_path)
5
5
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
6
6
  # Date is in the form of YYYY-MM-DD
7
7
  module Flint
8
- VERSION = "1.3.4"
8
+ VERSION = "1.3.5"
9
9
  DATE = "2014-05-20"
10
10
  end
11
11
 
@@ -734,24 +734,26 @@
734
734
  // for key-x key-y key-z
735
735
  } @else if length($key) > 1 and nth($key, 1) == "for" {
736
736
  @for $i from 1 through length($key) {
737
- @if exists($flint, nth($key, $i)) {
737
+ $calcKey: nth($key, $i);
738
+
739
+ @if exists($flint, $calcKey) {
738
740
  @if get-value(settings, grid) == "fluid" {
739
- @if is-highest-breakpoint(nth($key, $i)) {
740
- @media only screen and ( min-width: (calc-breakpoint(next, nth($key, $i), $i) + 1) ) {
741
+ @if is-highest-breakpoint($calcKey) {
742
+ @media only screen and ( min-width: (calc-breakpoint(next, $calcKey, get-index($calcKey)) + 1) ) {
741
743
  @content;
742
744
  }
743
745
  } @else {
744
- @media only screen and ( min-width: (calc-breakpoint(next, nth($key, $i), $i) + if(is-lowest-breakpoint(nth($key, $i)), 0, 1)) ) and ( max-width: calc-breakpoint(alias, nth($key, $i), $i) ) {
746
+ @media only screen and ( min-width: (calc-breakpoint(next, $calcKey, get-index($calcKey)) + if(is-lowest-breakpoint($calcKey), 0, 1)) ) and ( max-width: calc-breakpoint(alias, $calcKey, get-index($calcKey)) ) {
745
747
  @content;
746
748
  }
747
749
  }
748
750
  } @else if get-value(settings, grid) == "fixed" {
749
- @if is-highest-breakpoint(nth($key, $i)) {
750
- @media only screen and ( min-width: calc-breakpoint(alias, nth($key, $i), $i) ) {
751
+ @if is-highest-breakpoint($calcKey) {
752
+ @media only screen and ( min-width: calc-breakpoint(alias, $calcKey, get-index($calcKey)) ) {
751
753
  @content;
752
754
  }
753
755
  } @else {
754
- @media only screen and ( min-width: calc-breakpoint(alias, nth($key, $i), $i) ) and ( max-width: (calc-breakpoint(prev, nth($key, $i), $i) - 1) ) {
756
+ @media only screen and ( min-width: calc-breakpoint(alias, $calcKey, get-index($calcKey)) ) and ( max-width: (calc-breakpoint(prev, $calcKey, get-index($calcKey)) - 1) ) {
755
757
  @content;
756
758
  }
757
759
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse