edge_framework 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/edge.gemspec CHANGED
@@ -16,10 +16,10 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_dependency "sass", [">= 3.2.0"]
20
- s.add_dependency "compass", [">= 0.12.0"]
19
+ s.add_dependency "sass", "~> 3.2"
20
+ s.add_dependency "compass", "~> 0.12"
21
21
 
22
22
  s.add_development_dependency "bundler", "~> 1.3"
23
- s.add_development_dependency "rake"
24
- s.add_development_dependency "rspec"
25
- end
23
+ s.add_development_dependency "rake", "~> 10.3"
24
+ s.add_development_dependency "rspec", "~> 2.14"
25
+ end
data/lib/edge/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Edge
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  CODENAME = "Ezalor"
4
4
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edge_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henner Setyono
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.0
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: compass
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.12.0
33
+ version: '0.12'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.12.0
40
+ version: '0.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,30 +56,30 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '10.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '10.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '2.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '2.14'
83
83
  description: Minimalist SASS Framework
84
84
  email:
85
85
  - henner@setyono.net
@@ -109,7 +109,6 @@ files:
109
109
  - assets/sass/edge/components/_code.scss
110
110
  - assets/sass/edge/components/_form.scss
111
111
  - assets/sass/edge/components/_grid.scss
112
- - assets/sass/edge/components/_grid_old.scss
113
112
  - assets/sass/edge/components/_normalize.scss
114
113
  - assets/sass/edge/components/_print.scss
115
114
  - assets/sass/edge/components/_tile.scss
@@ -1,346 +0,0 @@
1
- // =============
2
- // EDGE GRID
3
- // =============
4
- // Based on Foundation 4 by ZURB
5
-
6
- $row-max-width : 1140px !default;
7
- $total-columns : 12 !default;
8
- $column-gutter : 20px !default;
9
-
10
- // Calculate percentages for grid
11
- @function gridCalc($colNumber, $totalColumns) {
12
- @return percentage($colNumber / $totalColumns);
13
- }
14
-
15
- // ---------------------------------
16
- // GRID ROW
17
- // - Create container for the grid
18
- // ---------------------------------
19
-
20
- @mixin row(
21
- $gutter : $column-gutter,
22
- $width : $row-max-width,
23
- $nest : false,
24
- $collapse : false,
25
- $for-base : false ) {
26
-
27
- @if $for-base {
28
- margin: 0 auto;
29
- width: 100%;
30
- max-width: $width + $gutter;
31
-
32
- @if not $responsive {
33
- min-width: $width + $gutter;
34
- }
35
- @include clearfix;
36
- }
37
-
38
- // If gutter is passed as param, calculate it
39
- @if $gutter != $column-gutter {
40
- max-width: $width + $gutter;
41
-
42
- @if not $responsive {
43
- min-width: $width + $gutter;
44
- }
45
- }
46
-
47
- @if $nest and $collapse {
48
- margin: 0;
49
- padding-right: 0;
50
- padding-left: 0;
51
- width: auto;
52
- max-width: none;
53
-
54
- @if not $responsive {
55
- min-width: 0;
56
- }
57
- }
58
-
59
- @else if $nest {
60
- margin-right: -($gutter / 2);
61
- margin-left: -($gutter / 2);
62
- width: auto;
63
- max-width: none;
64
-
65
- @if not $responsive {
66
- min-width: 0;
67
- }
68
- }
69
-
70
- @else if $collapse {
71
- margin: 0 auto;
72
- width: 100%;
73
- max-width: $width;
74
-
75
- @if not $responsive {
76
- min-width: $width;
77
- }
78
- }
79
-
80
- @if $external-call {
81
- .row & {
82
- margin-right: -($gutter / 2);
83
- margin-left: -($gutter / 2);
84
- }
85
- }
86
- }
87
-
88
- // ----------------------------------------------
89
- // Calculate size for column created externally
90
- //-----------------------------------------------
91
- @mixin external-call-column(
92
- $column : 0,
93
- $total : 0,
94
- $offset : 0,
95
- $parent-offset : 0) {
96
-
97
- @if $column > 0 {
98
- width: gridCalc($column, $total);
99
- } @else {
100
- width: 100%;
101
- }
102
-
103
- // Offset is only allowed if the column is specified
104
- @if $column > 0 and $offset > 0 {
105
- margin-#{$default-float}: gridCalc($offset, $total);
106
- }
107
- // If parent (larger) column has offset, remove it
108
- @else if $parent-offset > 0 {
109
- margin-#{$default-float}: 0;
110
- }
111
- }
112
-
113
- // ----------------------------------
114
- // Prevent duplicate in column
115
- // ----------------------------------
116
- @mixin source-ordering-column(
117
- $push : 0,
118
- $pull : 0,
119
- $total : 0) {
120
-
121
- @if $push > 0 {
122
- #{$default-float}: gridCalc($push, $total);
123
- #{$default-opposite}: auto;
124
- }
125
- @if $pull > 0 {
126
- #{$default-opposite}: gridCalc($pull, $total);
127
- #{$default-float}: auto;
128
- }
129
- }
130
-
131
- // --------------------------------------
132
- // Prevent duplicate in the base output
133
- // --------------------------------------
134
- @mixin source-ordering-output() {
135
- @for $i from 1 through $total-columns - 1 {
136
- .large-offset-#{$i} {
137
- @include column($large-offset:$i);
138
- }
139
- .push#{-$i} {
140
- @include column($push:$i);
141
- }
142
- .pull#{-$i} {
143
- @include column($pull:$i);
144
- }
145
- }
146
- }
147
-
148
- // ------------------------
149
- // GRID COLUMN
150
- // - Create the grid
151
- // ------------------------
152
- @mixin column(
153
- $large : 0,
154
- $small : 0, // For external call only, small size screen
155
- $mini : 0, // For external call only, mini size screen
156
- $large-offset : 0,
157
- $small-offset : 0, // For external call only
158
- $mini-offset : 0, // For external call only
159
- $push : 0,
160
- $pull : 0,
161
- $collapse : false,
162
- $centered : false,
163
- $gutter : $column-gutter,
164
- $total : $total-columns,
165
- $for-base : false ) {
166
-
167
- @if $for-base {
168
- position: relative;
169
- float: $default-float;
170
- padding-right: $gutter / 2;
171
- padding-left: $gutter / 2;
172
- }
173
-
174
- // If gutter's value is different from default, it means it is passed as param
175
- @if $gutter != $column-gutter {
176
- padding-right: $gutter / 2;
177
- padding-left: $gutter / 2;
178
- }
179
-
180
- // If collapsed, get rid of distance padding
181
- @if $collapse {
182
- padding-right: 0;
183
- padding-left: 0;
184
- }
185
-
186
- // If offset, calculate appropriate margins
187
- @if $large-offset > 0 {
188
- margin-#{$default-float}: gridCalc($large-offset, $total);
189
- }
190
-
191
- // If a column number is given, calculate width
192
- @if $large > 0 {
193
- width: gridCalc($large, $total);
194
- }
195
-
196
- // Source Ordering, adds left/right depending on which you use.
197
- @if $external-call and $responsive {
198
- @include above(small) {
199
- @include source-ordering-column($push:$push, $pull:$pull, $total:$total);
200
- }
201
- } @else {
202
- @include source-ordering-column($push:$push, $pull:$pull, $total:$total);
203
- }
204
-
205
- // If centered, get rid of float and add auto margin
206
- @if $centered {
207
- display: block;
208
- float: none;
209
- margin-right: auto !important;
210
- margin-left: auto !important;
211
- }
212
-
213
- // If external call and responsive is true
214
- @if $external-call and $responsive {
215
- // If small column is specified
216
- @if $small > 0 {
217
- @include below(small) {
218
- @include external-call-column($column:$small, $total:$total, $offset:$small-offset, $parent-offset:$large-offset);
219
- }
220
-
221
- @if $mini > 0 {
222
- @include below(mini) {
223
- @include external-call-column($column:$mini, $total:$total, $offset:$mini-offset, $parent-offset:$small-offset);
224
- }
225
- }
226
- }
227
- // If small is not passed, stack the column
228
- @else {
229
- @include below(small) {
230
- @include external-call-column($column:$small, $total:$total, $offset:$small-offset, $parent-offset:$large-offset);
231
- }
232
- }
233
- }
234
-
235
- // Create notes when on debug
236
- @if $debug and $external-call {
237
- $notes: "large-#{$large}";
238
- @if $large-offset > 0 {
239
- $notes: $notes + " large-offset-#{$large-offset}";
240
- }
241
- @if $small > 0 {
242
- $notes: $notes + " small-#{$small}";
243
- }
244
- @if $small-offset > 0 {
245
- $notes: $notes + " small-offset-#{$small-offset}";
246
- }
247
- @if $mini > 0 {
248
- $notes: $notes + " mini-#{$mini}";
249
- }
250
- @if $mini-offset > 0 {
251
- $notes: $notes + " mini-offset-#{$mini-offset}";
252
- }
253
- @if $push > 0 {
254
- $notes: $notes + " push-#{$push}";
255
- }
256
- @if $pull > 0 {
257
- $notes: $notes + " pull-#{$pull}";
258
- }
259
- @if $centered {
260
- $notes: $notes + " centered";
261
- }
262
- h-column: $notes;
263
- }
264
- }
265
-
266
- @if $include-grid and not $external-call {
267
-
268
- /* ------------
269
- EDGE Grid
270
- ------------ */
271
-
272
- // Normal row
273
- .row {
274
- @include row($for-base:true);
275
-
276
- // Collapsed row
277
- &.collapse {
278
- @include row($collapse:true);
279
- .column,
280
- .columns {
281
- @include column($collapse:true);
282
- }
283
- }
284
-
285
- // Nested-collapsed row
286
- .row {
287
- @include row($nest:true);
288
- &.collapse {
289
- @include row($nest:true, $collapse:true);
290
- }
291
- }
292
- }
293
-
294
- // Normal column
295
- .column,
296
- .columns {
297
- @include column($large:$total-columns, $for-base:true);
298
- }
299
-
300
- @for $i from 1 through $total-columns {
301
- .large#{-$i} { @include column($large:$i); }
302
- }
303
-
304
- // Centered column
305
- .column.large-centered,
306
- .columns.large-centered {
307
- @include column($centered:true);
308
- }
309
-
310
- // Source Ordering
311
- @if $responsive {
312
- @include above(small) {
313
- @include source-ordering-output();
314
- }
315
- } @else {
316
- @include source-ordering-output();
317
- }
318
-
319
- @if $responsive {
320
- // Small screen and below
321
- @include below(small) {
322
- .column,
323
- .columns {
324
- @include column($large:$total-columns);
325
- }
326
- @for $i from 1 through $total-columns {
327
- .small#{-$i} {
328
- @include column($large:$i);
329
- }
330
- }
331
-
332
- @for $i from 0 through $total-columns - 2 {
333
- .small-offset-#{$i} {
334
- @include column($large-offset:$i);
335
- }
336
- }
337
-
338
- .column.small-centered,
339
- .columns.small-centered {
340
- @include column($centered:true);
341
- }
342
- }
343
-
344
- } // responsive
345
-
346
- } // $include-grid