breakpoint 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/breakpoint.rb CHANGED
@@ -3,8 +3,8 @@ require 'compass'
3
3
  Compass::Frameworks.register("breakpoint", :path => "#{File.dirname(__FILE__)}/..")
4
4
 
5
5
  module Breakpoint
6
- VERSION = "2.0.1"
7
- DATE = "2012-04-05"
6
+ VERSION = "2.0.2"
7
+ DATE = "2012-04-08"
8
8
  end
9
9
 
10
10
  module Sass::Script::Functions
@@ -35,7 +35,7 @@ $breakpoint-legacy-syntax: false !default;
35
35
  // Breakpoint Mixin
36
36
  //////////////////////////////
37
37
 
38
- @mixin breakpoint($query) {
38
+ @mixin breakpoint($query, $no-query: false) {
39
39
  // Internal Variables
40
40
  $query-string: '';
41
41
 
@@ -91,9 +91,13 @@ $breakpoint-legacy-syntax: false !default;
91
91
  }
92
92
  }
93
93
 
94
+ // Allow for an as-needed override or usage of no query fallback.
95
+ @if $no-query != false {
96
+ $query-fallback: $no-query;
97
+ }
94
98
 
95
- // Print Out Query String
96
99
 
100
+ // Print Out Query String
97
101
  @if not $breakpoint-no-queries {
98
102
  @media #{$query-string} {
99
103
  @content;
@@ -7,7 +7,7 @@ $breakpoints: () !default;
7
7
  // Respond-to API Mixin
8
8
  ////////////////////////
9
9
 
10
- @mixin respond-to($context) {
10
+ @mixin respond-to($context, $no-query: false) {
11
11
  @if type-of($breakpoints) != 'list' {
12
12
  // Just in case someone writes gibberish to the $breakpoints variable.
13
13
  @warn "Your breakpoints aren't a list! See https://github.com/snugug/respond-to#api if you'd like a reminder on how to use Respond-to";
@@ -33,7 +33,7 @@ $breakpoints: () !default;
33
33
  }
34
34
  }
35
35
 
36
- @include breakpoint($mq) {
36
+ @include breakpoint($mq, $no-query) {
37
37
  @content;
38
38
  }
39
39
  }
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
  - Mason Wendell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-05 00:00:00 -04:00
18
+ date: 2012-04-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency