ezy 0.2.9 → 0.3.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 +2 -2
- data/sass/ezy/grid/_layout.scss +30 -4
- data/templates/project/assets/config.rb +45 -0
- data/templates/project/assets/css/screen.css +657 -0
- data/templates/project/assets/img/test-sprite/alien.png +0 -0
- data/templates/project/assets/img/test-sprite/classic.png +0 -0
- data/templates/project/assets/img/test-sprite/indy.png +0 -0
- data/templates/project/assets/img/test-sprite.png +0 -0
- data/templates/project/assets/img/test-sprite@2x/classic.png +0 -0
- data/templates/project/assets/img/test-sprite@2x/indy.png +0 -0
- data/templates/project/assets/img/test-sprite@2x.png +0 -0
- data/templates/project/assets/js/html5shiv-3.6.2.js +8 -0
- data/templates/project/assets/sass/core/_base.scss +2 -0
- data/templates/project/assets/sass/core/_layouts.scss +88 -0
- data/templates/project/assets/sass/core/_settings.scss +2 -0
- data/templates/project/assets/sass/lib/_normalize.scss +396 -0
- data/templates/project/assets/sass/partials/_sprite-examples.scss +43 -0
- data/templates/project/assets/sass/screen.scss +17 -0
- data/templates/project/index.html +83 -23
- data/templates/project/manifest.rb +39 -8
- data/test/css/grid/elastic.css +5 -5
- data/test/css/grid/fluid.css +17 -17
- data/test/css/grid/gutter.css +18 -18
- data/test/css/grid/layout/fluid.css +12 -12
- data/test/css/grid/layout/grid-settings.css +149 -0
- data/test/css/grid/layout/responsive.css +41 -35
- data/test/css/grid/layout.css +20 -20
- data/test/css/grid/responsive.css +20 -20
- data/test/css/sprites/layout.css +2 -2
- data/test/css/sprites/position.css +4 -4
- data/test/css/sprites/repeat.css +2 -2
- data/test/css/sprites/resolution.css +2 -2
- data/test/css/sprites/responsive.css +7 -7
- data/test/css/sprites/retina.css +2 -2
- data/test/css/sprites/simple.css +1 -1
- data/test/css/sprites/spacing.css +2 -2
- data/test/html/grid/grid-settings.html +75 -0
- data/test/scss/grid/layout/grid-settings.scss +101 -0
- metadata +24 -7
- data/templates/project/_settings.scss +0 -32
- data/templates/project/screen.scss +0 -40
data/test/css/grid/layout.css
CHANGED
@@ -34,8 +34,8 @@
|
|
34
34
|
|
35
35
|
.column {
|
36
36
|
/* Grid column base at a 4-column context */
|
37
|
-
margin-left: 4.
|
38
|
-
margin-right: 4.
|
37
|
+
margin-left: 4.16667%;
|
38
|
+
margin-right: 4.16667%;
|
39
39
|
float: left;
|
40
40
|
/* Fixing double margin on IE6 */
|
41
41
|
_display: inline;
|
@@ -76,51 +76,51 @@
|
|
76
76
|
}
|
77
77
|
|
78
78
|
.grid {
|
79
|
-
margin-left: -4.
|
80
|
-
margin-right: -4.
|
79
|
+
margin-left: -4.54545%;
|
80
|
+
margin-right: -4.54545%;
|
81
81
|
}
|
82
82
|
@media (min-width: 990px) {
|
83
83
|
.grid {
|
84
|
-
margin-left: -2.
|
85
|
-
margin-right: -2.
|
84
|
+
margin-left: -2.17391%;
|
85
|
+
margin-right: -2.17391%;
|
86
86
|
}
|
87
87
|
}
|
88
88
|
@media (min-width: 1250px) {
|
89
89
|
.grid {
|
90
|
-
margin-left: -1.
|
91
|
-
margin-right: -1.
|
90
|
+
margin-left: -1.42857%;
|
91
|
+
margin-right: -1.42857%;
|
92
92
|
}
|
93
93
|
}
|
94
94
|
.no-media-queries .grid {
|
95
95
|
/* Fallback for browsers not supporting media queries */
|
96
|
-
margin-left: -1.
|
97
|
-
margin-right: -1.
|
96
|
+
margin-left: -1.42857%;
|
97
|
+
margin-right: -1.42857%;
|
98
98
|
}
|
99
99
|
|
100
100
|
.column {
|
101
101
|
/* Spanning 4 of 4 columns */
|
102
|
-
width: 91.
|
102
|
+
width: 91.66667%;
|
103
103
|
}
|
104
104
|
@media (min-width: 990px) {
|
105
105
|
.column {
|
106
106
|
/* Spanning 4 of 8 columns */
|
107
|
-
width: 45.
|
108
|
-
margin-left: 2.
|
109
|
-
margin-right: 2.
|
107
|
+
width: 45.83333%;
|
108
|
+
margin-left: 2.08333%;
|
109
|
+
margin-right: 2.08333%;
|
110
110
|
}
|
111
111
|
}
|
112
112
|
@media (min-width: 1250px) {
|
113
113
|
.column {
|
114
114
|
/* Spanning 4 of 12 columns */
|
115
|
-
width: 30.
|
116
|
-
margin-left: 1.
|
117
|
-
margin-right: 1.
|
115
|
+
width: 30.55556%;
|
116
|
+
margin-left: 1.38889%;
|
117
|
+
margin-right: 1.38889%;
|
118
118
|
}
|
119
119
|
}
|
120
120
|
.no-media-queries .column {
|
121
121
|
/* Fallback for browsers not supporting media queries */
|
122
122
|
/* Spanning 4 of 12 columns */
|
123
|
-
width: 30.
|
124
|
-
margin-left: 1.
|
125
|
-
margin-right: 1.
|
123
|
+
width: 30.55556%;
|
124
|
+
margin-left: 1.38889%;
|
125
|
+
margin-right: 1.38889%;
|
126
126
|
}
|
@@ -34,8 +34,8 @@
|
|
34
34
|
|
35
35
|
.column {
|
36
36
|
/* Grid column base at a 4-column context */
|
37
|
-
margin-left: 4.
|
38
|
-
margin-right: 4.
|
37
|
+
margin-left: 4.16667%;
|
38
|
+
margin-right: 4.16667%;
|
39
39
|
float: left;
|
40
40
|
/* Fixing double margin on IE6 */
|
41
41
|
_display: inline;
|
@@ -50,51 +50,51 @@
|
|
50
50
|
}
|
51
51
|
|
52
52
|
.grid {
|
53
|
-
margin-left: -4.
|
54
|
-
margin-right: -4.
|
53
|
+
margin-left: -4.54545%;
|
54
|
+
margin-right: -4.54545%;
|
55
55
|
}
|
56
56
|
@media (min-width: 361px) {
|
57
57
|
.grid {
|
58
|
-
margin-left: -2.
|
59
|
-
margin-right: -2.
|
58
|
+
margin-left: -2.17391%;
|
59
|
+
margin-right: -2.17391%;
|
60
60
|
}
|
61
61
|
}
|
62
62
|
@media (min-width: 721px) {
|
63
63
|
.grid {
|
64
|
-
margin-left: -1.
|
65
|
-
margin-right: -1.
|
64
|
+
margin-left: -1.42857%;
|
65
|
+
margin-right: -1.42857%;
|
66
66
|
}
|
67
67
|
}
|
68
68
|
.no-media-queries .grid {
|
69
69
|
/* Fallback for browsers not supporting media queries */
|
70
|
-
margin-left: -1.
|
71
|
-
margin-right: -1.
|
70
|
+
margin-left: -1.42857%;
|
71
|
+
margin-right: -1.42857%;
|
72
72
|
}
|
73
73
|
|
74
74
|
.column {
|
75
75
|
/* Spanning 4 of 4 columns */
|
76
|
-
width: 91.
|
76
|
+
width: 91.66667%;
|
77
77
|
}
|
78
78
|
@media (min-width: 361px) {
|
79
79
|
.column {
|
80
80
|
/* Spanning 4 of 8 columns */
|
81
|
-
width: 45.
|
82
|
-
margin-left: 2.
|
83
|
-
margin-right: 2.
|
81
|
+
width: 45.83333%;
|
82
|
+
margin-left: 2.08333%;
|
83
|
+
margin-right: 2.08333%;
|
84
84
|
}
|
85
85
|
}
|
86
86
|
@media (min-width: 721px) {
|
87
87
|
.column {
|
88
88
|
/* Spanning 4 of 12 columns */
|
89
|
-
width: 30.
|
90
|
-
margin-left: 1.
|
91
|
-
margin-right: 1.
|
89
|
+
width: 30.55556%;
|
90
|
+
margin-left: 1.38889%;
|
91
|
+
margin-right: 1.38889%;
|
92
92
|
}
|
93
93
|
}
|
94
94
|
.no-media-queries .column {
|
95
95
|
/* Fallback for browsers not supporting media queries */
|
96
96
|
/* Spanning 4 of 12 columns */
|
97
|
-
width: 30.
|
98
|
-
margin-left: 1.
|
99
|
-
margin-right: 1.
|
97
|
+
width: 30.55556%;
|
98
|
+
margin-left: 1.38889%;
|
99
|
+
margin-right: 1.38889%;
|
100
100
|
}
|
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?19071391537226');
|
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?19071391537226');
|
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?19071391537230');
|
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?19071391537230');
|
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?19071391537230');
|
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?19071391537230');
|
31
31
|
background-size: 421px auto;
|
32
32
|
}
|
33
33
|
}
|
data/test/css/sprites/repeat.css
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.meassure-1, .meassure-2, .meassure-3 {
|
2
|
-
background-image: url('../../img/test-repeat.png?
|
2
|
+
background-image: url('../../img/test-repeat.png?19071391537232');
|
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?19071391537232');
|
10
10
|
background-size: 378px auto;
|
11
11
|
background-repeat: no-repeat;
|
12
12
|
}
|
@@ -2,14 +2,14 @@
|
|
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?19071391537234');
|
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?19071391537234');
|
13
13
|
background-size: 152px auto;
|
14
14
|
}
|
15
15
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
.classic, .no-media-queries .indy {
|
2
|
-
background-image: url('../../img/test-retina.png?
|
2
|
+
background-image: url('../../img/test-retina.png?19071391537241');
|
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-retina@2x.png?
|
9
|
+
background-image: url('../../img/test-retina@2x.png?19071391537241');
|
10
10
|
background-size: 152px auto;
|
11
11
|
}
|
12
12
|
}
|
@@ -30,7 +30,7 @@
|
|
30
30
|
@media (min-width: 400px) {
|
31
31
|
.indy {
|
32
32
|
background-position: 0 -141px;
|
33
|
-
background-image: url('../../img/test-retina.png?
|
33
|
+
background-image: url('../../img/test-retina.png?19071391537241');
|
34
34
|
background-repeat: no-repeat;
|
35
35
|
}
|
36
36
|
}
|
@@ -38,14 +38,14 @@
|
|
38
38
|
.indy {
|
39
39
|
/* Retina sprite */
|
40
40
|
background-position: 0 0;
|
41
|
-
background-image: url('../../img/test-retina@2x.png?
|
41
|
+
background-image: url('../../img/test-retina@2x.png?19071391537241');
|
42
42
|
background-size: 152px auto;
|
43
43
|
}
|
44
44
|
}
|
45
45
|
@media (min-width: 960px) {
|
46
46
|
.indy {
|
47
47
|
background-position: 0 -281px;
|
48
|
-
background-image: url('../../img/test-retina.png?
|
48
|
+
background-image: url('../../img/test-retina.png?19071391537241');
|
49
49
|
background-repeat: no-repeat;
|
50
50
|
}
|
51
51
|
}
|
@@ -53,14 +53,14 @@
|
|
53
53
|
.indy {
|
54
54
|
/* Retina sprite */
|
55
55
|
background-position: 0 -140px;
|
56
|
-
background-image: url('../../img/test-retina@2x.png?
|
56
|
+
background-image: url('../../img/test-retina@2x.png?19071391537241');
|
57
57
|
background-size: 152px auto;
|
58
58
|
}
|
59
59
|
}
|
60
60
|
@media (min-width: 1024px) {
|
61
61
|
.indy {
|
62
62
|
background-position: 0 0;
|
63
|
-
background-image: url('../../img/test-retina.png?
|
63
|
+
background-image: url('../../img/test-retina.png?19071391537241');
|
64
64
|
background-repeat: no-repeat;
|
65
65
|
}
|
66
66
|
}
|
data/test/css/sprites/retina.css
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.classic, .indy, .alien {
|
2
|
-
background-image: url('../../img/test-retina.png?
|
2
|
+
background-image: url('../../img/test-retina.png?19071391537243');
|
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, .indy {
|
8
8
|
/* Retina sprite */
|
9
|
-
background-image: url('../../img/test-retina@2x.png?
|
9
|
+
background-image: url('../../img/test-retina@2x.png?19071391537243');
|
10
10
|
background-size: 152px auto;
|
11
11
|
}
|
12
12
|
}
|
data/test/css/sprites/simple.css
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.classic {
|
2
|
-
background-image: url('../../img/test-spacing.png?
|
2
|
+
background-image: url('../../img/test-spacing.png?19071391537249');
|
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-spacing@2x.png?
|
9
|
+
background-image: url('../../img/test-spacing@2x.png?19071391537249');
|
10
10
|
background-size: 159px auto;
|
11
11
|
}
|
12
12
|
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--[if lt IE 9]> <html class="no-media-queries"> <![endif]-->
|
3
|
+
<!--[if gte IE 9]><!--> <html> <!--<![endif]-->
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>Sprite: repeat</title>
|
8
|
+
|
9
|
+
<meta name="description" content="Ezy Grid Demo">
|
10
|
+
<meta name="viewport" content="width=device-width">
|
11
|
+
|
12
|
+
<link href="../../css/grid/layout/grid-settings.css" rel="stylesheet">
|
13
|
+
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div class="page">
|
17
|
+
<div class="grid">
|
18
|
+
<div class="small">
|
19
|
+
<p>Small</p>
|
20
|
+
</div>
|
21
|
+
<div class="small">
|
22
|
+
<p>Small</p>
|
23
|
+
</div>
|
24
|
+
<div class="small">
|
25
|
+
<p>Small</p>
|
26
|
+
</div>
|
27
|
+
<div class="small">
|
28
|
+
<p>Small</p>
|
29
|
+
</div>
|
30
|
+
<div class="small">
|
31
|
+
<p>Small</p>
|
32
|
+
</div>
|
33
|
+
<div class="small">
|
34
|
+
<p>Small</p>
|
35
|
+
</div>
|
36
|
+
<div class="medium">
|
37
|
+
<p>Medium</p>
|
38
|
+
</div>
|
39
|
+
<div class="medium">
|
40
|
+
<p>Medium</p>
|
41
|
+
</div>
|
42
|
+
<div class="small">
|
43
|
+
<p>Small</p>
|
44
|
+
</div>
|
45
|
+
<div class="small">
|
46
|
+
<p>Small</p>
|
47
|
+
</div>
|
48
|
+
<div class="small">
|
49
|
+
<p>Small</p>
|
50
|
+
</div>
|
51
|
+
<div class="small">
|
52
|
+
<p>Small</p>
|
53
|
+
</div>
|
54
|
+
<div class="small">
|
55
|
+
<p>Small</p>
|
56
|
+
</div>
|
57
|
+
<div class="small">
|
58
|
+
<p>Small</p>
|
59
|
+
</div>
|
60
|
+
<div class="large">
|
61
|
+
<p>Large</p>
|
62
|
+
</div>
|
63
|
+
<div class="medium">
|
64
|
+
<p>Medium</p>
|
65
|
+
</div>
|
66
|
+
<div class="medium">
|
67
|
+
<p>Medium</p>
|
68
|
+
</div>
|
69
|
+
<div class="large">
|
70
|
+
<p>Large</p>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</body>
|
75
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
// ------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../../../sass/ezy/grid";
|
5
|
+
|
6
|
+
// ------------------------------------
|
7
|
+
// General grid settings
|
8
|
+
|
9
|
+
$is-fluid : true;
|
10
|
+
|
11
|
+
// ------------------------------------
|
12
|
+
// Grid settings small (default)
|
13
|
+
|
14
|
+
$column-width : 40px;
|
15
|
+
$gutter-width : 20px;
|
16
|
+
$grid-padding : 10px;
|
17
|
+
$total-columns : 12;
|
18
|
+
|
19
|
+
// ------------------------------------
|
20
|
+
// Grid settings large (breapoint)
|
21
|
+
|
22
|
+
$column-width-large : 30px;
|
23
|
+
$gutter-width-large : 50px;
|
24
|
+
$grid-padding-large : 30px;
|
25
|
+
$total-columns-large : 18;
|
26
|
+
|
27
|
+
// ------------------------------------
|
28
|
+
// Breakpoint settings
|
29
|
+
|
30
|
+
// Selector for browsers not supporting media queries
|
31
|
+
// (IE8 and down)
|
32
|
+
$legacy-selector: ".no-media-queries";
|
33
|
+
|
34
|
+
// ------------------------------------
|
35
|
+
// Defining media query breakpoints
|
36
|
+
|
37
|
+
$breakpoint-large : set-breakpoint( $min: grid-width( $total-columns ), $legacy-support: true ); // Default for old IE
|
38
|
+
|
39
|
+
// ------------------------------------
|
40
|
+
// Defining grid layouts
|
41
|
+
|
42
|
+
$layout-large : set-layout(
|
43
|
+
$total-columns-large,
|
44
|
+
$grid-padding : $grid-padding-large,
|
45
|
+
$column-width : $column-width-large,
|
46
|
+
$gutter-width : $gutter-width-large,
|
47
|
+
$at-breakpoint : $breakpoint-large
|
48
|
+
);
|
49
|
+
|
50
|
+
// ------------------------------------
|
51
|
+
// Initializing grid for cleaner output
|
52
|
+
|
53
|
+
@include grid-init();
|
54
|
+
|
55
|
+
// ------------------------------------
|
56
|
+
// Grid layouts
|
57
|
+
|
58
|
+
.page {
|
59
|
+
@include master;
|
60
|
+
@include each-layout {
|
61
|
+
@include master;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.grid {
|
66
|
+
@include container;
|
67
|
+
@include each-layout {
|
68
|
+
@include container;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
%column {
|
73
|
+
background: hotpink;
|
74
|
+
text-align: center;
|
75
|
+
zoom: 1;
|
76
|
+
}
|
77
|
+
|
78
|
+
.small {
|
79
|
+
@extend %column;
|
80
|
+
@include span-columns( 3 ); // 3 of 12 columns
|
81
|
+
@include at-layout( $layout-large ) {
|
82
|
+
@include span-columns( 6 ); // 6 of 18 columns
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.medium {
|
87
|
+
@extend %column;
|
88
|
+
@include span-columns( 6 ); // 9 of 12 columns
|
89
|
+
@include at-layout( $layout-large ) {
|
90
|
+
@include span-columns( 9 ); // 9 of 18 columns
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.large {
|
95
|
+
@extend %column;
|
96
|
+
@include span-columns( 12 ); // 9 of 12 columns
|
97
|
+
@include at-layout( $layout-large ) {
|
98
|
+
@include span-columns( 18 ); // 18 of 18 columns
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frej Raahede Nielsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass
|
@@ -59,15 +59,30 @@ files:
|
|
59
59
|
- sass/ezy/grid/_debug.scss
|
60
60
|
- sass/ezy/grid/_helpers.scss
|
61
61
|
- sass/ezy/grid/_layout.scss
|
62
|
-
- templates/project/
|
62
|
+
- templates/project/assets/config.rb
|
63
|
+
- templates/project/assets/css/screen.css
|
64
|
+
- templates/project/assets/img/test-sprite/alien.png
|
65
|
+
- templates/project/assets/img/test-sprite/classic.png
|
66
|
+
- templates/project/assets/img/test-sprite/indy.png
|
67
|
+
- templates/project/assets/img/test-sprite.png
|
68
|
+
- templates/project/assets/img/test-sprite@2x/classic.png
|
69
|
+
- templates/project/assets/img/test-sprite@2x/indy.png
|
70
|
+
- templates/project/assets/img/test-sprite@2x.png
|
71
|
+
- templates/project/assets/js/html5shiv-3.6.2.js
|
72
|
+
- templates/project/assets/sass/core/_base.scss
|
73
|
+
- templates/project/assets/sass/core/_layouts.scss
|
74
|
+
- templates/project/assets/sass/core/_settings.scss
|
75
|
+
- templates/project/assets/sass/lib/_normalize.scss
|
76
|
+
- templates/project/assets/sass/partials/_sprite-examples.scss
|
77
|
+
- templates/project/assets/sass/screen.scss
|
63
78
|
- templates/project/index.html
|
64
79
|
- templates/project/manifest.rb
|
65
|
-
- templates/project/screen.scss
|
66
80
|
- test/config.rb
|
67
81
|
- test/css/grid/elastic.css
|
68
82
|
- test/css/grid/fluid.css
|
69
83
|
- test/css/grid/gutter.css
|
70
84
|
- test/css/grid/layout/fluid.css
|
85
|
+
- test/css/grid/layout/grid-settings.css
|
71
86
|
- test/css/grid/layout/responsive.css
|
72
87
|
- test/css/grid/layout.css
|
73
88
|
- test/css/grid/offset.css
|
@@ -87,6 +102,7 @@ files:
|
|
87
102
|
- test/scss/grid/fluid.scss
|
88
103
|
- test/scss/grid/gutter.scss
|
89
104
|
- test/scss/grid/layout/fluid.scss
|
105
|
+
- test/scss/grid/layout/grid-settings.scss
|
90
106
|
- test/scss/grid/layout/responsive.scss
|
91
107
|
- test/scss/grid/layout.scss
|
92
108
|
- test/scss/grid/offset.scss
|
@@ -103,6 +119,7 @@ files:
|
|
103
119
|
- test/scss/sprites/size.scss
|
104
120
|
- test/scss/sprites/spacing.scss
|
105
121
|
- test/html/grid/fluid.html
|
122
|
+
- test/html/grid/grid-settings.html
|
106
123
|
- test/html/grid/responsive.html
|
107
124
|
- test/html/sprites/repeat.html
|
108
125
|
- test/html/sprites/responsive.html
|
@@ -161,12 +178,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
178
|
version: '0'
|
162
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
180
|
requirements:
|
164
|
-
- - '
|
181
|
+
- - '>'
|
165
182
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
183
|
+
version: 1.3.1
|
167
184
|
requirements: []
|
168
185
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.1.
|
186
|
+
rubygems_version: 2.1.10
|
170
187
|
signing_key:
|
171
188
|
specification_version: 4
|
172
189
|
summary: The developer's toolbox for responsive websites
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// ---------------------------------------------------------------------------
|
2
|
-
// Imports
|
3
|
-
|
4
|
-
@import "ezy";
|
5
|
-
|
6
|
-
// -----------------------------------------------------------
|
7
|
-
// Required grid settings
|
8
|
-
|
9
|
-
$column-width: 40px; // column width
|
10
|
-
$gutter-width: 30px; // space between columns
|
11
|
-
$total-columns: 12; // max number of columns occuring
|
12
|
-
@include grid-init; // doing some background magic for you
|
13
|
-
|
14
|
-
// -----------------------------------------------------------
|
15
|
-
// Grid layouts (column count)
|
16
|
-
|
17
|
-
$columns-small: 4;
|
18
|
-
$columns-medium: 8;
|
19
|
-
$columns-large: 12;
|
20
|
-
|
21
|
-
// -----------------------------------------------------------
|
22
|
-
// Responsive settings
|
23
|
-
|
24
|
-
// Widths for use in media queries
|
25
|
-
$width-small: context-width( $columns-small );
|
26
|
-
$width-medium: context-width( $columns-medium );
|
27
|
-
$width-large: context-width( $columns-large );
|
28
|
-
|
29
|
-
// Defining media query breakpoints
|
30
|
-
$breakpoint-small: set-breakpoint( $max: $width-small );
|
31
|
-
$breakpoint-medium: set-breakpoint( $min: $width-small+1 );
|
32
|
-
$breakpoint-large: set-breakpoint( $min: $width-medium+1, $legacy-support: true ); // Support for legacy browsers
|
@@ -1,40 +0,0 @@
|
|
1
|
-
// ---------------------------------------------------------------------------
|
2
|
-
// Imports
|
3
|
-
|
4
|
-
@import "layout";
|
5
|
-
|
6
|
-
/* -------------------------------------------------------------------------*/
|
7
|
-
/* Layout: mobile first */
|
8
|
-
|
9
|
-
body {
|
10
|
-
margin: 0;
|
11
|
-
padding: 0;
|
12
|
-
}
|
13
|
-
|
14
|
-
.page {
|
15
|
-
@include master( $columns-large ); // Sets max-width
|
16
|
-
padding: {
|
17
|
-
left: $gutter-width / 2;
|
18
|
-
right: $gutter-width / 2;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
.grid {
|
23
|
-
@include container( $columns-small );
|
24
|
-
@include at-breakpoint( $breakpoint-medium ) {
|
25
|
-
@include container( $columns-medium, $at-breakpoint: true );
|
26
|
-
}
|
27
|
-
@include at-breakpoint( $breakpoint-large ) {
|
28
|
-
@include container( $columns-large, $at-breakpoint: true );
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
.column {
|
33
|
-
@include span-columns( 4, $context: $columns-small);
|
34
|
-
@include at-breakpoint( $breakpoint-medium ) {
|
35
|
-
@include span-columns( 4, $context: $columns-medium, $at-breakpoint: true);
|
36
|
-
}
|
37
|
-
@include at-breakpoint( $breakpoint-large ) {
|
38
|
-
@include span-columns( 4, $context: $columns-large, $at-breakpoint: true);
|
39
|
-
}
|
40
|
-
}
|