breakpoint 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.markdown +4 -7
- data/lib/breakpoint.rb +2 -2
- data/stylesheets/breakpoint/_context.scss +14 -0
- metadata +6 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: d6653febd96d44e1de95d66d92cac67e6c163dd139a8c9baf78c0a90f3d5b29df8a90123ba25db806335677d74c5aa36fbf4110c88b816a7884b6a69fa79afdc
|
4
|
+
metadata.gz: b2e3966f9fe21b32544788af58684e3ea679c225fc06f60cab503a933ef93c1960162455535fd6f2f9596eb3f4e6771fcef881dbd1002d9ae01ad083a9e0ac6d
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: 131d9c041edea9143fad2caf5e083de0efc63b20
|
7
|
+
metadata.gz: fab96b1b2f6aa2e882b264addb4dc285cd01b2e4
|
data/README.markdown
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
Breakpoint makes writing media queries in Sass super simple. Create a variable using a simplified syntax based on most commonly used media queries, then call it using the `breakpoint` mixin. Breakpoint handles all of the heavy lifting, from writing the media query itself, to handling cross-browser compatibility issues, so you can focus on what's important: making sure your website looks its best.
|
6
6
|
|
7
|
-
Breakpoint also allows you to get the [context of your media queries](https://github.com/
|
7
|
+
Breakpoint also allows you to get the [context of your media queries](https://github.com/Team-Sass/breakpoint/wiki/Breakpoint-Context) from your code, allowing you to write dynamic mixins based on their media query context.
|
8
8
|
|
9
|
-
If you'd prefer the semantic awesomeness of string names to identify your queries as opposed to variables, or want to dynamically generate media queries,
|
9
|
+
If you'd prefer the semantic awesomeness of string names to identify your queries as opposed to variables, or want to dynamically generate media queries, the [Respond-To](https://github.com/Team-Sass/breakpoint/wiki/Respond-To) syntax is now included in Breakpoint core!
|
10
10
|
|
11
|
-
**It is important to note** that due to limitations within the Sass language itself, which
|
11
|
+
**It is important to note** that due to limitations within the Sass language itself, which themselves stem from some potentially unexpected cascading from doing so, Breakpoint is unable to concat like media queries into a single media query. This means they will be spread out throughout your CSS. This is unfortunate, yes, but currently unavoidable. That being said, once [Sass Issue #241: Seperate Media/Browser Specific Markup to Separate Style Sheet](https://github.com/nex3/sass/issues/241) hits, be sure we're going to take full advantage of it.
|
12
12
|
|
13
13
|
|
14
14
|
## Full documentation is available on the [Breakpoint Wiki](https://github.com/Team-Sass/breakpoint/wiki)
|
@@ -21,10 +21,7 @@ If you'd prefer the semantic awesomeness of string names to identify your querie
|
|
21
21
|
|
22
22
|
## Contributing to Breakpoint
|
23
23
|
|
24
|
-
We love contributors! Yes we do! If you would like to contribute to Breakpoint, please follow the
|
25
|
-
|
26
|
-
* We are actively trying to stay away from Ruby functionality and am attempting to build this entirely with native Sass functionality. If you would like to add a feature that includes Ruby code, there needs to be a very very compelling case as to why.
|
27
|
-
* Each individual feature you would like to add, or bug you would like to squash, should be an individual pull request. Each pull request should be from an individual feature branch to either the latest stable or development branch. **The current *stable* branch is 2.x.x. The current *development* branch is 2.x.x**. Contributions that are not in the form of a pull request will not be considered. If your pull request does not apply cleanly we will ask you to fix that before we will look into pulling it in. We may ask you to update or make changes to the code you've submitted, please don't take this the wrong way. If a pull request smells (such as if a large amount of code is all within a single commit, or the coding standards aren't in line with core Singularity) we may ask you to rewrite your commit.
|
24
|
+
We love contributors! Yes we do! If you would like to contribute to Breakpoint, please follow the [Contributing Guidelines](https://github.com/Team-Sass/breakpoint/blob/2.x.x/CONTRIBUTING.md)
|
28
25
|
|
29
26
|
## Awesome Things Built With Breakpoint
|
30
27
|
|
data/lib/breakpoint.rb
CHANGED
@@ -4,6 +4,20 @@
|
|
4
4
|
$private-breakpoint-context-holder: ();
|
5
5
|
$private-breakpoint-context-placeholder: 0;
|
6
6
|
|
7
|
+
//////////////////////////////
|
8
|
+
// Breakpoint Has Context
|
9
|
+
// Returns whether or not you are inside a Breakpoint query
|
10
|
+
//////////////////////////////
|
11
|
+
@function breakpoint-has-context() {
|
12
|
+
@if length($private-breakpoint-context-placeholder) {
|
13
|
+
@return true;
|
14
|
+
}
|
15
|
+
@else {
|
16
|
+
@return false;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
|
7
21
|
//////////////////////////////
|
8
22
|
// Breakpoint Get Context
|
9
23
|
// $feature: Input feature to get it's current MQ context. Returns false if no context
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 2
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
version: 2.0.5
|
4
|
+
version: 2.0.6
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- Mason Wendell
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
13
|
+
date: 2012-08-01 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: sass
|
@@ -25,10 +19,6 @@ dependencies:
|
|
25
19
|
requirements:
|
26
20
|
- - ">="
|
27
21
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 3
|
30
|
-
- 2
|
31
|
-
- 0
|
32
22
|
version: 3.2.0
|
33
23
|
type: :runtime
|
34
24
|
version_requirements: *id001
|
@@ -39,10 +29,6 @@ dependencies:
|
|
39
29
|
requirements:
|
40
30
|
- - ">="
|
41
31
|
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
- 12
|
45
|
-
- 1
|
46
32
|
version: 0.12.1
|
47
33
|
type: :runtime
|
48
34
|
version_requirements: *id002
|
@@ -77,10 +63,11 @@ files:
|
|
77
63
|
- stylesheets/breakpoint/parsers/resolution/_resolution.scss
|
78
64
|
- stylesheets/breakpoint/parsers/single/_default.scss
|
79
65
|
- stylesheets/breakpoint/parsers/triple/_default.scss
|
80
|
-
has_rdoc: true
|
81
66
|
homepage: https://github.com/Team-Sass/breakpoint
|
82
67
|
licenses: []
|
83
68
|
|
69
|
+
metadata: {}
|
70
|
+
|
84
71
|
post_install_message:
|
85
72
|
rdoc_options: []
|
86
73
|
|
@@ -90,24 +77,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
77
|
requirements:
|
91
78
|
- - ">="
|
92
79
|
- !ruby/object:Gem::Version
|
93
|
-
segments:
|
94
|
-
- 0
|
95
80
|
version: "0"
|
96
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
82
|
requirements:
|
98
83
|
- - ">="
|
99
84
|
- !ruby/object:Gem::Version
|
100
|
-
segments:
|
101
|
-
- 1
|
102
|
-
- 3
|
103
|
-
- 6
|
104
85
|
version: 1.3.6
|
105
86
|
requirements: []
|
106
87
|
|
107
88
|
rubyforge_project: breakpoint
|
108
|
-
rubygems_version:
|
89
|
+
rubygems_version: 2.0.3
|
109
90
|
signing_key:
|
110
|
-
specification_version:
|
91
|
+
specification_version: 4
|
111
92
|
summary: An easy to use system for writing and managing media queries.
|
112
93
|
test_files: []
|
113
94
|
|