respond-to 2.1 → 2.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 +6 -2
  2. metadata +5 -6
@@ -11,7 +11,7 @@ $breakpoints: () !default;
11
11
  ////////////////////////
12
12
  // Respond-to API Mixin
13
13
  ////////////////////////
14
- @mixin respond-to($context, $media: $breakpoint-default-media) {
14
+ @mixin respond-to($context, $media: $breakpoint-default-media, $no-query: false) {
15
15
  @if length($breakpoints) != 0 {
16
16
  @each $bkpt in $breakpoints {
17
17
  @if $context == nth($bkpt, 1) {
@@ -29,10 +29,14 @@ $breakpoints: () !default;
29
29
  }
30
30
  }
31
31
 
32
- @include breakpoint($mq, $media) {
32
+ @include breakpoint($mq, $media, $no-query) {
33
33
  @content;
34
34
  }
35
35
  }
36
36
  }
37
37
  }
38
+ @else {
39
+ @warn "You haven't created any breakpoints yet! Make some already! See https://github.com/snugug/respond-to#api if you'd like a reminder on how to use Respond-to";
40
+ @content;
41
+ }
38
42
  }
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 2
7
- - 1
8
- version: "2.1"
7
+ - 2
8
+ version: "2.2"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Sam Richard
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-07-31 00:00:00 -04:00
16
+ date: 2011-08-16 00:00:00 -04:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
@@ -25,9 +25,8 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  segments:
27
27
  - 1
28
- - 1
29
- - 1
30
- version: 1.1.1
28
+ - 2
29
+ version: "1.2"
31
30
  type: :runtime
32
31
  version_requirements: *id001
33
32
  description: Semantic Media Query Handling