respond-to 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/stylesheets/_respond-to.scss +17 -21
  2. metadata +2 -2
@@ -6,35 +6,31 @@
6
6
  ////////////////////////
7
7
  // Default the Breakpoints variable
8
8
  ////////////////////////
9
- $breakpoints: false !default;
9
+ $breakpoints: () !default;
10
10
 
11
11
  ////////////////////////
12
12
  // Respond-to API Mixin
13
13
  ////////////////////////
14
14
  @mixin respond-to($context, $media: $breakpoint-default-media) {
15
- @if $breakpoints != false {
16
- @each $bkpt in $breakpoints {
17
- @if $context == nth($bkpt, 1) {
18
- @debug $bkpt;
19
- $length: length($bkpt);
20
- $mq: false !default;
21
-
22
- @for $i from 2 through $length {
23
- // If it's the first item, override $mq
24
- @if $i == 2 {
25
- $mq: nth($bkpt, $i);
26
- }
27
- // Else, join $mq
28
- @else {
29
- $mq: join($mq, nth($bkpt, $i));
30
- }
15
+ @each $bkpt in $breakpoints {
16
+ @if $context == nth($bkpt, 1) {
17
+ $length: length($bkpt);
18
+ $mq: false !default;
19
+
20
+ @for $i from 2 through $length {
21
+ // If it's the first item, override $mq
22
+ @if $i == 2 {
23
+ $mq: nth($bkpt, $i);
31
24
  }
32
- @debug $mq;
33
-
34
- @include breakpoint($mq, $media) {
35
- @content;
25
+ // Else, join $mq
26
+ @else {
27
+ $mq: join($mq, nth($bkpt, $i));
36
28
  }
37
29
  }
30
+
31
+ @include breakpoint($mq, $media) {
32
+ @content;
33
+ }
38
34
  }
39
35
  }
40
36
  }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 1
9
- version: 2.0.1
8
+ - 2
9
+ version: 2.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Richard