breakpoint 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +6 -0
- data/lib/breakpoint.rb +2 -2
- data/stylesheets/_breakpoint.scss +9 -24
- metadata +25 -6
- checksums.yaml +0 -7
data/CHANGELOG.markdown
CHANGED
data/lib/breakpoint.rb
CHANGED
@@ -47,7 +47,10 @@ $breakpoint-legacy-syntax: false !default;
|
|
47
47
|
$query-fallback: false;
|
48
48
|
|
49
49
|
|
50
|
-
@if ($or-list
|
50
|
+
@if ($or-list == false and $breakpoint-legacy-syntax == false) {
|
51
|
+
$query-string: breakpoint-parse($query);
|
52
|
+
}
|
53
|
+
@else {
|
51
54
|
$length: length($query);
|
52
55
|
|
53
56
|
$last: nth($query, $length);
|
@@ -57,27 +60,7 @@ $breakpoint-legacy-syntax: false !default;
|
|
57
60
|
$length: $length - 1;
|
58
61
|
}
|
59
62
|
|
60
|
-
|
61
|
-
@for $i from 1 through $length {
|
62
|
-
@if $i == 1 {
|
63
|
-
$query-string: breakpoint-parse(nth($query, $i));
|
64
|
-
}
|
65
|
-
@else {
|
66
|
-
$query-string: $query-string + ', ' + breakpoint-parse(nth($query, $i));
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
@else {
|
71
63
|
@if ($breakpoint-legacy-syntax == true) {
|
72
|
-
$length: length($query);
|
73
|
-
|
74
|
-
$last: nth($query, $length);
|
75
|
-
$query-fallback: breakpoint-no-query($last);
|
76
|
-
|
77
|
-
@if ($query-fallback != false) {
|
78
|
-
$length: $length - 1;
|
79
|
-
}
|
80
|
-
|
81
64
|
$mq: ();
|
82
65
|
|
83
66
|
@for $i from 1 through $length {
|
@@ -87,7 +70,10 @@ $breakpoint-legacy-syntax: false !default;
|
|
87
70
|
$query-string: breakpoint-parse($mq);
|
88
71
|
}
|
89
72
|
@else {
|
90
|
-
$query-string:
|
73
|
+
$query-string: '';
|
74
|
+
@for $i from 1 through $length {
|
75
|
+
$query-string: $query-string + if($i == 1, '', ', ') + breakpoint-parse(nth($query, $i));
|
76
|
+
}
|
91
77
|
}
|
92
78
|
}
|
93
79
|
|
@@ -96,7 +82,6 @@ $breakpoint-legacy-syntax: false !default;
|
|
96
82
|
$query-fallback: $no-query;
|
97
83
|
}
|
98
84
|
|
99
|
-
|
100
85
|
// Print Out Query String
|
101
86
|
@if not $breakpoint-no-queries {
|
102
87
|
@media #{$query-string} {
|
@@ -104,7 +89,7 @@ $breakpoint-legacy-syntax: false !default;
|
|
104
89
|
}
|
105
90
|
}
|
106
91
|
|
107
|
-
@if $breakpoint-no-query-fallbacks != false {
|
92
|
+
@if $breakpoint-no-query-fallbacks != false or $breakpoint-no-queries == true {
|
108
93
|
|
109
94
|
$type: type-of($breakpoint-no-query-fallbacks);
|
110
95
|
$print: false;
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 2
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
version: 2.0.7
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Mason Wendell
|
@@ -10,7 +15,8 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2013-09-17 00:00:00 -04:00
|
19
|
+
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: sass
|
@@ -19,6 +25,10 @@ dependencies:
|
|
19
25
|
requirements:
|
20
26
|
- - ">="
|
21
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 2
|
31
|
+
- 0
|
22
32
|
version: 3.2.0
|
23
33
|
type: :runtime
|
24
34
|
version_requirements: *id001
|
@@ -29,6 +39,10 @@ dependencies:
|
|
29
39
|
requirements:
|
30
40
|
- - ">="
|
31
41
|
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 12
|
45
|
+
- 1
|
32
46
|
version: 0.12.1
|
33
47
|
type: :runtime
|
34
48
|
version_requirements: *id002
|
@@ -63,11 +77,10 @@ files:
|
|
63
77
|
- stylesheets/breakpoint/parsers/resolution/_resolution.scss
|
64
78
|
- stylesheets/breakpoint/parsers/single/_default.scss
|
65
79
|
- stylesheets/breakpoint/parsers/triple/_default.scss
|
80
|
+
has_rdoc: true
|
66
81
|
homepage: https://github.com/Team-Sass/breakpoint
|
67
82
|
licenses: []
|
68
83
|
|
69
|
-
metadata: {}
|
70
|
-
|
71
84
|
post_install_message:
|
72
85
|
rdoc_options: []
|
73
86
|
|
@@ -77,18 +90,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
90
|
requirements:
|
78
91
|
- - ">="
|
79
92
|
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 0
|
80
95
|
version: "0"
|
81
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
97
|
requirements:
|
83
98
|
- - ">="
|
84
99
|
- !ruby/object:Gem::Version
|
100
|
+
segments:
|
101
|
+
- 1
|
102
|
+
- 3
|
103
|
+
- 6
|
85
104
|
version: 1.3.6
|
86
105
|
requirements: []
|
87
106
|
|
88
107
|
rubyforge_project: breakpoint
|
89
|
-
rubygems_version:
|
108
|
+
rubygems_version: 1.3.6
|
90
109
|
signing_key:
|
91
|
-
specification_version:
|
110
|
+
specification_version: 3
|
92
111
|
summary: An easy to use system for writing and managing media queries.
|
93
112
|
test_files: []
|
94
113
|
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA512:
|
3
|
-
data.tar.gz: d6653febd96d44e1de95d66d92cac67e6c163dd139a8c9baf78c0a90f3d5b29df8a90123ba25db806335677d74c5aa36fbf4110c88b816a7884b6a69fa79afdc
|
4
|
-
metadata.gz: b2e3966f9fe21b32544788af58684e3ea679c225fc06f60cab503a933ef93c1960162455535fd6f2f9596eb3f4e6771fcef881dbd1002d9ae01ad083a9e0ac6d
|
5
|
-
SHA1:
|
6
|
-
data.tar.gz: 131d9c041edea9143fad2caf5e083de0efc63b20
|
7
|
-
metadata.gz: fab96b1b2f6aa2e882b264addb4dc285cd01b2e4
|