ezy 0.3.3 → 0.4.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/ezy.gemspec +5 -5
- data/sass/ezy/_grid.scss +15 -25
- data/sass/ezy/_media.scss +2 -2
- data/sass/ezy/_sprites.scss +1 -1
- data/sass/ezy/grid/_debug.scss +8 -38
- data/sass/ezy/grid/_layout.scss +19 -19
- data/test/css/sprites/layout.css +2 -2
- data/test/css/sprites/position.css +4 -4
- data/test/css/sprites/repeat.css +6 -6
- data/test/css/sprites/resolution.css +4 -4
- data/test/css/sprites/responsive.css +13 -13
- data/test/css/sprites/retina.css +6 -6
- data/test/css/sprites/simple.css +3 -3
- data/test/css/sprites/spacing.css +4 -4
- data/test/html/grid/fluid.html +1 -1
- data/test/html/grid/responsive.html +1 -1
- data/test/scss/media.scss +1 -1
- metadata +14 -17
- data/test/css/grid/layout/debug.css +0 -393
- data/test/html/grid/debug.html +0 -63
- data/test/scss/grid/layout/debug.scss +0 -102
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d8cb214a5395a536ee7de2ea2c6babd3575030
|
4
|
+
data.tar.gz: c50f7357b4649541d340f552a92bce96d555575f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d52afc72500df4e13a8f369e8fef24229612d4b85133d0d858ade617b34f57c3b7565d03f357e6e75d16df6fb9ef6124e64c2d5493a154b8915d0b0c102d4dd
|
7
|
+
data.tar.gz: 6de165559144128b590ecabeaffa626918441ac4456a64d903ed529b561eaaf98d8da1e2654dd52a5ac9e4969ff3f34c1c7a315eaaad7dec9f8c8826b627030b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0.beta
|
data/ezy.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
# Release Specific Information
|
5
|
-
s.version = "0.
|
6
|
-
s.date = "2014-04-
|
5
|
+
s.version = "0.4.0.beta"
|
6
|
+
s.date = "2014-04-06"
|
7
7
|
|
8
8
|
# Gem Details
|
9
9
|
s.name = "ezy"
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.files += Dir.glob("test/img/test-*/*.*")
|
29
29
|
|
30
30
|
# Gem Bookkeeping
|
31
|
-
s.rubygems_version = %q{
|
32
|
-
s.add_dependency(%q<compass>, [">= 0.
|
33
|
-
s.add_dependency(%q<sass>, [">= 3.
|
31
|
+
s.rubygems_version = %q{2.2.2}
|
32
|
+
s.add_dependency(%q<compass>, [">= 1.0.0"])
|
33
|
+
s.add_dependency(%q<sass>, [">= 3.3.4"])
|
34
34
|
end
|
data/sass/ezy/_grid.scss
CHANGED
@@ -13,7 +13,6 @@ $gutter-property : "margin" !default;
|
|
13
13
|
$total-columns : 12 !default;
|
14
14
|
$is-fluid : true !default;
|
15
15
|
$grid-padding : 0 !default;
|
16
|
-
$debug-selector : "body" !default;
|
17
16
|
|
18
17
|
// ---------------------------------------------------------------------------
|
19
18
|
// Variables used in grid context
|
@@ -48,10 +47,10 @@ $init-gutter-property: $gutter-property;
|
|
48
47
|
|
49
48
|
// ---------------------------------------------------------------------------
|
50
49
|
// @mixin master
|
51
|
-
//
|
50
|
+
//
|
52
51
|
// Sets width on page. If the grid is fluid, it's set as a max-width
|
53
52
|
// Extends the grid master placeholder selector
|
54
|
-
// $context : Number of columns in the current context.
|
53
|
+
// $context : Number of columns in the current context.
|
55
54
|
|
56
55
|
@mixin master(
|
57
56
|
$context : $total-columns,
|
@@ -78,7 +77,7 @@ $init-gutter-property: $gutter-property;
|
|
78
77
|
|
79
78
|
@if $grid-padding-left { padding-left: $grid-padding-left; }
|
80
79
|
@if $grid-padding-right { padding-right: $grid-padding-right; }
|
81
|
-
|
80
|
+
|
82
81
|
@if ( not $at-breakpoint ) {
|
83
82
|
@extend %ezy-master;
|
84
83
|
}
|
@@ -94,7 +93,7 @@ $init-gutter-property: $gutter-property;
|
|
94
93
|
|
95
94
|
// ---------------------------------------------------------------------------
|
96
95
|
// @mixin container
|
97
|
-
//
|
96
|
+
//
|
98
97
|
// Sets width on page. If the grid is fluid, it's set as a max-width
|
99
98
|
// Extends the grid master placeholder selector
|
100
99
|
// $context : Number of columns in the current context
|
@@ -120,15 +119,6 @@ $init-gutter-property: $gutter-property;
|
|
120
119
|
@if (not $at-breakpoint) {
|
121
120
|
@extend %ezy-container;
|
122
121
|
}
|
123
|
-
// Debug info about layouts
|
124
|
-
@if $debug {
|
125
|
-
@include debug-layout-styles;
|
126
|
-
@include debug-layout-info("CONTEXT :: columns: #{$total-columns} | column-width: #{$column-width} | gutter-width: #{$gutter-width} | at-breakpoint: #{$at-breakpoint}");
|
127
|
-
&:before {
|
128
|
-
@include span-columns( $total-columns );
|
129
|
-
width: auto;
|
130
|
-
}
|
131
|
-
}
|
132
122
|
}
|
133
123
|
|
134
124
|
// ---------------------------------------------------------------------------
|
@@ -149,9 +139,9 @@ $init-gutter-property: $gutter-property;
|
|
149
139
|
|
150
140
|
// ---------------------------------------------------------------------------
|
151
141
|
// @mixin grid-init
|
152
|
-
//
|
142
|
+
//
|
153
143
|
// Prints out placeholder selectors used with columns. Helps reduce the CSS output.
|
154
|
-
//
|
144
|
+
//
|
155
145
|
// Should be called after setting grid variables:
|
156
146
|
// ----------------
|
157
147
|
// $column-width
|
@@ -161,9 +151,9 @@ $init-gutter-property: $gutter-property;
|
|
161
151
|
// ----------------
|
162
152
|
|
163
153
|
@mixin grid-init( $columns: $total-columns ) {
|
164
|
-
$grid-init : true;
|
165
|
-
$grid-init-index : $grid-init-index + 1;
|
166
|
-
$init-gutter-property : $gutter-property;
|
154
|
+
$grid-init : true !global;
|
155
|
+
$grid-init-index : $grid-init-index + 1 !global;
|
156
|
+
$init-gutter-property : $gutter-property !global;
|
167
157
|
|
168
158
|
// Placeholder selector for fluid grid columns
|
169
159
|
@for $i from 1 through $columns {
|
@@ -188,7 +178,7 @@ $init-gutter-property: $gutter-property;
|
|
188
178
|
|
189
179
|
// ---------------------------------------------------------------------------
|
190
180
|
// @mixin span-columns
|
191
|
-
//
|
181
|
+
//
|
192
182
|
// Sets width and gutter on columns
|
193
183
|
// Uses @extend for gutters outside media queries if grid-init() has been called
|
194
184
|
// $columns : Number of columns to span
|
@@ -221,13 +211,13 @@ $init-gutter-property: $gutter-property;
|
|
221
211
|
@include debug-info( $columns, $context );
|
222
212
|
}
|
223
213
|
|
224
|
-
// Setting base column styles when a column can't
|
214
|
+
// Setting base column styles when a column can't
|
225
215
|
// have extended the base columns placeholder selector
|
226
216
|
@if ( not $grid-init ) {
|
227
217
|
@include column-base;
|
228
218
|
}
|
229
219
|
|
230
|
-
// Some crazy logic to set gutter or
|
220
|
+
// Some crazy logic to set gutter or
|
231
221
|
// extend column placeholder selectors
|
232
222
|
|
233
223
|
@if $grid-init and ( not $at-breakpoint ) {
|
@@ -240,14 +230,14 @@ $init-gutter-property: $gutter-property;
|
|
240
230
|
} @else {
|
241
231
|
@extend %ezy-column-#{ $grid-init-index }-#{ $context };
|
242
232
|
}
|
243
|
-
|
233
|
+
|
244
234
|
} @else {
|
245
235
|
@extend %ezy-column-#{ $grid-init-index };
|
246
236
|
}
|
247
237
|
|
248
238
|
}
|
249
239
|
@if ( $gutter-property and $gutter-property != $init-gutter-property )
|
250
|
-
or ( not $grid-init )
|
240
|
+
or ( not $grid-init )
|
251
241
|
or $at-breakpoint {
|
252
242
|
|
253
243
|
@if $is-fluid and $context {
|
@@ -257,7 +247,7 @@ $init-gutter-property: $gutter-property;
|
|
257
247
|
@warn $context-warn;
|
258
248
|
} @else {
|
259
249
|
@include gutters( $gutter-property: $gutter-property );
|
260
|
-
}
|
250
|
+
}
|
261
251
|
|
262
252
|
}
|
263
253
|
}
|
data/sass/ezy/_media.scss
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
// Setting variable for reference
|
38
38
|
// in the content of the mixin call
|
39
|
-
$at-breakpoint: true;
|
39
|
+
$at-breakpoint: true !global;
|
40
40
|
|
41
41
|
@media #{ nth( $breakpoint, 1 ) } {
|
42
42
|
@content;
|
@@ -49,7 +49,7 @@
|
|
49
49
|
}
|
50
50
|
|
51
51
|
// Reset reference
|
52
|
-
$at-breakpoint: false;
|
52
|
+
$at-breakpoint: false !global;
|
53
53
|
}
|
54
54
|
|
55
55
|
|
data/sass/ezy/_sprites.scss
CHANGED
@@ -238,7 +238,7 @@ $sprite-maps: ();
|
|
238
238
|
);
|
239
239
|
}
|
240
240
|
|
241
|
-
$sprite-maps: append( $sprite-maps, ( $name $sprite $sprite-retina $position $position-retina $repeat $repeat-retina ), comma );
|
241
|
+
$sprite-maps: append( $sprite-maps, ( $name $sprite $sprite-retina $position $position-retina $repeat $repeat-retina ), comma ) !global;
|
242
242
|
|
243
243
|
%sprite-placeholder-#{ $name } {
|
244
244
|
background-image: sprite-url( $sprite );
|
data/sass/ezy/grid/_debug.scss
CHANGED
@@ -1,25 +1,16 @@
|
|
1
1
|
// ---------------------------------------------------------------------------
|
2
|
-
// @mixin
|
3
|
-
|
4
|
-
@mixin debug-text {
|
5
|
-
background-color: #EBEBEB;
|
6
|
-
border: 1px solid #7A7A7A;
|
7
|
-
color: #000;
|
8
|
-
display: inline-block;
|
9
|
-
font-family: monospace, serif;
|
10
|
-
font-size: 8px;
|
11
|
-
left: 0;
|
12
|
-
line-height: 11px;
|
13
|
-
padding: 0px 2px;
|
14
|
-
position: absolute;
|
15
|
-
top: 0;
|
16
|
-
z-index: 999;
|
17
|
-
}
|
2
|
+
// @mixin
|
18
3
|
|
19
4
|
@mixin debug-styles {
|
20
5
|
position: relative;
|
21
6
|
&:before {
|
22
|
-
|
7
|
+
background-color: rgba(0,0,0,.2);
|
8
|
+
display: inline-block;
|
9
|
+
font-family: monospace, serif;
|
10
|
+
font-size: 8px;
|
11
|
+
line-height: 11px;
|
12
|
+
padding: 0px 2px;
|
13
|
+
position: absolute;
|
23
14
|
}
|
24
15
|
}
|
25
16
|
|
@@ -29,24 +20,3 @@
|
|
29
20
|
content: "#{ $debug-text }";
|
30
21
|
}
|
31
22
|
}
|
32
|
-
|
33
|
-
@mixin debug-layout-styles {
|
34
|
-
@include debug-styles;
|
35
|
-
&:before {
|
36
|
-
bottom: 0;
|
37
|
-
padding: 1px 4px;
|
38
|
-
top: auto;
|
39
|
-
white-space: pre-wrap;
|
40
|
-
box-sizing: border-box;
|
41
|
-
-moz-box-sizing: border-box;
|
42
|
-
-webkit-box-sizing: border-box;
|
43
|
-
-o-box-sizing: border-box;
|
44
|
-
-ms-box-sizing: border-box;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
@mixin debug-layout-info( $info ) {
|
49
|
-
&:before {
|
50
|
-
content: "#{ $info }";
|
51
|
-
}
|
52
|
-
}
|
data/sass/ezy/grid/_layout.scss
CHANGED
@@ -33,7 +33,7 @@ $layouts: ();
|
|
33
33
|
$layout: ( $columns ($grid-padding) ($at-breakpoint) $column-width $gutter-width $legacy-support $is-fluid );
|
34
34
|
|
35
35
|
// Storing layout
|
36
|
-
$layouts: append( $layouts, $layout, comma );
|
36
|
+
$layouts: append( $layouts, $layout, comma ) !global;
|
37
37
|
|
38
38
|
@return $layout;
|
39
39
|
|
@@ -42,9 +42,9 @@ $layouts: ();
|
|
42
42
|
// ---------------------------------------------------------------------------
|
43
43
|
// @mixin at-layout
|
44
44
|
|
45
|
-
@mixin at-layout(
|
46
|
-
$layout,
|
47
|
-
$legacy-support : false
|
45
|
+
@mixin at-layout(
|
46
|
+
$layout,
|
47
|
+
$legacy-support : false
|
48
48
|
) {
|
49
49
|
|
50
50
|
// Storing reference to global variables
|
@@ -56,22 +56,22 @@ $layouts: ();
|
|
56
56
|
$gutter-width-ref : $gutter-width;
|
57
57
|
|
58
58
|
// Using settings from layout
|
59
|
-
$total-columns : nth( $layout, 1 );
|
60
|
-
$grid-padding : nth( $layout, 2 );
|
61
|
-
$at-breakpoint : nth( $layout, 3 );
|
62
|
-
$column-width : nth( $layout, 4 );
|
63
|
-
$gutter-width : nth( $layout, 5 );
|
64
|
-
$is-fluid : nth( $layout, 7 );
|
59
|
+
$total-columns : nth( $layout, 1 ) !global;
|
60
|
+
$grid-padding : nth( $layout, 2 ) !global;
|
61
|
+
$at-breakpoint : nth( $layout, 3 ) !global;
|
62
|
+
$column-width : nth( $layout, 4 ) !global;
|
63
|
+
$gutter-width : nth( $layout, 5 ) !global;
|
64
|
+
$is-fluid : nth( $layout, 7 ) !global;
|
65
65
|
|
66
66
|
// Use general settings if false
|
67
67
|
@if not $grid-padding {
|
68
|
-
$grid-padding : $grid-padding-ref;
|
68
|
+
$grid-padding : $grid-padding-ref !global;
|
69
69
|
}
|
70
70
|
@if not $column-width {
|
71
|
-
$column-width : $column-width-ref;
|
71
|
+
$column-width : $column-width-ref !global;
|
72
72
|
}
|
73
73
|
@if not $gutter-width {
|
74
|
-
$gutter-width : $gutter-width-ref;
|
74
|
+
$gutter-width : $gutter-width-ref !global;
|
75
75
|
}
|
76
76
|
|
77
77
|
// Get legacy support setting from layout if not forced
|
@@ -88,12 +88,12 @@ $layouts: ();
|
|
88
88
|
}
|
89
89
|
|
90
90
|
// Resetting references to original values
|
91
|
-
$at-breakpoint : $at-breakpoint-ref;
|
92
|
-
$is-fluid : $is-fluid-ref;
|
93
|
-
$total-columns : $total-columns-ref;
|
94
|
-
$grid-padding : $grid-padding-ref;
|
95
|
-
$column-width : $column-width-ref;
|
96
|
-
$gutter-width : $gutter-width-ref;
|
91
|
+
$at-breakpoint : $at-breakpoint-ref !global;
|
92
|
+
$is-fluid : $is-fluid-ref !global;
|
93
|
+
$total-columns : $total-columns-ref !global;
|
94
|
+
$grid-padding : $grid-padding-ref !global;
|
95
|
+
$column-width : $column-width-ref !global;
|
96
|
+
$gutter-width : $gutter-width-ref !global;
|
97
97
|
}
|
98
98
|
|
99
99
|
// ---------------------------------------------------------------------------
|
data/test/css/sprites/layout.css
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.classic {
|
2
|
-
background-image: url('../../img/test-layout.png?
|
2
|
+
background-image: url('../../img/test-layout.png?17351396798531');
|
3
3
|
background-repeat: no-repeat;
|
4
4
|
}
|
5
5
|
|
6
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
7
7
|
.classic {
|
8
8
|
/* Retina sprite */
|
9
|
-
background-image: url('../../img/test-layout@2x.png?
|
9
|
+
background-image: url('../../img/test-layout@2x.png?17351396798531');
|
10
10
|
background-size: 718px auto;
|
11
11
|
}
|
12
12
|
}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
* Compiled 2x sprite has all images aligned to the right
|
4
4
|
*/
|
5
5
|
.vertical {
|
6
|
-
background-image: url('../../img/test-position.png?
|
6
|
+
background-image: url('../../img/test-position.png?17351396798536');
|
7
7
|
background-repeat: no-repeat;
|
8
8
|
}
|
9
9
|
|
10
10
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
11
11
|
.vertical {
|
12
12
|
/* Retina sprite */
|
13
|
-
background-image: url('../../img/test-position@2x.png?
|
13
|
+
background-image: url('../../img/test-position@2x.png?17351396798536');
|
14
14
|
background-size: 281px auto;
|
15
15
|
}
|
16
16
|
}
|
@@ -20,14 +20,14 @@
|
|
20
20
|
* Compiled 2x sprite has all images aligned to the bottom
|
21
21
|
*/
|
22
22
|
.horizontal {
|
23
|
-
background-image: url('../../img/test-position-alt.png?
|
23
|
+
background-image: url('../../img/test-position-alt.png?17351396798536');
|
24
24
|
background-repeat: no-repeat;
|
25
25
|
}
|
26
26
|
|
27
27
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
28
28
|
.horizontal {
|
29
29
|
/* Retina sprite */
|
30
|
-
background-image: url('../../img/test-position-alt@2x.png?
|
30
|
+
background-image: url('../../img/test-position-alt@2x.png?17351396798536');
|
31
31
|
background-size: 421px auto;
|
32
32
|
}
|
33
33
|
}
|
data/test/css/sprites/repeat.css
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
.meassure-1, .meassure-2, .meassure-3 {
|
2
|
-
background-image: url('../../img/test-repeat.png?
|
2
|
+
background-image: url('../../img/test-repeat.png?17351396798538');
|
3
3
|
background-repeat: repeat-x;
|
4
4
|
}
|
5
5
|
|
6
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
7
7
|
.meassure-1, .meassure-2, .meassure-3 {
|
8
8
|
/* Retina sprite */
|
9
|
-
background-image: url('../../img/test-repeat@2x.png?
|
9
|
+
background-image: url('../../img/test-repeat@2x.png?17351396798538');
|
10
10
|
background-size: 378px auto;
|
11
11
|
background-repeat: no-repeat;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
15
|
.meassure-1 {
|
16
|
-
background-position: 0
|
16
|
+
background-position: 0 0;
|
17
17
|
width: 378px;
|
18
18
|
height: 50px;
|
19
19
|
}
|
20
20
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
21
21
|
.meassure-1 {
|
22
22
|
/* Retina sprite */
|
23
|
-
background-position: -252px
|
23
|
+
background-position: -252px 0;
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
@@ -37,13 +37,13 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
.meassure-3 {
|
40
|
-
background-position: 0
|
40
|
+
background-position: 0 -100px;
|
41
41
|
width: 378px;
|
42
42
|
height: 50px;
|
43
43
|
}
|
44
44
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-ms-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
45
45
|
.meassure-3 {
|
46
46
|
/* Retina sprite */
|
47
|
-
background-position: 0
|
47
|
+
background-position: 0 -100px;
|
48
48
|
}
|
49
49
|
}
|
@@ -2,24 +2,24 @@
|
|
2
2
|
* Min device pixel ratio changed to 1.7
|
3
3
|
*/
|
4
4
|
.classic {
|
5
|
-
background-image: url('../../img/test-retina.png?
|
5
|
+
background-image: url('../../img/test-retina.png?17351396798540');
|
6
6
|
background-repeat: no-repeat;
|
7
7
|
}
|
8
8
|
|
9
9
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.7), only screen and (min--moz-device-pixel-ratio: 1.7), only screen and (-moz-min-device-pixel-ratio: 1.7), only screen and (-ms-min-device-pixel-ratio: 1.7), only screen and (-o-min-device-pixel-ratio: 1.7 / 1), only screen and (min-device-pixel-ratio: 1.7), only screen and (min-resolution: 163.2dpi), only screen and (min-resolution: 1.7dppx) {
|
10
10
|
.classic {
|
11
11
|
/* Retina sprite */
|
12
|
-
background-image: url('../../img/test-retina@2x.png?
|
12
|
+
background-image: url('../../img/test-retina@2x.png?17351396798540');
|
13
13
|
background-size: 152px auto;
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
17
|
.classic {
|
18
|
-
background-position: 0 -
|
18
|
+
background-position: 0 -141px;
|
19
19
|
}
|
20
20
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.7), only screen and (min--moz-device-pixel-ratio: 1.7), only screen and (-moz-min-device-pixel-ratio: 1.7), only screen and (-ms-min-device-pixel-ratio: 1.7), only screen and (-o-min-device-pixel-ratio: 1.7 / 1), only screen and (min-device-pixel-ratio: 1.7), only screen and (min-resolution: 163.2dpi), only screen and (min-resolution: 1.7dppx) {
|
21
21
|
.classic {
|
22
22
|
/* Retina sprite */
|
23
|
-
background-position: 0
|
23
|
+
background-position: 0 0;
|
24
24
|
}
|
25
25
|
}
|