responder 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/responder/version.rb +1 -1
- data/scss/responder/_respond-to-retina.scss +1 -1
- data/test/css/style.css +1 -1
- metadata +61 -71
data/README.md
CHANGED
@@ -50,6 +50,10 @@ Responder will do the math for you and convert your breakpoint values into ems.
|
|
50
50
|
|
51
51
|
$responder-media-type: tv; // Defaults to screen
|
52
52
|
|
53
|
+
**Change the default pixel ratio for the retina media query**
|
54
|
+
|
55
|
+
$responder-retina-pixel-ratio: tv; // Defaults to 2
|
56
|
+
|
53
57
|
### 2. Using the respond-to mixin
|
54
58
|
|
55
59
|
Yep, that was it. Your mixin is ready to use.
|
data/lib/responder/version.rb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
@mixin respond-to-retina {
|
10
10
|
@media
|
11
|
-
only screen and (-webkit-min-device-pixel-ratio:
|
11
|
+
only screen and (-webkit-min-device-pixel-ratio: $responder-retina-pixel-ratio),
|
12
12
|
only screen and (min-resolution: #{(96 * $responder-retina-pixel-ratio)}dpi) {
|
13
13
|
@content;
|
14
14
|
}
|
data/test/css/style.css
CHANGED
@@ -349,7 +349,7 @@ tr > td:first-child {
|
|
349
349
|
display: none;
|
350
350
|
}
|
351
351
|
}
|
352
|
-
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution:
|
352
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
|
353
353
|
/* line 71, ../scss/style.scss */
|
354
354
|
.mq-mixins-test tbody .respond-to-retina {
|
355
355
|
background: #a7e040;
|
metadata
CHANGED
@@ -1,78 +1,71 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: responder
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 1
|
10
|
-
version: 0.2.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Daniel Guillan
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: sass
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 15
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 2
|
32
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 3.2.0
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: compass
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: compass
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
40
33
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 43
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
- 12
|
48
|
-
- 2
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
49
37
|
version: 0.12.2
|
50
38
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: rake
|
54
39
|
prerelease: false
|
55
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
41
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.12.2
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
64
54
|
type: :runtime
|
65
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
66
62
|
description: Magic media queries for your Compass project
|
67
|
-
email:
|
63
|
+
email:
|
68
64
|
- daniel.guillan@gmail.com
|
69
65
|
executables: []
|
70
|
-
|
71
66
|
extensions: []
|
72
|
-
|
73
67
|
extra_rdoc_files: []
|
74
|
-
|
75
|
-
files:
|
68
|
+
files:
|
76
69
|
- .gitignore
|
77
70
|
- Gemfile
|
78
71
|
- LICENSE.txt
|
@@ -93,38 +86,35 @@ files:
|
|
93
86
|
- test/scss/style.scss
|
94
87
|
homepage: http://github.com/danielguillan/responder
|
95
88
|
licenses: []
|
96
|
-
|
97
89
|
post_install_message:
|
98
90
|
rdoc_options: []
|
99
|
-
|
100
|
-
require_paths:
|
91
|
+
require_paths:
|
101
92
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
94
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
segments:
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
segments:
|
109
100
|
- 0
|
110
|
-
|
111
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
hash: 2122198741409358115
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
103
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
segments:
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
segments:
|
118
109
|
- 0
|
119
|
-
|
110
|
+
hash: 2122198741409358115
|
120
111
|
requirements: []
|
121
|
-
|
122
112
|
rubyforge_project:
|
123
113
|
rubygems_version: 1.8.24
|
124
114
|
signing_key:
|
125
115
|
specification_version: 3
|
126
116
|
summary: Magic media queries for your Compass project
|
127
|
-
test_files:
|
117
|
+
test_files:
|
128
118
|
- test/config.rb
|
129
119
|
- test/css/style-old-ie.css
|
130
120
|
- test/css/style.css
|