responder 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/responder/version.rb +1 -1
- data/scss/responder/_respond-to-retina.scss +6 -5
- data/scss/responder.scss +1 -0
- data/test/css/style.css +1 -1
- metadata +71 -61
data/README.md
CHANGED
@@ -108,7 +108,7 @@ You can create as many breakpoints as you need for each group. It's that simple.
|
|
108
108
|
|
109
109
|
### 3. Retina displays
|
110
110
|
|
111
|
-
Target retina displays
|
111
|
+
Target retina displays easily using Responder's future proof media query.
|
112
112
|
|
113
113
|
@include respond-to(retina) {
|
114
114
|
// retina sharpness goes here
|
data/lib/responder/version.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
// =============================================================================
|
2
2
|
// Respond to retina
|
3
|
+
//
|
4
|
+
// Future proof Retina media query based on Brett Jankord's research:
|
5
|
+
// http://www.brettjankord.com/2012/11/28/cross-browser-retinahigh-resolution-media-queries/
|
6
|
+
//
|
3
7
|
// =============================================================================
|
4
8
|
|
5
9
|
@mixin respond-to-retina {
|
6
10
|
@media
|
7
|
-
only screen and (-webkit-min-device-pixel-ratio:
|
8
|
-
only screen and (
|
9
|
-
only screen and ( -o-min-device-pixel-ratio: 3/2),
|
10
|
-
only screen and ( min-device-pixel-ratio: 2),
|
11
|
-
only screen and ( min-resolution: 1.5dppx) {
|
11
|
+
only screen and (-webkit-min-device-pixel-ratio: 2),
|
12
|
+
only screen and (min-resolution: #{(96 * $responder-retina-pixel-ratio)}dpi) {
|
12
13
|
@content;
|
13
14
|
}
|
14
15
|
}
|
data/scss/responder.scss
CHANGED
@@ -32,6 +32,7 @@ $breakpoint-groups: ();
|
|
32
32
|
$responder-use-ems: true !default;
|
33
33
|
$responder-ems-context: $base-font-size !default;
|
34
34
|
$responder-media-type: screen !default;
|
35
|
+
$responder-retina-pixel-ratio: 2 !default;
|
35
36
|
$old-ie-support: false !default;
|
36
37
|
$old-ie-breakpoint: false !default;
|
37
38
|
|
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:
|
352
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 190dpi) {
|
353
353
|
/* line 71, ../scss/style.scss */
|
354
354
|
.mq-mixins-test tbody .respond-to-retina {
|
355
355
|
background: #a7e040;
|
metadata
CHANGED
@@ -1,71 +1,78 @@
|
|
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
|
+
hash: 21
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Daniel Guillan
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-11-30 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: sass
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.0
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 15
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 2
|
32
|
+
- 0
|
29
33
|
version: 3.2.0
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: compass
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.12.2
|
38
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: compass
|
39
38
|
prerelease: false
|
40
|
-
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 43
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 12
|
48
|
+
- 2
|
45
49
|
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'
|
54
50
|
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rake
|
55
54
|
prerelease: false
|
56
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
56
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
64
|
+
type: :runtime
|
65
|
+
version_requirements: *id003
|
62
66
|
description: Magic media queries for your Compass project
|
63
|
-
email:
|
67
|
+
email:
|
64
68
|
- daniel.guillan@gmail.com
|
65
69
|
executables: []
|
70
|
+
|
66
71
|
extensions: []
|
72
|
+
|
67
73
|
extra_rdoc_files: []
|
68
|
-
|
74
|
+
|
75
|
+
files:
|
69
76
|
- .gitignore
|
70
77
|
- Gemfile
|
71
78
|
- LICENSE.txt
|
@@ -86,35 +93,38 @@ files:
|
|
86
93
|
- test/scss/style.scss
|
87
94
|
homepage: http://github.com/danielguillan/responder
|
88
95
|
licenses: []
|
96
|
+
|
89
97
|
post_install_message:
|
90
98
|
rdoc_options: []
|
91
|
-
|
99
|
+
|
100
|
+
require_paths:
|
92
101
|
- lib
|
93
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
103
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
100
109
|
- 0
|
101
|
-
|
102
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
version: "0"
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
112
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
segments:
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
109
118
|
- 0
|
110
|
-
|
119
|
+
version: "0"
|
111
120
|
requirements: []
|
121
|
+
|
112
122
|
rubyforge_project:
|
113
123
|
rubygems_version: 1.8.24
|
114
124
|
signing_key:
|
115
125
|
specification_version: 3
|
116
126
|
summary: Magic media queries for your Compass project
|
117
|
-
test_files:
|
127
|
+
test_files:
|
118
128
|
- test/config.rb
|
119
129
|
- test/css/style-old-ie.css
|
120
130
|
- test/css/style.css
|