edge_framework 0.6.1 → 0.8.1
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/Gemfile +1 -1
- data/Gemfile.lock +38 -0
- data/assets/sass/edge/_base.scss +224 -193
- data/assets/sass/edge/_components.scss +1 -1
- data/assets/sass/edge/_helpers.scss +2 -2
- data/assets/sass/edge/components/_code.scss +4 -4
- data/assets/sass/edge/components/_grid-old.scss +287 -0
- data/assets/sass/edge/components/_grid.scss +221 -241
- data/assets/sass/edge/components/_tile.scss +113 -0
- data/assets/sass/edge/components/_visibility.scss +2 -2
- data/assets/sass/edge/helpers/_sprites.scss +4 -3
- data/assets/sass/for-test.scss +152 -0
- data/assets/test.html +441 -63
- data/lib/edge/version.rb +2 -2
- data/template/base/assets/sass/_setting.scss +15 -16
- data/template/base/assets/sass/{edge-framework.scss → framework.scss} +0 -0
- data/template/base/config.rb +16 -0
- metadata +8 -4
- data/assets/sass/edge/components/_block-grid.scss +0 -112
@@ -1,9 +1,9 @@
|
|
1
1
|
@import "helpers/sprites";
|
2
2
|
@import "helpers/sticky-footer";
|
3
3
|
|
4
|
-
//
|
4
|
+
// Disable the output, because we only want to enable the mixin
|
5
5
|
$include-grid : false;
|
6
|
-
$include-
|
6
|
+
$include-tile : false;
|
7
7
|
$include-visibility : false;
|
8
8
|
|
9
9
|
$include-button : false;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// CODE HIGHLIGHTER
|
3
3
|
// Based on Prism.js - Coy Theme
|
4
4
|
// @origin Tim Shedor
|
5
|
-
//
|
5
|
+
// https://github.com/tshedor/workshop-wp-theme
|
6
6
|
// -------------------------------------------------------
|
7
7
|
|
8
8
|
$code-font-family : "Consolas", Courier, "monospace" !default;
|
@@ -48,9 +48,9 @@ $code-python-color : #376a94; // dark-blue
|
|
48
48
|
}
|
49
49
|
|
50
50
|
@if $include-code {
|
51
|
-
/*
|
52
|
-
EDGE CODE Highlighter
|
53
|
-
|
51
|
+
/* ----------------------
|
52
|
+
EDGE CODE Highlighter
|
53
|
+
---------------------- */
|
54
54
|
|
55
55
|
// Reset
|
56
56
|
code, kbd, samp {
|
@@ -0,0 +1,287 @@
|
|
1
|
+
// -----------------------------------------
|
2
|
+
// GRID
|
3
|
+
// Based on ZURB's Foundation 4
|
4
|
+
// -----------------------------------------
|
5
|
+
|
6
|
+
$row-max-width : 1140px !default;
|
7
|
+
$total-columns : 12 !default;
|
8
|
+
$column-distance : 20px !default;
|
9
|
+
|
10
|
+
// Calculate percentages for grid
|
11
|
+
@function gridCalc($colNumber, $totalColumns:$total-columns) {
|
12
|
+
@return percentage($colNumber / $totalColumns);
|
13
|
+
}
|
14
|
+
|
15
|
+
// For creating container, nested, and collapsed rows.
|
16
|
+
@mixin grid-row(
|
17
|
+
$nest : false,
|
18
|
+
$collapse : false,
|
19
|
+
$for-base : false, // Prevent style repetition, only for internal use
|
20
|
+
$max-width : $row-max-width,
|
21
|
+
$distance : $column-distance ) {
|
22
|
+
|
23
|
+
$max-width : $max-width + $distance; // to make up for the padding
|
24
|
+
$distance : em($distance);
|
25
|
+
|
26
|
+
// prevent duplicate for base CSS class
|
27
|
+
@if $for-base == false {
|
28
|
+
@include clearfix;
|
29
|
+
}
|
30
|
+
|
31
|
+
@if $nest and $collapse {
|
32
|
+
width : auto;
|
33
|
+
max-width : none;
|
34
|
+
margin : 0;
|
35
|
+
padding-#{$default-float} : 0;
|
36
|
+
padding-#{$default-opposite} : 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
@else if $nest {
|
40
|
+
width : auto;
|
41
|
+
max-width : none;
|
42
|
+
margin-#{$default-float} : -($distance / 2);
|
43
|
+
margin-#{$default-opposite} : -($distance / 2);
|
44
|
+
}
|
45
|
+
|
46
|
+
@else if $collapse {
|
47
|
+
width : 100%;
|
48
|
+
max-width : $max-width;
|
49
|
+
margin : 0 auto;
|
50
|
+
padding-#{$default-float} : $distance / 2;
|
51
|
+
padding-#{$default-opposite} : $distance / 2;
|
52
|
+
}
|
53
|
+
|
54
|
+
// use @include grid-row; to use a container row
|
55
|
+
@else {
|
56
|
+
width : 100%;
|
57
|
+
max-width : $max-width;
|
58
|
+
margin : 0 auto;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// For creating columns - @include these inside a media query to control small vs. large grid layouts
|
63
|
+
@mixin grid-column(
|
64
|
+
$columns : false,
|
65
|
+
$last-column : false,
|
66
|
+
$center : false,
|
67
|
+
$offset : 0,
|
68
|
+
$push : 0,
|
69
|
+
$pull : 0,
|
70
|
+
$collapse : false,
|
71
|
+
$float : true,
|
72
|
+
$form : false, // Create form-columns
|
73
|
+
$for-base : false, // Prevent style repetition, only for internal use
|
74
|
+
$distance : em($column-distance),
|
75
|
+
$total-columns : $total-columns,
|
76
|
+
$external : $external-call, // Mixin used from external file
|
77
|
+
$small : false // For external use, apply CSS for small-grid
|
78
|
+
) {
|
79
|
+
|
80
|
+
@if $for-base == false {
|
81
|
+
position: relative;
|
82
|
+
}
|
83
|
+
|
84
|
+
// If collapsed, get rid of distance padding
|
85
|
+
@if $collapse {
|
86
|
+
// If not for form-column
|
87
|
+
@if $form == false {
|
88
|
+
padding-left : 0;
|
89
|
+
padding-right : 0;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
// Set distance between padding whenever a column isn't set to collapse
|
94
|
+
// Form-column can't have distance
|
95
|
+
// (use $collapse:null to do nothing)
|
96
|
+
@else if $collapse == false and $form == false {
|
97
|
+
padding-left : $distance / 2;
|
98
|
+
padding-right : $distance / 2;
|
99
|
+
}
|
100
|
+
|
101
|
+
// If a column number is given, calculate width
|
102
|
+
@if $columns {
|
103
|
+
width : gridCalc($columns, $total-columns);
|
104
|
+
|
105
|
+
// If last column, float naturally instead of to the right
|
106
|
+
@if $last-column {
|
107
|
+
float: $default-opposite;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
// If offset, calculate appropriate margins
|
112
|
+
@if $offset > 0 {
|
113
|
+
margin-#{$default-float}: gridCalc($offset, $total-columns);
|
114
|
+
}
|
115
|
+
|
116
|
+
// Source Ordering, adds left/right depending on which you use.
|
117
|
+
@if $push > 0 {
|
118
|
+
#{$default-float} : gridCalc($push, $total-columns);
|
119
|
+
#{$default-opposite} : auto;
|
120
|
+
}
|
121
|
+
@if $pull > 0 {
|
122
|
+
#{$default-opposite} : gridCalc($pull, $total-columns);
|
123
|
+
#{$default-float} : auto;
|
124
|
+
}
|
125
|
+
|
126
|
+
// If centered, get rid of float and add appropriate margins
|
127
|
+
@if $center {
|
128
|
+
margin-#{$default-float} : auto !important;
|
129
|
+
margin-#{$default-opposite} : auto !important;
|
130
|
+
float : none !important;
|
131
|
+
|
132
|
+
// If for form-column, change display to `block`
|
133
|
+
@if $form {
|
134
|
+
display: block;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
@if $float {
|
139
|
+
@if $float == left or $float == true {
|
140
|
+
float: $default-float;
|
141
|
+
}
|
142
|
+
@else if $float == right {
|
143
|
+
float: $default-opposite;
|
144
|
+
}
|
145
|
+
@else {
|
146
|
+
float: none;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
// If used from external file and size is not small
|
151
|
+
@if $external {
|
152
|
+
@if $small == false {
|
153
|
+
@include small {
|
154
|
+
width : 100%;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
@if $include-grid {
|
161
|
+
|
162
|
+
/* ---------------
|
163
|
+
EDGE Grid
|
164
|
+
--------------- */
|
165
|
+
|
166
|
+
body {
|
167
|
+
&.not-responsive {
|
168
|
+
min-width: em($row-max-width + $column-distance);
|
169
|
+
}
|
170
|
+
&.only-responsive-below-small {
|
171
|
+
min-width : $row-max-width;
|
172
|
+
.row {
|
173
|
+
min-width: em($row-max-width);
|
174
|
+
|
175
|
+
// Nested row
|
176
|
+
.row {
|
177
|
+
min-width: 0;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
@include small {
|
182
|
+
min-width : 0;
|
183
|
+
.row {
|
184
|
+
min-width: 0;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
// Normal row
|
191
|
+
.row {
|
192
|
+
@include grid-row;
|
193
|
+
|
194
|
+
// Collapsed row
|
195
|
+
&.collapse {
|
196
|
+
@include grid-row($collapse:true);
|
197
|
+
.column,
|
198
|
+
.columns {
|
199
|
+
@include grid-column($collapse:true);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
// Nested-collapsed row
|
204
|
+
.row {
|
205
|
+
@include grid-row($nest:true);
|
206
|
+
&.collapse {
|
207
|
+
@include grid-row($nest:true, $collapse:true);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
// Normal column
|
213
|
+
.column,
|
214
|
+
.columns {
|
215
|
+
@include grid-column($columns:$total-columns);
|
216
|
+
}
|
217
|
+
|
218
|
+
|
219
|
+
// Normal form-row
|
220
|
+
.form-row {
|
221
|
+
@include grid-row($collapse:true, $nest:true);
|
222
|
+
|
223
|
+
.form-column,
|
224
|
+
.form-columns {
|
225
|
+
@include grid-column($collapse:true, $form:true);
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
@for $i from 1 through $total-columns {
|
230
|
+
.large#{-$i} { @include grid-column($columns:$i, $collapse:null, $float:false, $for-base:true); }
|
231
|
+
}
|
232
|
+
|
233
|
+
// Centered column
|
234
|
+
.column.large-centered,
|
235
|
+
.columns.large-centered {
|
236
|
+
@include grid-column($center:true, $collapse:null, $float:false);
|
237
|
+
}
|
238
|
+
|
239
|
+
// Centered form-column
|
240
|
+
.form-column.large-centered,
|
241
|
+
.form-columns.large-centered {
|
242
|
+
@include grid-column($center:true, $collapse:null, $float:false, $form:true);
|
243
|
+
}
|
244
|
+
|
245
|
+
// Source Ordering
|
246
|
+
@include medium-up {
|
247
|
+
@for $i from 1 through $total-columns - 1 {
|
248
|
+
.large-offset-#{$i} {
|
249
|
+
@include grid-column($offset:$i, $collapse:null, $float:false, $for-base:true);
|
250
|
+
}
|
251
|
+
.push#{-$i} {
|
252
|
+
@include grid-column($push:$i, $collapse:null, $float:false, $for-base:true);
|
253
|
+
}
|
254
|
+
.pull#{-$i} {
|
255
|
+
@include grid-column($pull:$i, $collapse:null, $float:false, $for-base:true);
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
// Small screen and below
|
261
|
+
@include small {
|
262
|
+
|
263
|
+
body:not(.not-responsive) {
|
264
|
+
.column,
|
265
|
+
.columns {
|
266
|
+
@include grid-column($columns:$total-columns);
|
267
|
+
}
|
268
|
+
@for $i from 1 through $total-columns {
|
269
|
+
.small#{-$i} {
|
270
|
+
@include grid-column($columns:$i, $collapse:null, $float:false, $for-base:true);
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
@for $i from 0 through $total-columns - 2 {
|
276
|
+
.small-offset-#{$i} {
|
277
|
+
@include grid-column($offset:$i, $collapse:null, $float:false, $for-base:true);
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
.column.small-centered,
|
282
|
+
.columns.small-centered {
|
283
|
+
@include grid-column($center:true, $collapse:null, $float:false);
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
} // $include-grid
|
@@ -5,156 +5,177 @@
|
|
5
5
|
|
6
6
|
$row-max-width : 1140px !default;
|
7
7
|
$total-columns : 12 !default;
|
8
|
-
$column-
|
8
|
+
$column-gutter : 20px !default;
|
9
9
|
|
10
10
|
// Calculate percentages for grid
|
11
|
-
@function gridCalc($colNumber, $totalColumns
|
12
|
-
|
11
|
+
@function gridCalc($colNumber, $totalColumns) {
|
12
|
+
@return percentage($colNumber / $totalColumns);
|
13
13
|
}
|
14
14
|
|
15
|
-
//
|
15
|
+
// ---------------------------------
|
16
|
+
// GRID ROW
|
17
|
+
// Create container for the grid
|
18
|
+
// ---------------------------------
|
16
19
|
@mixin grid-row(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
20
|
+
$nest : false,
|
21
|
+
$collapse : false,
|
22
|
+
$width : $row-max-width,
|
23
|
+
$gutter : $column-gutter,
|
24
|
+
$for-base : false ) {
|
25
|
+
|
26
|
+
@if $for-base {
|
27
|
+
margin: 0 auto;
|
28
|
+
width: 100%;
|
29
|
+
max-width: $width + $gutter;
|
30
|
+
|
31
|
+
@if not $responsive {
|
32
|
+
min-width: $width + $gutter;
|
33
|
+
}
|
34
|
+
@include clearfix;
|
35
|
+
}
|
36
|
+
|
37
|
+
$gutter: em($gutter);
|
38
|
+
|
39
|
+
@if $nest and $collapse {
|
40
|
+
width: auto;
|
41
|
+
max-width: none;
|
42
|
+
margin: 0;
|
43
|
+
padding-right: 0;
|
44
|
+
padding-left: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
@else if $nest {
|
48
|
+
width: auto;
|
49
|
+
max-width: none;
|
50
|
+
margin-right: -($gutter / 2);
|
51
|
+
margin-left: -($gutter / 2);
|
52
|
+
}
|
53
|
+
|
54
|
+
@else if $collapse {
|
55
|
+
width: 100%;
|
56
|
+
max-width: $width;
|
57
|
+
margin: 0 auto;
|
58
|
+
padding-right: $gutter / 2;
|
59
|
+
padding-left: $gutter / 2;
|
60
|
+
}
|
61
|
+
}
|
53
62
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
63
|
+
@mixin external-call-column(
|
64
|
+
$column : 0,
|
65
|
+
$total : 0,
|
66
|
+
$offset : 0,
|
67
|
+
$parent-offset : 0) {
|
68
|
+
|
69
|
+
@if $column > 0 {
|
70
|
+
width: gridCalc($column, $total);
|
71
|
+
} @else {
|
72
|
+
width: 100%;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Offset is only allowed if the column is specified
|
76
|
+
@if $column > 0 and $offset > 0 {
|
77
|
+
margin-#{$default-float}: gridCalc($offset, $total);
|
78
|
+
}
|
79
|
+
// If parent (larger) column has offset, remove it
|
80
|
+
@else if $parent-offset > 0 {
|
81
|
+
margin-#{$default-float}: 0;
|
82
|
+
}
|
60
83
|
}
|
61
84
|
|
62
|
-
//
|
85
|
+
// ------------------------
|
86
|
+
// GRID COLUMN
|
87
|
+
// Create the grid
|
88
|
+
// ------------------------
|
63
89
|
@mixin grid-column(
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
@include small {
|
154
|
-
width : 100%;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
90
|
+
$large : 0,
|
91
|
+
$small : 0, // For external call only, small size screen
|
92
|
+
$mini : 0, // For external call only, mini size screen
|
93
|
+
$large-offset : 0,
|
94
|
+
$small-offset : 0, // For external call only
|
95
|
+
$mini-offset : 0, // For external call only
|
96
|
+
$push : 0,
|
97
|
+
$pull : 0,
|
98
|
+
$collapse : false,
|
99
|
+
$center : false,
|
100
|
+
$gutter : $column-gutter,
|
101
|
+
$total : $total-columns,
|
102
|
+
$for-base : false ) {
|
103
|
+
|
104
|
+
@if $for-base {
|
105
|
+
position: relative;
|
106
|
+
float: $default-float;
|
107
|
+
padding-right: em($gutter) / 2;
|
108
|
+
padding-left: em($gutter) / 2;
|
109
|
+
}
|
110
|
+
|
111
|
+
// If gutter's value is different from default, it means it is passed as param
|
112
|
+
@if not $gutter == $column-gutter {
|
113
|
+
padding-right: em($gutter) / 2;
|
114
|
+
padding-left: em($gutter) / 2;
|
115
|
+
}
|
116
|
+
|
117
|
+
// If collapsed, get rid of distance padding
|
118
|
+
@if $collapse {
|
119
|
+
padding-right: 0;
|
120
|
+
padding-left: 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
// If offset, calculate appropriate margins
|
124
|
+
@if $large-offset > 0 {
|
125
|
+
margin-#{$default-float}: gridCalc($large-offset, $total);
|
126
|
+
}
|
127
|
+
|
128
|
+
// If a column number is given, calculate width
|
129
|
+
@if $large > 0 {
|
130
|
+
width: gridCalc($large, $total);
|
131
|
+
}
|
132
|
+
|
133
|
+
// Source Ordering, adds left/right depending on which you use.
|
134
|
+
@if $push > 0 {
|
135
|
+
#{$default-float}: gridCalc($push, $total);
|
136
|
+
#{$default-opposite}: auto;
|
137
|
+
}
|
138
|
+
@if $pull > 0 {
|
139
|
+
#{$default-opposite}: gridCalc($pull, $total);
|
140
|
+
#{$default-float}: auto;
|
141
|
+
}
|
142
|
+
|
143
|
+
// If centered, get rid of float and add auto margin
|
144
|
+
@if $center {
|
145
|
+
display: block;
|
146
|
+
float: none;
|
147
|
+
margin-right: auto !important;
|
148
|
+
margin-left: auto !important;
|
149
|
+
}
|
150
|
+
|
151
|
+
// If external call and responsive is true
|
152
|
+
@if $external-call and $responsive {
|
153
|
+
// If small column is specified
|
154
|
+
@if $small > 0 {
|
155
|
+
@include below(small) {
|
156
|
+
@include external-call-column($column:$small, $total:$total, $offset:$small-offset, $parent-offset:$large-offset);
|
157
|
+
}
|
158
|
+
|
159
|
+
// Mini column is allowed only if Small column is specified
|
160
|
+
@if $mini > 0 {
|
161
|
+
@include below(mini) {
|
162
|
+
@include external-call-column($column:$mini, $total:$total, $offset:$mini-offset, $parent-offset:$small-offset);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
// If mini is not passed, stack the column
|
166
|
+
@else {
|
167
|
+
@include below(mini) {
|
168
|
+
@include external-call-column($column:$mini, $total:$total, $offset:$mini-offset, $parent-offset:$small-offset);
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
// If small is not passed, stack the column
|
173
|
+
@else {
|
174
|
+
@include below(small) {
|
175
|
+
@include external-call-column($column:$small, $total:$total, $offset:$small-offset, $parent-offset:$large-offset);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
158
179
|
}
|
159
180
|
|
160
181
|
@if $include-grid {
|
@@ -163,125 +184,84 @@ $column-distance : 20px !default;
|
|
163
184
|
EDGE Grid
|
164
185
|
--------------- */
|
165
186
|
|
166
|
-
body {
|
167
|
-
&.not-responsive {
|
168
|
-
min-width: em($row-max-width + $column-distance);
|
169
|
-
}
|
170
|
-
&.only-responsive-below-small {
|
171
|
-
min-width : $row-max-width;
|
172
|
-
.row {
|
173
|
-
min-width: em($row-max-width);
|
174
|
-
|
175
|
-
// Nested row
|
176
|
-
.row {
|
177
|
-
min-width: 0;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
@include small {
|
182
|
-
min-width : 0;
|
183
|
-
.row {
|
184
|
-
min-width: 0;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
187
|
// Normal row
|
191
188
|
.row {
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
189
|
+
@include grid-row($for-base:true);
|
190
|
+
|
191
|
+
// Collapsed row
|
192
|
+
&.collapse {
|
193
|
+
@include grid-row($collapse:true);
|
194
|
+
.column,
|
195
|
+
.columns {
|
196
|
+
@include grid-column($collapse:true);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
// Nested-collapsed row
|
201
|
+
.row {
|
202
|
+
@include grid-row($nest:true);
|
203
|
+
&.collapse {
|
204
|
+
@include grid-row($nest:true, $collapse:true);
|
205
|
+
}
|
206
|
+
}
|
210
207
|
}
|
211
208
|
|
212
209
|
// Normal column
|
213
210
|
.column,
|
214
211
|
.columns {
|
215
|
-
|
216
|
-
}
|
217
|
-
|
218
|
-
|
219
|
-
// Normal form-row
|
220
|
-
.form-row {
|
221
|
-
@include grid-row($collapse:true, $nest:true);
|
222
|
-
|
223
|
-
.form-column,
|
224
|
-
.form-columns {
|
225
|
-
@include grid-column($collapse:true, $form:true);
|
226
|
-
}
|
212
|
+
@include grid-column($large:$total-columns, $for-base:true);
|
227
213
|
}
|
228
214
|
|
229
215
|
@for $i from 1 through $total-columns {
|
230
|
-
|
216
|
+
.large#{-$i} { @include grid-column($large:$i); }
|
231
217
|
}
|
232
218
|
|
233
219
|
// Centered column
|
234
220
|
.column.large-centered,
|
235
221
|
.columns.large-centered {
|
236
|
-
|
237
|
-
}
|
238
|
-
|
239
|
-
// Centered form-column
|
240
|
-
.form-column.large-centered,
|
241
|
-
.form-columns.large-centered {
|
242
|
-
@include grid-column($center:true, $collapse:null, $float:false, $form:true);
|
222
|
+
@include grid-column($center:true);
|
243
223
|
}
|
244
224
|
|
245
225
|
// Source Ordering
|
246
|
-
@include
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
226
|
+
@include above(small) {
|
227
|
+
@for $i from 1 through $total-columns - 1 {
|
228
|
+
.large-offset-#{$i} {
|
229
|
+
@include grid-column($large-offset:$i);
|
230
|
+
}
|
231
|
+
.push#{-$i} {
|
232
|
+
@include grid-column($push:$i);
|
233
|
+
}
|
234
|
+
.pull#{-$i} {
|
235
|
+
@include grid-column($pull:$i);
|
236
|
+
}
|
237
|
+
}
|
258
238
|
}
|
259
239
|
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
}
|
240
|
+
@if $responsive {
|
241
|
+
// Small screen and below
|
242
|
+
@include below(small) {
|
243
|
+
.column,
|
244
|
+
.columns {
|
245
|
+
@include grid-column($large:$total-columns);
|
246
|
+
}
|
247
|
+
@for $i from 1 through $total-columns {
|
248
|
+
.small#{-$i} {
|
249
|
+
@include grid-column($large:$i);
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
@for $i from 0 through $total-columns - 2 {
|
254
|
+
.small-offset-#{$i} {
|
255
|
+
@include grid-column($large-offset:$i);
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
.column.small-centered,
|
260
|
+
.columns.small-centered {
|
261
|
+
@include grid-column($center:true);
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
} // responsive
|
286
266
|
|
287
267
|
} // $include-grid
|