edge_framework 1.4.1 → 2.0.0.a

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.
@@ -1,6 +1,25 @@
1
1
  @import "../sass/edge/base";
2
2
  @import "../sass/edge/helpers";
3
3
 
4
+ @mixin crow(
5
+ $gutter: 0,
6
+ $collapse: 0,
7
+ $width: 0
8
+ ) {
9
+
10
+ }
11
+
12
+ @mixin ccolumn(
13
+ $size: 0,
14
+ $small: 0,
15
+ $mini: 0,
16
+ $offset: 0,
17
+ $gutter: 0,
18
+ $collapse: false,
19
+ $centered: false
20
+ ) {
21
+
22
+ }
4
23
 
5
24
  .custom-grid {
6
25
  @include column(3);
@@ -24,105 +43,14 @@
24
43
  }
25
44
  }
26
45
 
27
- [data-page="visibility"] {
28
-
29
- .visibility-class,
30
- .visibility-mixin {
31
- p:nth-child(1) {
32
- color: $red-color;
33
- }
34
- p:nth-child(2) {
35
- color: $blue-color;
36
- }
37
- p:nth-child(3) {
38
- color: $green-color;
39
- }
40
- p:nth-child(4) {
41
- color: $yellow-color;
42
- }
43
- p:nth-child(5) {
44
- color: #333;
45
- }
46
- p:nth-child(6) {
47
- color: #bbb;
48
- }
49
- }
50
-
51
- .visibility-table {
52
- table:nth-child(1) td {
53
- color: $red-color;
54
- }
55
- table:nth-child(2) td {
56
- color: $blue-color;
57
- }
58
- table:nth-child(3) td {
59
- color: $green-color;
60
- }
61
- table:nth-child(4) td {
62
- color: $yellow-color;
63
- }
64
- table:nth-child(5) td {
65
- color: #333;
66
- }
67
- table:nth-child(6) td {
68
- color: #bbb;
69
- }
70
- }
71
-
72
- .visibility-td {
73
- table:nth-child(1) td {
74
- color: $red-color;
75
- }
76
- table:nth-child(2) td {
77
- color: $blue-color;
78
- }
79
- table:nth-child(3) td {
80
- color: $green-color;
81
- }
82
- table:nth-child(4) td {
83
- color: $yellow-color;
84
- }
85
- table:nth-child(5) td {
86
- color: #333;
87
- }
88
- table:nth-child(6) td {
89
- color: #bbb;
90
- }
91
- table td[class*="-for-"] {
92
- color: #222;
93
- }
94
- }
95
-
96
- .visibility-span {
97
- p:nth-child(1) span {
98
- color: $red-color;
99
- }
100
- p:nth-child(2) span {
101
- color: $blue-color;
102
- }
103
- p:nth-child(3) span {
104
- color: $green-color;
105
- }
106
- p:nth-child(4) span {
107
- color: $yellow-color;
108
- }
109
- p:nth-child(5) span {
110
- color: #333;
111
- }
112
- p:nth-child(6) span {
113
- color: #bbb;
114
- }
115
- }
116
- }
117
-
118
46
  .demo-grid {
119
47
  @include transition($g-transition);
120
48
  p {
121
49
  text-align : center;
122
50
  margin : 0;
123
51
  }
124
- .column,
125
- .columns {
52
+
53
+ h-column {
126
54
  p {
127
55
  margin-bottom : em(15px);
128
56
  padding-top : em(10px);
@@ -131,14 +59,12 @@
131
59
  text-align : center;
132
60
  }
133
61
 
134
- .column,
135
- .columns {
62
+ h-column {
136
63
  p {
137
64
  background : #ddd;
138
65
  }
139
66
 
140
- .column,
141
- .columns {
67
+ h-column {
142
68
  p {
143
69
  background : #ccc;
144
70
  }
@@ -148,6 +74,12 @@
148
74
  }
149
75
 
150
76
  .demo-tile {
77
+ @include tile(2);
78
+
79
+ @include below(small) {
80
+ @include tile(3);
81
+ }
82
+
151
83
  p {
152
84
  background : #eee;
153
85
  margin-bottom : em(15px);
@@ -159,28 +91,22 @@
159
91
 
160
92
 
161
93
  /* Custom Grid */
162
- .cgrid-1 {
163
- @include column($size:5);
164
- }
165
- .cgrid-2 {
166
- @include column($size:7);
167
- }
168
94
 
169
- .cgrid-a1 {
170
- @include column($size:5, $small:10);
171
- }
172
- .cgrid-a2 {
173
- @include column($size:7, $small:2);
174
- }
95
+ .cgrid-l1 { @include column(5); }
96
+ .cgrid-l2 { @include column(7); }
97
+
98
+ .cgrid-ls1 { @include column(5, 10); }
99
+ .cgrid-ls2 { @include column(7, 2); }
175
100
 
176
101
  .cgrid-center {
177
- @include column($size: 8, $centered: true);
102
+ @include column(8, $centered: true);
103
+
178
104
  @include below(small) {
179
- @include column($size: 6, $centered: false);
105
+ @include column(6, $centered: false);
180
106
  }
181
107
  }
182
108
 
183
- .cgrid-b1 {
109
+ .cgrid-losom1 {
184
110
  @include column(10, $offset: 2);
185
111
 
186
112
  @include below(small) {
@@ -188,88 +114,52 @@
188
114
  }
189
115
 
190
116
  @include below(mini) {
191
- @include column(4, $offset: 1)
117
+ @include column(4);
192
118
  }
193
119
  }
194
- .cgrid-b2 {
195
- @include column($size:2, $small:4, $mini:6);
196
- }
197
120
 
198
- .cgrid-c1 {
199
- @include column($size:6, $offset:4, $small:6);
200
- }
201
- .cgrid-c2 {
202
- @include column($size:2, $small:6);
203
- }
121
+ .cgrid-lsm1 { @include column(4, 6, 8); }
122
+ .cgrid-lsm2 { @include column(8, 6, 4); }
204
123
 
205
- .cgrid-d1 {
206
- @include column($size:3, $offset:6);
124
+ .cgrid-los1 { @include column(6, 6, $offset:4); }
125
+ .cgrid-los2 { @include column(2, 6); }
207
126
 
208
- @include below(small) {
209
- @include column($size:4, $offset:6);
210
- }
211
- }
212
- .cgrid-d2 {
213
- @include column($size:3, $small:4);
214
- }
127
+ // Nesting
215
128
 
216
- // .cgrid-e1 {
217
- // @include column($size:3, $offset:6, $small:4, $small-offset:4, $mini:6);
218
- // }
219
- // .cgrid-e2 {
220
- // @include column($size:3, $small:4, $mini:6);
221
- // }
222
-
223
- // .cgrid-f1 {
224
- // @include column($size:3, $offset:6, $small:4, $small-offset:4, $mini:5);
225
- // }
226
- // .cgrid-f2 {
227
- // @include column($size:3, $small:4, $mini:6);
228
- // }
229
-
230
- .cgrid-g1 {
231
- @include column($size:4, $push:8);
232
- }
233
- .cgrid-g2 {
234
- @include column($size:8, $pull:4);
235
- }
129
+ .cgrid-nest1 { @include column(6, 6); }
130
+ .cgrid-nest1-1 { @include column(8, 8); }
131
+ .cgrid-nest1-2 { @include column(4, 4); }
132
+ .cgrid-nest2 { @include column(4, 4); }
133
+ .cgrid-nest3 { @include column(2, 2); }
134
+ .cgrid-c { @include row($collapse: true); }
236
135
 
237
- .cgrid-h1 {
238
- @include column($size:8, $small:8);
239
- }
240
- .cgrid-h1-1 {
241
- @include column($size:5, $small:5);
242
- }
243
- .cgrid-h1-2 {
244
- @include column($size:7, $small:7);
245
- }
246
- .cgrid-h2 {
247
- @include column($size:4, $small:4);
248
- }
249
- .cgrid-h2-1 {
250
- @include column($size:6, $small:6, $centered:true);
251
- }
136
+ // Gutter
252
137
 
253
- .cgrid-i0 {
254
- @include row($gutter:50px);
255
- }
256
- .cgrid-i1 {
257
- @include column($size:6, $gutter:50px);
138
+ .cgrid-gutter-r1 {
139
+ @include row($gutter: 50px, $width: 960px);
258
140
  }
259
- .cgrid-i2 {
260
- @include column($size:6, $gutter:50px);
141
+
142
+ .cgrid-gutter-r2 {
143
+ @include row($gutter: 10px);
261
144
  }
262
145
 
146
+ .cgrid-gutter1 { @include column(8, 6); }
147
+ .cgrid-gutter2 { @include column(4, 6); }
148
+
263
149
  /* Custom Tile */
264
- .custom-tile-1 {
265
- @include tile($size:5);
150
+ .ctile-1 {
151
+ @include tile(5, $gutter: 5px);
266
152
  }
267
153
 
268
- .custom-tile-2 {
269
- @include tile($size:5, $small:3, $collapse:true);
154
+ .ctile-2 {
155
+ @include tile(5, $collapse: true);
156
+
157
+ @include below(small) {
158
+ @include tile(3);
159
+ }
270
160
  }
271
161
 
272
- .custom-tile-3 {
162
+ .ctile-3 {
273
163
  @include tile(5, 3, 2);
274
164
  }
275
165
 
@@ -303,42 +193,4 @@
303
193
  .triangle1 {
304
194
  @include triangle($color:$main-color, $width:100px, $direction:right);
305
195
  }
306
- }
307
-
308
- [data-page="button"] {
309
- .button {
310
- margin-top: 20px;
311
-
312
- &.blue-button {
313
- @include button($blue-color);
314
- }
315
-
316
- &.red-button {
317
- @include button($red-color);
318
- }
319
-
320
- &.green-button {
321
- @include button($green-color);
322
- }
323
-
324
- &.yellow-button {
325
- @include button($yellow-color);
326
- }
327
-
328
- &.white-button {
329
- @include button(#f0f0f0);
330
- }
331
-
332
- &.grey-button {
333
- @include button(#bbb);
334
- }
335
-
336
- &.darkgrey-button {
337
- @include button(#777);
338
- }
339
-
340
- &.black-button {
341
- @include button(#333);
342
- }
343
- }
344
196
  }
data/edge.gemspec CHANGED
@@ -5,9 +5,10 @@ Gem::Specification.new do |s|
5
5
  s.name = "edge_framework"
6
6
  s.version = Edge::VERSION
7
7
  s.authors = ["Henner Setyono"]
8
- s.email = ["henner@setyono.net"]
9
- s.description = %q{Minimalist SASS Framework}
10
- s.summary = %q{Minimalist SASS Framework for creating website from scratch}
8
+ s.email = ["henner.renardi@gmail.com"]
9
+ s.description = %q{Lightweight SASS Framework}
10
+ s.summary = %q{Lightweight SASS Framework for creating website from scratch}
11
+
11
12
  s.homepage = "http://edge.setyono.net"
12
13
  s.license = "MIT"
13
14
 
@@ -16,7 +17,7 @@ Gem::Specification.new do |s|
16
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
18
  s.require_paths = ["lib"]
18
19
 
19
- s.add_dependency "sass", "~> 3.2"
20
+ s.add_dependency "sass", "~> 3.4"
20
21
  s.add_dependency "compass", "~> 1.0"
21
22
  s.add_dependency "premailer", "~> 1.8"
22
23
 
data/lib/edge/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Edge
2
- VERSION = "1.4.1"
3
- CODENAME = "Furion"
4
- end
2
+ VERSION = "2.0.0.a"
3
+ CODENAME = "Gondar"
4
+ end
@@ -0,0 +1,20 @@
1
+ /*
2
+ Edge Framework JS
3
+ - temporary until organized better
4
+ */
5
+
6
+ var edgeFramework = {
7
+ init: function() {
8
+ webComponent();
9
+ },
10
+ webComponent: function() {
11
+ if("registerElement" in document) {
12
+ document.createElement("h-row");
13
+ document.createElement("h-column");
14
+ document.createElement("h-tile");
15
+ document.createElement("h-ti");
16
+ }
17
+ }
18
+ };
19
+
20
+ edgeFramework.init();