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.
- data/README.md +6 -10
- data/assets/js/edge/edge.animate.js +0 -0
- data/assets/sass/edge/_base.scss +34 -22
- data/assets/sass/edge/_components.scss +5 -4
- data/assets/sass/edge/_helpers.scss +2 -14
- data/assets/sass/edge/components/_animate.scss +151 -0
- data/assets/sass/edge/components/_button.scss +98 -41
- data/assets/sass/edge/components/_code.scss +170 -166
- data/assets/sass/edge/components/_form.scss +77 -76
- data/assets/sass/edge/components/_grid.scss +15 -12
- data/assets/sass/edge/components/_normalize.scss +60 -59
- data/assets/sass/edge/components/_print.scss +73 -70
- data/assets/sass/edge/components/_tile.scss +24 -10
- data/assets/sass/edge/components/_typography.scss +127 -138
- data/assets/sass/edge/components/_visibility.scss +156 -44
- data/assets/sass/edge/helpers/_sprites.scss +75 -63
- data/assets/sass/edge/helpers/_sticky-footer.scss +26 -31
- data/assets/sass/edge.scss +1 -1
- data/assets/sass/for-test.scss +247 -151
- data/assets/test.html +323 -11
- data/edge.gemspec +17 -18
- data/lib/edge/engine.rb +19 -0
- data/lib/edge/message.rb +32 -29
- data/lib/edge/sprockets.rb +4 -0
- data/lib/edge/version.rb +2 -2
- data/lib/edge_framework.rb +63 -67
- data/template/base/assets/js/app.js +1 -1
- data/template/base/assets/sass/_setting.scss +35 -35
- data/template/base/config.rb +1 -1
- data/template/html/index.html +3 -3
- data/template/php/partials/footer.php +2 -2
- data/template/wordpress/footer.php +2 -3
- metadata +8 -24
- data/assets/sass/edge/components/_block-grid-margin.scss +0 -112
- data/assets/sass/edge/components/_grid-margin.scss +0 -309
- data/assets/sass/edge/components/_grid-old.scss +0 -287
- 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="
|
10
|
+
// <footer class="main-footer"></footer>
|
11
11
|
// </body>
|
12
12
|
// -----------------------------------------
|
13
13
|
|
14
|
-
@mixin sticky-footer(
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
43
|
-
|
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
|
}
|
data/assets/sass/edge.scss
CHANGED
data/assets/sass/for-test.scss
CHANGED
@@ -3,100 +3,223 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
.custom-grid {
|
6
|
-
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
-
|
177
|
+
@include grid-column($large:5);
|
55
178
|
}
|
56
179
|
.cgrid-2 {
|
57
|
-
|
180
|
+
@include grid-column($large:7);
|
58
181
|
}
|
59
182
|
|
60
183
|
.cgrid-a1 {
|
61
|
-
|
184
|
+
@include grid-column($large:5, $small:10);
|
62
185
|
}
|
63
186
|
.cgrid-a2 {
|
64
|
-
|
187
|
+
@include grid-column($large:7, $small:2);
|
65
188
|
}
|
66
189
|
|
67
190
|
.cgrid-b1 {
|
68
|
-
|
191
|
+
@include grid-column($large:10, $small:8, $mini:6);
|
69
192
|
}
|
70
193
|
.cgrid-b2 {
|
71
|
-
|
194
|
+
@include grid-column($large:2, $small:4, $mini:6);
|
72
195
|
}
|
73
196
|
|
74
197
|
.cgrid-c1 {
|
75
|
-
|
198
|
+
@include grid-column($large:6, $large-offset:4, $small:6);
|
76
199
|
}
|
77
200
|
.cgrid-c2 {
|
78
|
-
|
201
|
+
@include grid-column($large:2, $small:6);
|
79
202
|
}
|
80
203
|
|
81
204
|
.cgrid-d1 {
|
82
|
-
|
205
|
+
@include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4);
|
83
206
|
}
|
84
207
|
.cgrid-d2 {
|
85
|
-
|
208
|
+
@include grid-column($large:3, $small:4);
|
86
209
|
}
|
87
210
|
|
88
211
|
.cgrid-e1 {
|
89
|
-
|
212
|
+
@include grid-column($large:3, $large-offset:6, $small:4, $small-offset:4, $mini:6);
|
90
213
|
}
|
91
214
|
.cgrid-e2 {
|
92
|
-
|
215
|
+
@include grid-column($large:3, $small:4, $mini:6);
|
93
216
|
}
|
94
217
|
|
95
218
|
.cgrid-f1 {
|
96
|
-
|
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
|
-
|
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
|
-
|
111
|
-
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
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
|
-
|
242
|
+
@include grid-column($large:4, $small:4);
|
120
243
|
}
|
121
|
-
|
122
|
-
|
123
|
-
|
244
|
+
.cgrid-h2-1 {
|
245
|
+
@include grid-column($large:6, $small:6, $center:true);
|
246
|
+
}
|
124
247
|
|
125
248
|
.cgrid-i0 {
|
126
|
-
|
249
|
+
@include grid-row($gutter:50px);
|
127
250
|
}
|
128
251
|
.cgrid-i1 {
|
129
|
-
|
252
|
+
@include grid-column($large:6, $gutter:50px);
|
130
253
|
}
|
131
254
|
.cgrid-i2 {
|
132
|
-
|
255
|
+
@include grid-column($large:6, $gutter:50px);
|
133
256
|
}
|
134
257
|
|
135
258
|
/* Custom Tile */
|
136
259
|
.custom-tile1 {
|
137
|
-
|
260
|
+
@include tile($large:7, $small:5);
|
138
261
|
}
|
139
262
|
|
140
263
|
.custom-tile2 {
|
141
|
-
|
264
|
+
@include tile($large:5, $small:3, $collapse:true);
|
142
265
|
}
|
143
266
|
|
144
267
|
[data-page="form"] {
|
145
|
-
|
146
|
-
|
147
|
-
|
268
|
+
input, textarea, select {
|
269
|
+
margin-bottom: 20px;
|
270
|
+
}
|
148
271
|
}
|
149
272
|
|
150
|
-
|
151
|
-
|
152
|
-
|
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
|
-
|
157
|
-
|
158
|
-
|
159
|
-
}
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
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
|
+
|