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.
- checksums.yaml +8 -8
- data/README.md +149 -93
- data/assets/kitchen-sink.html +23 -29
- data/assets/sass/edge.scss +1 -1
- data/assets/sass/edge/_base.scss +36 -47
- data/assets/sass/edge/_helpers.scss +1 -1
- data/assets/sass/edge/components/_animate.scss +1 -1
- data/assets/sass/edge/components/_button.scss +1 -1
- data/assets/sass/edge/components/_code.scss +1 -1
- data/assets/sass/edge/components/_form.scss +1 -1
- data/assets/sass/edge/components/_grid.scss +179 -181
- data/assets/sass/edge/components/_normalize.scss +2 -1
- data/assets/sass/edge/components/_print.scss +1 -1
- data/assets/sass/edge/components/_tile.scss +84 -79
- data/assets/sass/edge/components/_typography.scss +1 -1
- data/assets/sass/edge/components/_visibility.scss +1 -51
- data/assets/sass/kitchen-sink.scss +58 -58
- data/edge.gemspec +5 -5
- data/lib/edge/version.rb +1 -1
- metadata +18 -19
- data/assets/sass/edge/components/_grid_old.scss +0 -346
@@ -3,7 +3,7 @@
|
|
3
3
|
// =================
|
4
4
|
// Based on git.io/normalize
|
5
5
|
|
6
|
-
@if $include-normalize and not $
|
6
|
+
@if $include-normalize and not $user-mode {
|
7
7
|
|
8
8
|
/* ----------------
|
9
9
|
EDGE Normalize
|
@@ -31,6 +31,7 @@ body { -webkit-animation: bugfix infinite 1s; }
|
|
31
31
|
}
|
32
32
|
|
33
33
|
html {
|
34
|
+
height: 100%;
|
34
35
|
font-family: sans-serif;
|
35
36
|
-webkit-text-size-adjust: 100%;
|
36
37
|
-ms-text-size-adjust: 100%;
|
@@ -6,125 +6,130 @@
|
|
6
6
|
$max-tiles : 12 !default;
|
7
7
|
$tile-gutter : 15px !default;
|
8
8
|
|
9
|
-
//
|
10
|
-
// TILE
|
11
|
-
// -
|
12
|
-
//
|
13
|
-
|
14
|
-
|
15
|
-
$
|
16
|
-
$
|
9
|
+
// ------------------------------
|
10
|
+
// BASE TILE
|
11
|
+
// - Styling for base framework
|
12
|
+
// ------------------------------
|
13
|
+
|
14
|
+
@mixin base-tile(
|
15
|
+
$size : 0,
|
16
|
+
$gutter : 0,
|
17
|
+
$collapse : false,
|
18
|
+
$for-base : false,
|
19
|
+
$reset-clearing : false) {
|
17
20
|
|
18
|
-
@if $
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
@if $for-base {
|
22
|
+
display: block;
|
23
|
+
@include clearfix();
|
24
|
+
|
25
|
+
> li {
|
26
|
+
display: block;
|
27
|
+
position: relative;
|
28
|
+
float: $default-float;
|
23
29
|
}
|
24
30
|
}
|
25
31
|
|
26
|
-
|
27
|
-
|
32
|
+
// Collapse, reduce all margin and padding to 0
|
33
|
+
@if $collapse {
|
34
|
+
margin-right: 0;
|
35
|
+
margin-left: 0;
|
28
36
|
|
29
|
-
|
30
|
-
|
37
|
+
> li {
|
38
|
+
padding: 0;
|
31
39
|
}
|
32
40
|
}
|
33
|
-
}
|
34
|
-
|
35
|
-
// --------------------
|
36
|
-
// TILE
|
37
|
-
// - Create tile list
|
38
|
-
// --------------------
|
39
|
-
@mixin tile (
|
40
|
-
$large : 0,
|
41
|
-
$small : 0,
|
42
|
-
$mini : 0,
|
43
|
-
$gutter : $tile-gutter,
|
44
|
-
$collapse : false ) {
|
45
41
|
|
46
|
-
//
|
47
|
-
@if $
|
48
|
-
|
49
|
-
|
50
|
-
@if $collapse {
|
51
|
-
margin-right: 0;
|
52
|
-
margin-left: 0;
|
53
|
-
} @else {
|
54
|
-
margin-right: -($gutter / 2);
|
55
|
-
margin-left: -($gutter / 2);
|
56
|
-
}
|
57
|
-
@include clearfix;
|
42
|
+
// if gutter is not specified, use the default gutter.
|
43
|
+
@if $gutter == 0 and $for-base and not $collapse {
|
44
|
+
$gutter: $tile-gutter;
|
58
45
|
}
|
46
|
+
|
47
|
+
@if $gutter > 0 {
|
48
|
+
margin-right: -($gutter / 2);
|
49
|
+
margin-left: -($gutter / 2);
|
59
50
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
display: block;
|
64
|
-
position: relative;
|
65
|
-
float: $default-float;
|
66
|
-
height: auto;
|
51
|
+
> li {
|
52
|
+
padding-right: ($gutter / 2);
|
53
|
+
padding-left: ($gutter / 2);
|
67
54
|
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
55
|
+
}
|
56
|
+
|
57
|
+
// Number of tiles per row
|
58
|
+
@if $size > 0 {
|
59
|
+
> li {
|
60
|
+
width: 100% / $size;
|
61
|
+
|
62
|
+
@if $reset-clearing {
|
73
63
|
&:nth-of-type(n) {
|
74
64
|
clear: none;
|
75
65
|
}
|
76
|
-
|
77
|
-
@include tile-calc($per-row:$small, $gutter:$gutter, $collapse:$collapse);
|
78
66
|
}
|
79
67
|
|
80
|
-
|
81
|
-
|
82
|
-
&:nth-of-type(n) {
|
83
|
-
clear: none;
|
84
|
-
}
|
85
|
-
|
86
|
-
@include tile-calc($per-row:$mini, $gutter:$gutter, $collapse:$collapse);
|
87
|
-
}
|
68
|
+
&:nth-of-type(#{$size}n+1) {
|
69
|
+
clear: both;
|
88
70
|
}
|
89
71
|
}
|
90
72
|
}
|
91
73
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
74
|
+
}
|
75
|
+
|
76
|
+
// -----------------------------------
|
77
|
+
// TILE
|
78
|
+
// - Styling for external mixin call
|
79
|
+
// -----------------------------------
|
80
|
+
|
81
|
+
@mixin tile (
|
82
|
+
$size : 0,
|
83
|
+
$small : 0,
|
84
|
+
$mini : 0,
|
85
|
+
$gutter : 0,
|
86
|
+
$collapse : false) {
|
87
|
+
|
88
|
+
@include base-tile(
|
89
|
+
$size: $size,
|
90
|
+
$gutter: $gutter,
|
91
|
+
$collapse: $collapse,
|
92
|
+
$for-base: true
|
93
|
+
);
|
94
|
+
|
95
|
+
@if $small > 0 {
|
96
|
+
@include below(small) {
|
97
|
+
@include base-tile($size: $small, $reset-clearing: true);
|
96
98
|
}
|
97
|
-
|
98
|
-
|
99
|
+
}
|
100
|
+
|
101
|
+
@if $mini > 0 {
|
102
|
+
@include below(mini) {
|
103
|
+
@include base-tile($size: $mini, $reset-clearing: true);
|
99
104
|
}
|
100
|
-
h-tile: $notes;
|
101
105
|
}
|
102
106
|
}
|
103
107
|
|
104
|
-
@if $include-tile and not $
|
108
|
+
@if $include-tile and not $user-mode {
|
105
109
|
|
106
110
|
/* --------------
|
107
111
|
EDGE Tile
|
108
112
|
-------------- */
|
109
113
|
|
110
|
-
[class*="
|
111
|
-
@include tile();
|
114
|
+
[class*="tile-"] {
|
115
|
+
@include base-tile($for-base: true);
|
112
116
|
|
113
117
|
&.collapse {
|
114
|
-
@include tile($collapse:true);
|
118
|
+
@include base-tile($collapse:true);
|
115
119
|
}
|
116
120
|
}
|
117
121
|
|
118
122
|
@for $i from 1 through $max-tiles {
|
119
|
-
.large-tile-#{$i}
|
120
|
-
|
123
|
+
.large-tile-#{$i},
|
124
|
+
.tile-#{$i} {
|
125
|
+
@include base-tile($size:$i);
|
121
126
|
}
|
122
127
|
}
|
123
128
|
|
124
129
|
@if $responsive {
|
125
130
|
@include below(small) {
|
126
|
-
// Make large-
|
127
|
-
[class*="
|
131
|
+
// Make large-tile 100% width
|
132
|
+
[class*="tile-"] > li {
|
128
133
|
width: 100%;
|
129
134
|
}
|
130
135
|
[class*="small-tile-"] > li:nth-child(n) {
|
@@ -132,7 +137,7 @@ $tile-gutter : 15px !default;
|
|
132
137
|
}
|
133
138
|
@for $i from 1 through $max-tiles {
|
134
139
|
.small-tile-#{$i} {
|
135
|
-
@include tile($
|
140
|
+
@include base-tile($size:$i);
|
136
141
|
}
|
137
142
|
}
|
138
143
|
}
|
@@ -89,7 +89,7 @@ $ol-child-style : lower-alpha !default;
|
|
89
89
|
background-size: 100% em($font-size * $line-height, $font-size);
|
90
90
|
}
|
91
91
|
|
92
|
-
@if $include-typography and not $
|
92
|
+
@if $include-typography and not $user-mode {
|
93
93
|
|
94
94
|
/* -----------------
|
95
95
|
EDGE Typography
|
@@ -55,57 +55,7 @@
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
|
58
|
-
|
59
|
-
// HIDE FOR
|
60
|
-
// - Hide the element on that screen size
|
61
|
-
// - hide-for(small) is still hidden on mini
|
62
|
-
// ------------------------------------------
|
63
|
-
@mixin hide-for($size) {
|
64
|
-
@if $size == large {
|
65
|
-
@include above(small) {
|
66
|
-
display: none;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
@else if $size == small {
|
71
|
-
@include below(small) {
|
72
|
-
display: none;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
@else if $size == mini {
|
77
|
-
@include below(mini) {
|
78
|
-
display: none;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
// ---------------------------------
|
84
|
-
// SHOW FOR
|
85
|
-
// - Show the element only on that size
|
86
|
-
// - show-for(small) is still visible on mini
|
87
|
-
// -------------------------------------------
|
88
|
-
@mixin show-for($size) {
|
89
|
-
@if $size == large {
|
90
|
-
@include below(small) {
|
91
|
-
display: none;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
@else if $size == small {
|
96
|
-
@include above(small) {
|
97
|
-
display: none;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
@else if $size == mini {
|
102
|
-
@include above(mini) {
|
103
|
-
display: none;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
@if $include-visibility and not $external-call {
|
58
|
+
@if $include-visibility and not $user-mode {
|
109
59
|
|
110
60
|
/* -----------------
|
111
61
|
EDGE Visibility
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
.custom-grid {
|
6
|
-
@include column(
|
6
|
+
@include column(3);
|
7
7
|
}
|
8
8
|
|
9
9
|
[data-page="animate"] {
|
@@ -103,30 +103,6 @@
|
|
103
103
|
color: #bbb;
|
104
104
|
}
|
105
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
|
-
}
|
130
106
|
}
|
131
107
|
|
132
108
|
.demo-grid {
|
@@ -174,100 +150,124 @@
|
|
174
150
|
|
175
151
|
/* Custom Grid */
|
176
152
|
.cgrid-1 {
|
177
|
-
@include column($
|
153
|
+
@include column($size:5);
|
178
154
|
}
|
179
155
|
.cgrid-2 {
|
180
|
-
@include column($
|
156
|
+
@include column($size:7);
|
181
157
|
}
|
182
158
|
|
183
159
|
.cgrid-a1 {
|
184
|
-
@include column($
|
160
|
+
@include column($size:5, $small:10);
|
185
161
|
}
|
186
162
|
.cgrid-a2 {
|
187
|
-
@include column($
|
163
|
+
@include column($size:7, $small:2);
|
188
164
|
}
|
189
165
|
|
190
166
|
.cgrid-b1 {
|
191
|
-
@include column($
|
167
|
+
@include column($size:10, $small:8, $mini:6);
|
192
168
|
}
|
193
169
|
.cgrid-b2 {
|
194
|
-
@include column($
|
170
|
+
@include column($size:2, $small:4, $mini:6);
|
195
171
|
}
|
196
172
|
|
197
173
|
.cgrid-c1 {
|
198
|
-
@include column($
|
174
|
+
@include column($size:6, $offset:4, $small:6);
|
199
175
|
}
|
200
176
|
.cgrid-c2 {
|
201
|
-
@include column($
|
177
|
+
@include column($size:2, $small:6);
|
202
178
|
}
|
203
179
|
|
204
180
|
.cgrid-d1 {
|
205
|
-
@include column($
|
181
|
+
@include column($size:3, $offset:6);
|
182
|
+
|
183
|
+
@include below(small) {
|
184
|
+
@include column($size:4, $offset:6);
|
185
|
+
}
|
206
186
|
}
|
207
187
|
.cgrid-d2 {
|
208
|
-
@include column($
|
188
|
+
@include column($size:3, $small:4);
|
209
189
|
}
|
210
190
|
|
211
|
-
.cgrid-e1 {
|
212
|
-
|
213
|
-
}
|
214
|
-
.cgrid-e2 {
|
215
|
-
|
216
|
-
}
|
191
|
+
// .cgrid-e1 {
|
192
|
+
// @include column($size:3, $offset:6, $small:4, $small-offset:4, $mini:6);
|
193
|
+
// }
|
194
|
+
// .cgrid-e2 {
|
195
|
+
// @include column($size:3, $small:4, $mini:6);
|
196
|
+
// }
|
217
197
|
|
218
|
-
.cgrid-f1 {
|
219
|
-
|
220
|
-
}
|
221
|
-
.cgrid-f2 {
|
222
|
-
|
223
|
-
}
|
198
|
+
// .cgrid-f1 {
|
199
|
+
// @include column($size:3, $offset:6, $small:4, $small-offset:4, $mini:5);
|
200
|
+
// }
|
201
|
+
// .cgrid-f2 {
|
202
|
+
// @include column($size:3, $small:4, $mini:6);
|
203
|
+
// }
|
224
204
|
|
225
205
|
.cgrid-g1 {
|
226
|
-
@include column($
|
206
|
+
@include column($size:4, $push:8);
|
227
207
|
}
|
228
208
|
.cgrid-g2 {
|
229
|
-
@include column($
|
209
|
+
@include column($size:8, $pull:4);
|
230
210
|
}
|
231
211
|
|
232
212
|
.cgrid-h1 {
|
233
|
-
@include column($
|
213
|
+
@include column($size:8, $small:8);
|
234
214
|
}
|
235
215
|
.cgrid-h1-1 {
|
236
|
-
@include column($
|
216
|
+
@include column($size:5, $small:5);
|
237
217
|
}
|
238
218
|
.cgrid-h1-2 {
|
239
|
-
@include column($
|
219
|
+
@include column($size:7, $small:7);
|
240
220
|
}
|
241
221
|
.cgrid-h2 {
|
242
|
-
@include column($
|
222
|
+
@include column($size:4, $small:4);
|
243
223
|
}
|
244
224
|
.cgrid-h2-1 {
|
245
|
-
@include column($
|
225
|
+
@include column($size:6, $small:6, $centered:true);
|
246
226
|
}
|
247
227
|
|
248
228
|
.cgrid-i0 {
|
249
229
|
@include row($gutter:50px);
|
250
230
|
}
|
251
231
|
.cgrid-i1 {
|
252
|
-
@include column($
|
232
|
+
@include column($size:6, $gutter:50px);
|
253
233
|
}
|
254
234
|
.cgrid-i2 {
|
255
|
-
@include column($
|
235
|
+
@include column($size:6, $gutter:50px);
|
256
236
|
}
|
257
237
|
|
258
238
|
/* Custom Tile */
|
259
239
|
.custom-tile1 {
|
260
|
-
@include tile($
|
240
|
+
@include tile($size:7, $small:5, $gutter: 50px);
|
261
241
|
}
|
262
242
|
|
263
243
|
.custom-tile2 {
|
264
|
-
@include tile($
|
244
|
+
@include tile($size:5, $small:3, $collapse:true);
|
265
245
|
}
|
266
246
|
|
267
247
|
.custom-tile3 {
|
268
248
|
@include tile(5, 3, 2);
|
269
249
|
}
|
270
250
|
|
251
|
+
/* --------------------
|
252
|
+
DESIGN CUSTOM GRID
|
253
|
+
-------------------- */
|
254
|
+
|
255
|
+
[data-page="design-grid"] {
|
256
|
+
.dgrid-ar {
|
257
|
+
@include row($gutter: 50px, $width: 500px);
|
258
|
+
}
|
259
|
+
|
260
|
+
.dgrid-a1 {
|
261
|
+
@include column-px($size: 325px, $width: 500px, $gutter: 50px);
|
262
|
+
}
|
263
|
+
|
264
|
+
.dgrid-a2 {
|
265
|
+
@include column-px($size: 125px, $width: 500px, $gutter: 50px);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
/* ----- FORM ----- */
|
270
|
+
|
271
271
|
[data-page="form"] {
|
272
272
|
input, textarea, select {
|
273
273
|
margin-bottom: 20px;
|