edge_framework 0.9.0 → 0.9.9

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.
Files changed (37) hide show
  1. data/README.md +6 -10
  2. data/assets/js/edge/edge.animate.js +0 -0
  3. data/assets/sass/edge/_base.scss +34 -22
  4. data/assets/sass/edge/_components.scss +5 -4
  5. data/assets/sass/edge/_helpers.scss +2 -14
  6. data/assets/sass/edge/components/_animate.scss +151 -0
  7. data/assets/sass/edge/components/_button.scss +98 -41
  8. data/assets/sass/edge/components/_code.scss +170 -166
  9. data/assets/sass/edge/components/_form.scss +77 -76
  10. data/assets/sass/edge/components/_grid.scss +15 -12
  11. data/assets/sass/edge/components/_normalize.scss +60 -59
  12. data/assets/sass/edge/components/_print.scss +73 -70
  13. data/assets/sass/edge/components/_tile.scss +24 -10
  14. data/assets/sass/edge/components/_typography.scss +127 -138
  15. data/assets/sass/edge/components/_visibility.scss +156 -44
  16. data/assets/sass/edge/helpers/_sprites.scss +75 -63
  17. data/assets/sass/edge/helpers/_sticky-footer.scss +26 -31
  18. data/assets/sass/edge.scss +1 -1
  19. data/assets/sass/for-test.scss +247 -151
  20. data/assets/test.html +323 -11
  21. data/edge.gemspec +17 -18
  22. data/lib/edge/engine.rb +19 -0
  23. data/lib/edge/message.rb +32 -29
  24. data/lib/edge/sprockets.rb +4 -0
  25. data/lib/edge/version.rb +2 -2
  26. data/lib/edge_framework.rb +63 -67
  27. data/template/base/assets/js/app.js +1 -1
  28. data/template/base/assets/sass/_setting.scss +35 -35
  29. data/template/base/config.rb +1 -1
  30. data/template/html/index.html +3 -3
  31. data/template/php/partials/footer.php +2 -2
  32. data/template/wordpress/footer.php +2 -3
  33. metadata +8 -24
  34. data/assets/sass/edge/components/_block-grid-margin.scss +0 -112
  35. data/assets/sass/edge/components/_grid-margin.scss +0 -309
  36. data/assets/sass/edge/components/_grid-old.scss +0 -287
  37. data/lib/edge/console.rb +0 -15
@@ -7,39 +7,34 @@
7
7
  // ...
8
8
  // <div id="footer-push"></div>
9
9
  // </div>
10
- // <footer class=".main-footer"></footer>
10
+ // <footer class="main-footer"></footer>
11
11
  // </body>
12
12
  // -----------------------------------------
13
13
 
14
- @mixin sticky-footer($height,
15
- $wrapper : '#main-wrapper',
16
- $footer-push : '#footer-push',
17
- $footer : '.main-footer',
18
- $containerize : false) {
19
- html, body {
20
- height : 100%;
21
- @if $containerize { background-color: #eee; }
22
- }
23
- #{$wrapper} {
24
- min-height : 100%;
25
- height : auto !important;
26
- height : 100%;
27
- margin : 0 auto ($height * -1);
28
- @if $containerize {
29
- max-width : 1440px;
30
- background : $body-bg;
31
- @include box-shadow(0px 0px 20px rgba(black, 0.2) );
32
- }
33
- }
34
- #{$footer}, #{$footer-push} {
35
- margin : 0 auto;
36
- height : $height;
37
- @if $containerize {
38
- max-width : 1440px;
39
- }
40
- }
14
+ @mixin sticky-footer(
15
+ $height,
16
+ $wrapper : "#main-wrapper",
17
+ $footer-push : "#footer-push",
18
+ $footer : ".main-footer" ) {
41
19
 
42
- #{$footer} {
43
- height : auto;
44
- }
20
+ html, body {
21
+ height : 100%;
22
+ }
23
+
24
+ #{$wrapper} {
25
+ min-height: 100%;
26
+ height: auto !important;
27
+ height: 100%;
28
+ margin: 0 auto ($height * -1);
29
+ }
30
+
31
+ #{$footer},
32
+ #{$footer-push} {
33
+ margin: 0 auto;
34
+ height: $height;
35
+ }
36
+
37
+ #{$footer} {
38
+ height : auto;
39
+ }
45
40
  }
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------
2
2
  - EDGE Framework - edge.setyono.net
3
- - v0.9.0 (Banehallow)
3
+ - v0.9.9 (Crixalis)
4
4
  ------------------------------------- */
5
5
 
6
6
  @import "edge/base";
@@ -3,100 +3,223 @@
3
3
 
4
4
 
5
5
  .custom-grid {
6
- @include grid-column($large:3);
6
+ @include grid-column($large:3);
7
+ }
8
+
9
+ [data-page="animate"] {
10
+ .box1 {
11
+ background: red;
12
+ width: 50px;
13
+ height: 50px;
14
+ }
15
+ }
16
+
17
+ [data-page="visibility"] {
18
+
19
+ .visibility-class,
20
+ .visibility-mixin {
21
+ p:nth-child(1) {
22
+ color: $red-color;
23
+ }
24
+ p:nth-child(2) {
25
+ color: $blue-color;
26
+ }
27
+ p:nth-child(3) {
28
+ color: $green-color;
29
+ }
30
+ p:nth-child(4) {
31
+ color: $yellow-color;
32
+ }
33
+ p:nth-child(5) {
34
+ color: #333;
35
+ }
36
+ p:nth-child(6) {
37
+ color: #bbb;
38
+ }
39
+ }
40
+
41
+ .visibility-table {
42
+ table:nth-child(1) td {
43
+ color: $red-color;
44
+ }
45
+ table:nth-child(2) td {
46
+ color: $blue-color;
47
+ }
48
+ table:nth-child(3) td {
49
+ color: $green-color;
50
+ }
51
+ table:nth-child(4) td {
52
+ color: $yellow-color;
53
+ }
54
+ table:nth-child(5) td {
55
+ color: #333;
56
+ }
57
+ table:nth-child(6) td {
58
+ color: #bbb;
59
+ }
60
+ }
61
+
62
+ .visibility-td {
63
+ table:nth-child(1) td {
64
+ color: $red-color;
65
+ }
66
+ table:nth-child(2) td {
67
+ color: $blue-color;
68
+ }
69
+ table:nth-child(3) td {
70
+ color: $green-color;
71
+ }
72
+ table:nth-child(4) td {
73
+ color: $yellow-color;
74
+ }
75
+ table:nth-child(5) td {
76
+ color: #333;
77
+ }
78
+ table:nth-child(6) td {
79
+ color: #bbb;
80
+ }
81
+ table td[class*="-for-"] {
82
+ color: #222;
83
+ }
84
+ }
85
+
86
+ .visibility-span {
87
+ p:nth-child(1) span {
88
+ color: $red-color;
89
+ }
90
+ p:nth-child(2) span {
91
+ color: $blue-color;
92
+ }
93
+ p:nth-child(3) span {
94
+ color: $green-color;
95
+ }
96
+ p:nth-child(4) span {
97
+ color: $yellow-color;
98
+ }
99
+ p:nth-child(5) span {
100
+ color: #333;
101
+ }
102
+ p:nth-child(6) span {
103
+ color: #bbb;
104
+ }
105
+ }
106
+
107
+ .hfl {
108
+ @include hide-for(large);
109
+ }
110
+
111
+ .hfs {
112
+ @include hide-for(small);
113
+ }
114
+
115
+ .hfm {
116
+ @include hide-for(mini);
117
+ }
118
+
119
+ .sfl {
120
+ @include show-for(large);
121
+ }
122
+
123
+ .sfs {
124
+ @include show-for(small);
125
+ }
126
+
127
+ .sfm {
128
+ @include show-for(mini);
129
+ }
7
130
  }
8
131
 
9
132
  .demo-grid {
10
- @include transition($g-transition);
11
- p {
12
- text-align : center;
13
- margin : 0;
14
- }
15
- .column,
16
- .columns {
17
- p {
18
- margin-bottom : em(15px);
19
- padding-top : em(10px);
20
- padding-bottom : em(10px);
21
- background : #eee;
22
- text-align : center;
23
- }
24
-
25
- .column,
26
- .columns {
27
- p {
28
- background : #ddd;
29
- }
30
-
31
- .column,
32
- .columns {
33
- p {
34
- background : #ccc;
35
- }
36
- }
37
- }
38
- }
133
+ @include transition($g-transition);
134
+ p {
135
+ text-align : center;
136
+ margin : 0;
137
+ }
138
+ .column,
139
+ .columns {
140
+ p {
141
+ margin-bottom : em(15px);
142
+ padding-top : em(10px);
143
+ padding-bottom : em(10px);
144
+ background : #eee;
145
+ text-align : center;
146
+ }
147
+
148
+ .column,
149
+ .columns {
150
+ p {
151
+ background : #ddd;
152
+ }
153
+
154
+ .column,
155
+ .columns {
156
+ p {
157
+ background : #ccc;
158
+ }
159
+ }
160
+ }
161
+ }
39
162
  }
40
163
 
41
164
  .demo-tile {
42
- p {
43
- background : #eee;
44
- margin-bottom : em(15px);
45
- padding-top : em(10px);
46
- padding-bottom : em(10px);
47
- text-align : center;
48
- }
165
+ p {
166
+ background : #eee;
167
+ margin-bottom : em(15px);
168
+ padding-top : em(10px);
169
+ padding-bottom : em(10px);
170
+ text-align : center;
171
+ }
49
172
  }
50
173
 
51
174
 
52
175
  /* Custom Grid */
53
176
  .cgrid-1 {
54
- @include grid-column($large:5);
177
+ @include grid-column($large:5);
55
178
  }
56
179
  .cgrid-2 {
57
- @include grid-column($large:7);
180
+ @include grid-column($large:7);
58
181
  }
59
182
 
60
183
  .cgrid-a1 {
61
- @include grid-column($large:5, $small:10);
184
+ @include grid-column($large:5, $small:10);
62
185
  }
63
186
  .cgrid-a2 {
64
- @include grid-column($large:7, $small:2);
187
+ @include grid-column($large:7, $small:2);
65
188
  }
66
189
 
67
190
  .cgrid-b1 {
68
- @include grid-column($large:10, $small:8, $mini:6);
191
+ @include grid-column($large:10, $small:8, $mini:6);
69
192
  }
70
193
  .cgrid-b2 {
71
- @include grid-column($large:2, $small:4, $mini:6);
194
+ @include grid-column($large:2, $small:4, $mini:6);
72
195
  }
73
196
 
74
197
  .cgrid-c1 {
75
- @include grid-column($large:6, $large-offset:4, $small:6);
198
+ @include grid-column($large:6, $large-offset:4, $small:6);
76
199
  }
77
200
  .cgrid-c2 {
78
- @include grid-column($large:2, $small:6);
201
+ @include grid-column($large:2, $small:6);
79
202
  }
80
203
 
81
204
  .cgrid-d1 {
82
- @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4);
205
+ @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4);
83
206
  }
84
207
  .cgrid-d2 {
85
- @include grid-column($large:3, $small:4);
208
+ @include grid-column($large:3, $small:4);
86
209
  }
87
210
 
88
211
  .cgrid-e1 {
89
- @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4, $mini:6);
212
+ @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4, $mini:6);
90
213
  }
91
214
  .cgrid-e2 {
92
- @include grid-column($large:3, $small:4, $mini:6);
215
+ @include grid-column($large:3, $small:4, $mini:6);
93
216
  }
94
217
 
95
218
  .cgrid-f1 {
96
- @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4, $mini:5, $mini-offset:1);
219
+ @include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4, $mini:5, $mini-offset:1);
97
220
  }
98
221
  .cgrid-f2 {
99
- @include grid-column($large:3, $small:4, $mini:6);
222
+ @include grid-column($large:3, $small:4, $mini:6);
100
223
  }
101
224
 
102
225
  .cgrid-g1 {
@@ -107,126 +230,99 @@
107
230
  }
108
231
 
109
232
  .cgrid-h1 {
110
- @include grid-column($large:8, $small:8);
111
- }
112
- .cgrid-h1-1 {
113
- @include grid-column($large:5, $small:5);
114
- }
115
- .cgrid-h1-2 {
116
- @include grid-column($large:7, $small:7);
117
- }
233
+ @include grid-column($large:8, $small:8);
234
+ }
235
+ .cgrid-h1-1 {
236
+ @include grid-column($large:5, $small:5);
237
+ }
238
+ .cgrid-h1-2 {
239
+ @include grid-column($large:7, $small:7);
240
+ }
118
241
  .cgrid-h2 {
119
- @include grid-column($large:4, $small:4);
242
+ @include grid-column($large:4, $small:4);
120
243
  }
121
- .cgrid-h2-1 {
122
- @include grid-column($large:6, $small:6, $center:true);
123
- }
244
+ .cgrid-h2-1 {
245
+ @include grid-column($large:6, $small:6, $center:true);
246
+ }
124
247
 
125
248
  .cgrid-i0 {
126
- @include grid-row($gutter:50px);
249
+ @include grid-row($gutter:50px);
127
250
  }
128
251
  .cgrid-i1 {
129
- @include grid-column($large:6, $gutter:50px);
252
+ @include grid-column($large:6, $gutter:50px);
130
253
  }
131
254
  .cgrid-i2 {
132
- @include grid-column($large:6, $gutter:50px);
255
+ @include grid-column($large:6, $gutter:50px);
133
256
  }
134
257
 
135
258
  /* Custom Tile */
136
259
  .custom-tile1 {
137
- @include tile($large:7, $small:5);
260
+ @include tile($large:7, $small:5);
138
261
  }
139
262
 
140
263
  .custom-tile2 {
141
- @include tile($large:5, $small:3, $collapse:true);
264
+ @include tile($large:5, $small:3, $collapse:true);
142
265
  }
143
266
 
144
267
  [data-page="form"] {
145
- input, textarea, select {
146
- margin-bottom: 20px;
147
- }
268
+ input, textarea, select {
269
+ margin-bottom: 20px;
270
+ }
148
271
  }
149
272
 
150
- .blog-post {
151
- @include baseline();
152
- @include vertical-rhythm();
273
+ [data-page="vr-comparison"] {
274
+ .baseline-comparison {
275
+ @include baseline();
276
+ }
277
+
278
+ .has-vr {
279
+ @include vertical-rhythm();
280
+ }
153
281
  }
154
282
 
283
+
284
+
155
285
  [data-page="triangle"] {
156
- .triangle1 {
157
- @include triangle($color:$main-color, $width:100px, $direction:right);
158
- }
159
- }
160
-
161
- // [data-page="typography"] {
162
- // @mixin adjust-image-leading-to($lines, $font-size: $base-font-size) {
163
- // height: rhythm($lines, $font-size);
164
- // }
165
-
166
- // h1 {
167
- // @include adjust-leading-to(2, $h1-font-size);
168
- // }
169
-
170
- // blockquote {
171
- // padding-left: 20px;
172
- // background: #eee;
173
- // @include trailer(1);
174
- // @include leader(1);
175
- // @include padding-trailer(0.5);
176
- // @include padding-leader(0.5);
177
- // }
178
-
179
- // table {
180
- // @include trailer(1);
181
- // }
182
-
183
- // td, th {
184
- // @include adjust-leading-to(1);
185
-
186
- // padding-left: 20px;
187
- // padding-right: 20px;
188
-
189
- // // @include box-shadow(inset 1px 1px black);
190
-
191
- // // &:last-child {
192
- // // @include box-shadow(
193
- // // inset 1px 1px black,
194
- // // inset -1px 0 black
195
- // // );
196
- // // }
197
- // }
198
-
199
- // // tr:last-child {
200
- // // td {
201
- // // @include box-shadow(
202
- // // inset 1px 1px black,
203
- // // inset 0 -1px black
204
- // // );
205
-
206
- // // &:last-child {
207
- // // @include box-shadow(
208
- // // inset 1px 1px black,
209
- // // inset -1px -1px black
210
- // // );
211
- // // }
212
- // // }
213
- // // }
214
-
215
- // .sidebar {
216
- // h2 {
217
- // @include trailing-border(5px, 1, $h2-font-size);
218
- // @include trailer(1, $h2-font-size);
219
- // }
220
-
221
- // h3 {
222
- // @include trailer(1, $h3-font-size);
223
- // }
224
- // li {
225
- // cursor: pointer;
226
-
227
- // &:hover {
228
- // color: tomato;
229
- // }
230
- // }
231
- // }
232
- // }
286
+ .triangle1 {
287
+ @include triangle($color:$main-color, $width:100px, $direction:right);
288
+ }
289
+ }
290
+
291
+ [data-page="button"] {
292
+ .button {
293
+ margin-top: 20px;
294
+
295
+ &.blue-button {
296
+ @include button($blue-color);
297
+ }
298
+
299
+ &.red-button {
300
+ @include button($red-color);
301
+ }
302
+
303
+ &.green-button {
304
+ @include button($green-color);
305
+ }
306
+
307
+ &.yellow-button {
308
+ @include button($yellow-color);
309
+ }
310
+
311
+ &.white-button {
312
+ @include button(#f0f0f0);
313
+ }
314
+
315
+ &.grey-button {
316
+ @include button(#bbb);
317
+ }
318
+
319
+ &.darkgrey-button {
320
+ @include button(#777);
321
+ }
322
+
323
+ &.black-button {
324
+ @include button(#333);
325
+ }
326
+ }
327
+ }
328
+