groundworkcss-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/breadcrumbs_helper.rb~ +5 -0
- data/app/helpers/flash_block_helper.rb~ +18 -0
- data/app/helpers/flash_helper.rb~ +21 -0
- data/app/helpers/groundwork_flash_helper.rb~ +21 -0
- data/app/helpers/modal_helper.rb~ +42 -0
- data/app/helpers/social_glyph_helper.rb~ +12 -0
- data/lib/generators/groundworkcss/install/install_generator.rb~ +44 -0
- data/lib/generators/groundworkcss/install/templates/application.css.scss~ +8 -0
- data/lib/generators/groundworkcss/install/templates/application.css~ +7 -0
- data/lib/generators/groundworkcss/install/templates/application.js~ +10 -0
- data/lib/generators/groundworkcss/install/templates/groundwork-and-overrides.scss~ +12 -0
- data/lib/generators/groundworkcss/install/templates/groundwork-overrides.scss~ +7 -0
- data/lib/generators/groundworkcss/install/templates/groundwork.coffee~ +0 -0
- data/lib/generators/groundworkcss/install/templates/groundwork.js~ +1 -0
- data/lib/generators/groundworkcss/layout/layout_generator.rb~ +1 -1
- data/lib/generators/groundworkcss/layout/templates/_header.html.erb~ +24 -0
- data/lib/generators/groundworkcss/layout/templates/_sidebar.html.erb~ +18 -0
- data/lib/generators/groundworkcss/layout/templates/layout.html.erb~ +44 -0
- data/lib/groundworkcss/rails/bootstrap.rb~ +2 -0
- data/lib/groundworkcss/rails/engine.rb~ +30 -0
- data/lib/groundworkcss/rails/version.rb +1 -1
- data/lib/groundworkcss/rails/version.rb~ +1 -1
- data/lib/twitter-bootstrap-rails.rb~ +10 -0
- data/vendor/assets/javascripts/groundwork.js~ +8 -0
- data/vendor/assets/javascripts/groundworkcss/groundwork.js +24 -217
- data/vendor/assets/javascripts/groundworkcss/groundwork.js~ +7 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js +1 -1
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.popover.js +1 -1
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveTables.js +1 -1
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveText.js +1 -1
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.tooltip.js +24 -10
- data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +3 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_classes.scss +149 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss~ +534 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_grid.scss +46 -366
- data/vendor/assets/stylesheets/groundworkcss-scss/_layout.scss +11 -11
- data/vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss +9 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +4 -106
- data/vendor/assets/stylesheets/groundworkcss-scss/_social-icons.scss~ +92 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_tooltips.scss +5 -5
- data/vendor/assets/stylesheets/groundworkcss-scss/_typography.scss +48 -43
- data/vendor/assets/stylesheets/groundworkcss-scss/_variables.scss +47 -46
- data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +3 -0
- metadata +318 -299
- data/vendor/assets/javascripts/groundworkcss/coffee/groundwork.coffee +0 -207
- data/vendor/assets/javascripts/groundworkcss/coffee/plugins/jquery.modals.coffee +0 -162
- data/vendor/assets/javascripts/groundworkcss/coffee/plugins/jquery.popover.coffee +0 -198
- data/vendor/assets/javascripts/groundworkcss/coffee/plugins/jquery.responsiveTables.coffee +0 -56
- data/vendor/assets/javascripts/groundworkcss/coffee/plugins/jquery.responsiveText.coffee +0 -32
- data/vendor/assets/javascripts/groundworkcss/coffee/plugins/jquery.tooltip.coffee +0 -121
@@ -1,384 +1,64 @@
|
|
1
1
|
// =============================================
|
2
2
|
// Fractional grid system by Gary Hepting
|
3
|
-
// Last Updated:2013-
|
3
|
+
// Last Updated:2013-3-05
|
4
4
|
//
|
5
5
|
// ***** REQUIRES BORDER BOX SIZING *****
|
6
6
|
//
|
7
7
|
// =============================================
|
8
8
|
|
9
9
|
|
10
|
+
/////////////////////////////////////
|
11
|
+
// grid system - placeholders //
|
12
|
+
/////////////////////////////////////
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
///////////////////////
|
15
|
-
.container { max-width:$max-width;margin:0 auto; }
|
16
|
-
.row { @extend .clear;width:$one-whole; }
|
17
|
-
%column { float:left;position:relative;min-height:1px; }
|
18
|
-
.centered { float:none !important;margin:0 auto !important; }
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
///////////////////////
|
24
|
-
// fractions //
|
25
|
-
///////////////////////
|
26
|
-
// wholes
|
27
|
-
.whole,
|
28
|
-
.wholes { @extend %column;
|
29
|
-
&.one { width:$one-whole; }
|
30
|
-
}
|
31
|
-
|
32
|
-
// halves
|
33
|
-
.half,
|
34
|
-
.halves { @extend %column;
|
35
|
-
&.one { width:$one-half; }
|
36
|
-
&.two { width:$one-whole; }
|
37
|
-
// helpers
|
38
|
-
&.right-one { left:$one-half; }
|
39
|
-
&.left-one { right:$one-half; }
|
40
|
-
&.skip-one { margin-left:$one-half; }
|
41
|
-
}
|
42
|
-
|
43
|
-
// thirds
|
44
|
-
.third,
|
45
|
-
.thirds { @extend %column;
|
46
|
-
&.one { width:$one-third; }
|
47
|
-
&.two { width:$two-thirds; }
|
48
|
-
&.three { width:$three-thirds; }
|
49
|
-
// helpers
|
50
|
-
&.right-one { left:$one-third; }
|
51
|
-
&.right-two { left:$two-thirds; }
|
52
|
-
&.left-one { right:$one-third; }
|
53
|
-
&.left-two { right:$two-thirds; }
|
54
|
-
&.skip-one { margin-left:$one-third; }
|
55
|
-
&.skip-two { margin-left:$two-thirds; }
|
56
|
-
}
|
57
|
-
|
58
|
-
// fourths
|
59
|
-
.fourth,
|
60
|
-
.fourths { @extend %column;
|
61
|
-
&.one { width:$one-fourth; }
|
62
|
-
&.two { width:$two-fourths; }
|
63
|
-
&.three { width:$three-fourths; }
|
64
|
-
&.four { width:$four-fourths; }
|
65
|
-
// helpers
|
66
|
-
&.right-one { left:$one-fourth; }
|
67
|
-
&.right-two { left:$one-half; }
|
68
|
-
&.right-three { left:$three-fourths; }
|
69
|
-
&.left-one { right:$one-fourth; }
|
70
|
-
&.left-two { right:$one-half; }
|
71
|
-
&.left-three { right:$three-fourths; }
|
72
|
-
&.skip-one { margin-left:$one-fourth; }
|
73
|
-
&.skip-two { margin-left:$one-half; }
|
74
|
-
&.skip-three { margin-left:$three-fourths; }
|
75
|
-
}
|
76
|
-
|
77
|
-
// fifths
|
78
|
-
.fifth,
|
79
|
-
.fifths { @extend %column;
|
80
|
-
&.one { width:$one-fifth; }
|
81
|
-
&.two { width:$two-fifths; }
|
82
|
-
&.three { width:$three-fifths; }
|
83
|
-
&.four { width:$four-fifths; }
|
84
|
-
&.five { width:$five-fifths; }
|
85
|
-
// helpers
|
86
|
-
&.right-one { left:$one-fifth; }
|
87
|
-
&.right-two { left:$two-fifths; }
|
88
|
-
&.right-three { left:$three-fifths; }
|
89
|
-
&.right-four { left:$four-fifths; }
|
90
|
-
&.left-one { right:$one-fifth; }
|
91
|
-
&.left-two { right:$two-fifths; }
|
92
|
-
&.left-three { right:$three-fifths; }
|
93
|
-
&.left-four { right:$four-fifths; }
|
94
|
-
&.skip-one { margin-left:$one-fifth; }
|
95
|
-
&.skip-two { margin-left:$two-fifths; }
|
96
|
-
&.skip-three { margin-left:$three-fifths; }
|
97
|
-
&.skip-four { margin-left:$four-fifths; }
|
98
|
-
// helpers
|
99
|
-
&.right-one { left:$one-fifth; }
|
100
|
-
&.right-two { left:$two-fifths; }
|
101
|
-
&.right-three { left:$three-fifths; }
|
102
|
-
&.right-four { left:$four-fifths; }
|
103
|
-
&.left-one { right:$one-fifth; }
|
104
|
-
&.left-two { right:$two-fifths; }
|
105
|
-
&.left-three { right:$three-fifths; }
|
106
|
-
&.left-four { right:$four-fifths; }
|
107
|
-
&.skip-one { margin-left:$one-fifth; }
|
108
|
-
&.skip-two { margin-left:$two-fifths; }
|
109
|
-
&.skip-three { margin-left:$three-fifths; }
|
110
|
-
&.skip-four { margin-left:$four-fifths; }
|
111
|
-
}
|
112
|
-
|
113
|
-
// sixths
|
114
|
-
.sixth,
|
115
|
-
.sixths { @extend %column;
|
116
|
-
&.one { width:$one-sixth; }
|
117
|
-
&.two { width:$two-sixths; }
|
118
|
-
&.three { width:$three-sixths; }
|
119
|
-
&.four { width:$four-sixths; }
|
120
|
-
&.five { width:$five-sixths; }
|
121
|
-
&.six { width:$six-sixths; }
|
122
|
-
// helpers
|
123
|
-
&.right-one { left:$one-sixth; }
|
124
|
-
&.right-two { left:$two-sixths; }
|
125
|
-
&.right-three { left:$three-sixths; }
|
126
|
-
&.right-four { left:$four-sixths; }
|
127
|
-
&.right-five { left:$five-sixths; }
|
128
|
-
&.left-one { right:$one-sixth; }
|
129
|
-
&.left-two { right:$two-sixths; }
|
130
|
-
&.left-three { right:$three-sixths; }
|
131
|
-
&.left-four { right:$four-sixths; }
|
132
|
-
&.left-five { right:$five-sixths; }
|
133
|
-
&.skip-one { margin-left:$one-sixth; }
|
134
|
-
&.skip-two { margin-left:$two-sixths; }
|
135
|
-
&.skip-three { margin-left:$three-sixths; }
|
136
|
-
&.skip-four { margin-left:$four-sixths; }
|
137
|
-
&.skip-five { margin-left:$five-sixths; }
|
138
|
-
}
|
139
|
-
|
140
|
-
// sevenths
|
141
|
-
.seventh,
|
142
|
-
.sevenths { @extend %column;
|
143
|
-
&.one { width:$one-seventh; }
|
144
|
-
&.two { width:$two-sevenths; }
|
145
|
-
&.three { width:$three-sevenths; }
|
146
|
-
&.four { width:$four-sevenths; }
|
147
|
-
&.five { width:$five-sevenths; }
|
148
|
-
&.six { width:$six-sevenths; }
|
149
|
-
&.seven { width:$seven-sevenths; }
|
150
|
-
// helpers
|
151
|
-
&.right-one { left:$one-seventh; }
|
152
|
-
&.right-two { left:$two-sevenths; }
|
153
|
-
&.right-three { left:$three-sevenths; }
|
154
|
-
&.right-four { left:$four-sevenths; }
|
155
|
-
&.right-five { left:$five-sevenths; }
|
156
|
-
&.right-six { left:$six-sevenths; }
|
157
|
-
&.left-one { right:$one-seventh; }
|
158
|
-
&.left-two { right:$two-sevenths; }
|
159
|
-
&.left-three { right:$three-sevenths; }
|
160
|
-
&.left-four { right:$four-sevenths; }
|
161
|
-
&.left-five { right:$five-sevenths; }
|
162
|
-
&.left-six { right:$six-sevenths; }
|
163
|
-
&.skip-one { margin-left:$one-seventh; }
|
164
|
-
&.skip-two { margin-left:$two-sevenths; }
|
165
|
-
&.skip-three { margin-left:$three-sevenths; }
|
166
|
-
&.skip-four { margin-left:$four-sevenths; }
|
167
|
-
&.skip-five { margin-left:$five-sevenths; }
|
168
|
-
&.skip-six { margin-left:$six-sevenths; }
|
169
|
-
}
|
170
|
-
|
171
|
-
// eighths
|
172
|
-
.eighth,
|
173
|
-
.eighths { @extend %column;
|
174
|
-
&.one { width:$one-eighth; }
|
175
|
-
&.two { width:$two-eighths; }
|
176
|
-
&.three { width:$three-eighths; }
|
177
|
-
&.four { width:$four-eighths; }
|
178
|
-
&.five { width:$five-eighths; }
|
179
|
-
&.six { width:$six-eighths; }
|
180
|
-
&.seven { width:$seven-eighths; }
|
181
|
-
&.eight { width:$eight-eighths; }
|
182
|
-
// helpers
|
183
|
-
&.right-one { left:$one-eighth; }
|
184
|
-
&.right-two { left:$two-eighths; }
|
185
|
-
&.right-three { left:$three-eighths; }
|
186
|
-
&.right-four { left:$four-eighths; }
|
187
|
-
&.right-five { left:$five-eighths; }
|
188
|
-
&.right-six { left:$six-eighths; }
|
189
|
-
&.right-seven { left:$seven-eighths; }
|
190
|
-
&.left-one { right:$one-eighth; }
|
191
|
-
&.left-two { right:$two-eighths; }
|
192
|
-
&.left-three { right:$three-eighths; }
|
193
|
-
&.left-four { right:$four-eighths; }
|
194
|
-
&.left-five { right:$five-eighths; }
|
195
|
-
&.left-six { right:$six-eighths; }
|
196
|
-
&.left-seven { right:$seven-eighths; }
|
197
|
-
&.skip-one { margin-left:$one-eighth; }
|
198
|
-
&.skip-two { margin-left:$two-eighths; }
|
199
|
-
&.skip-three { margin-left:$three-eighths; }
|
200
|
-
&.skip-four { margin-left:$four-eighths; }
|
201
|
-
&.skip-five { margin-left:$five-eighths; }
|
202
|
-
&.skip-six { margin-left:$six-eighths; }
|
203
|
-
&.skip-seven { margin-left:$seven-eighths; }
|
14
|
+
%container {
|
15
|
+
max-width: $max-width;
|
16
|
+
margin: 0 auto;
|
204
17
|
}
|
205
18
|
|
206
|
-
|
207
|
-
.
|
208
|
-
|
209
|
-
&.one { width:$one-ninth; }
|
210
|
-
&.two { width:$two-ninths; }
|
211
|
-
&.three { width:$three-ninths; }
|
212
|
-
&.four { width:$four-ninths; }
|
213
|
-
&.five { width:$five-ninths; }
|
214
|
-
&.six { width:$six-ninths; }
|
215
|
-
&.seven { width:$seven-ninths; }
|
216
|
-
&.eight { width:$eight-ninths; }
|
217
|
-
&.nine { width:$nine-ninths; }
|
218
|
-
// helpers
|
219
|
-
&.right-one { left:$one-ninth; }
|
220
|
-
&.right-two { left:$two-ninths; }
|
221
|
-
&.right-three { left:$three-ninths; }
|
222
|
-
&.right-four { left:$four-ninths; }
|
223
|
-
&.right-five { left:$five-ninths; }
|
224
|
-
&.right-six { left:$six-ninths; }
|
225
|
-
&.right-seven { left:$seven-ninths; }
|
226
|
-
&.right-eight { left:$eight-ninths; }
|
227
|
-
&.left-one { right:$one-ninth; }
|
228
|
-
&.left-two { right:$two-ninths; }
|
229
|
-
&.left-three { right:$three-ninths; }
|
230
|
-
&.left-four { right:$four-ninths; }
|
231
|
-
&.left-five { right:$five-ninths; }
|
232
|
-
&.left-six { right:$six-ninths; }
|
233
|
-
&.left-seven { right:$seven-ninths; }
|
234
|
-
&.left-eight { right:$eight-ninths; }
|
235
|
-
&.skip-one { margin-left:$one-ninth; }
|
236
|
-
&.skip-two { margin-left:$two-ninths; }
|
237
|
-
&.skip-three { margin-left:$three-ninths; }
|
238
|
-
&.skip-four { margin-left:$four-ninths; }
|
239
|
-
&.skip-five { margin-left:$five-ninths; }
|
240
|
-
&.skip-six { margin-left:$six-ninths; }
|
241
|
-
&.skip-seven { margin-left:$seven-ninths; }
|
242
|
-
&.skip-eight { margin-left:$eight-ninths; }
|
19
|
+
%row {
|
20
|
+
@extend .clear;
|
21
|
+
width: $one-whole;
|
243
22
|
}
|
244
23
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
&.two { width:$two-tenths; }
|
250
|
-
&.three { width:$three-tenths; }
|
251
|
-
&.four { width:$four-tenths; }
|
252
|
-
&.five { width:$five-tenths; }
|
253
|
-
&.six { width:$six-tenths; }
|
254
|
-
&.seven { width:$seven-tenths; }
|
255
|
-
&.eight { width:$eight-tenths; }
|
256
|
-
&.nine { width:$nine-tenths; }
|
257
|
-
&.ten { width:$ten-tenths; }
|
258
|
-
// helpers
|
259
|
-
&.right-one { left:$one-tenth; }
|
260
|
-
&.right-two { left:$two-tenths; }
|
261
|
-
&.right-three { left:$three-tenths; }
|
262
|
-
&.right-four { left:$four-tenths; }
|
263
|
-
&.right-five { left:$five-tenths; }
|
264
|
-
&.right-six { left:$six-tenths; }
|
265
|
-
&.right-seven { left:$seven-tenths; }
|
266
|
-
&.right-eight { left:$eight-tenths; }
|
267
|
-
&.right-nine { left:$nine-tenths; }
|
268
|
-
&.left-one { right:$one-tenth; }
|
269
|
-
&.left-two { right:$two-tenths; }
|
270
|
-
&.left-three { right:$three-tenths; }
|
271
|
-
&.left-four { right:$four-tenths; }
|
272
|
-
&.left-five { right:$five-tenths; }
|
273
|
-
&.left-six { right:$six-tenths; }
|
274
|
-
&.left-seven { right:$seven-tenths; }
|
275
|
-
&.left-eight { right:$eight-tenths; }
|
276
|
-
&.left-nine { right:$nine-tenths; }
|
277
|
-
&.skip-one { margin-left:$one-tenth; }
|
278
|
-
&.skip-two { margin-left:$two-tenths; }
|
279
|
-
&.skip-three { margin-left:$three-tenths; }
|
280
|
-
&.skip-four { margin-left:$four-tenths; }
|
281
|
-
&.skip-five { margin-left:$five-tenths; }
|
282
|
-
&.skip-six { margin-left:$six-tenths; }
|
283
|
-
&.skip-seven { margin-left:$seven-tenths; }
|
284
|
-
&.skip-eight { margin-left:$eight-tenths; }
|
285
|
-
&.skip-nine { margin-left:$nine-tenths; }
|
24
|
+
%column {
|
25
|
+
float: left;
|
26
|
+
position: relative;
|
27
|
+
min-height: 1px;
|
286
28
|
}
|
287
29
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
&.two { width:$two-elevenths; }
|
293
|
-
&.three { width:$three-elevenths; }
|
294
|
-
&.four { width:$four-elevenths; }
|
295
|
-
&.five { width:$five-elevenths; }
|
296
|
-
&.six { width:$six-elevenths; }
|
297
|
-
&.seven { width:$seven-elevenths; }
|
298
|
-
&.eight { width:$eight-elevenths; }
|
299
|
-
&.nine { width:$nine-elevenths; }
|
300
|
-
&.ten { width:$ten-elevenths; }
|
301
|
-
&.eleven { width:$eleven-elevenths; }
|
302
|
-
// helpers
|
303
|
-
&.right-one { left:$one-eleventh; }
|
304
|
-
&.right-two { left:$two-elevenths; }
|
305
|
-
&.right-three { left:$three-elevenths; }
|
306
|
-
&.right-four { left:$four-elevenths; }
|
307
|
-
&.right-five { left:$five-elevenths; }
|
308
|
-
&.right-six { left:$six-elevenths; }
|
309
|
-
&.right-seven { left:$seven-elevenths; }
|
310
|
-
&.right-eight { left:$eight-elevenths; }
|
311
|
-
&.right-nine { left:$nine-elevenths; }
|
312
|
-
&.right-ten { left:$ten-elevenths; }
|
313
|
-
&.left-one { right:$one-eleventh; }
|
314
|
-
&.left-two { right:$two-elevenths; }
|
315
|
-
&.left-three { right:$three-elevenths; }
|
316
|
-
&.left-four { right:$four-elevenths; }
|
317
|
-
&.left-five { right:$five-elevenths; }
|
318
|
-
&.left-six { right:$six-elevenths; }
|
319
|
-
&.left-seven { right:$seven-elevenths; }
|
320
|
-
&.left-eight { right:$eight-elevenths; }
|
321
|
-
&.left-nine { right:$nine-elevenths; }
|
322
|
-
&.left-ten { right:$ten-elevenths; }
|
323
|
-
&.skip-one { margin-left:$one-eleventh; }
|
324
|
-
&.skip-two { margin-left:$two-elevenths; }
|
325
|
-
&.skip-three { margin-left:$three-elevenths; }
|
326
|
-
&.skip-four { margin-left:$four-elevenths; }
|
327
|
-
&.skip-five { margin-left:$five-elevenths; }
|
328
|
-
&.skip-six { margin-left:$six-elevenths; }
|
329
|
-
&.skip-seven { margin-left:$seven-elevenths; }
|
330
|
-
&.skip-eight { margin-left:$eight-elevenths; }
|
331
|
-
&.skip-nine { margin-left:$nine-elevenths; }
|
332
|
-
&.skip-ten { margin-left:$ten-elevenths; }
|
30
|
+
%centered {
|
31
|
+
float: none !important;
|
32
|
+
margin-left: auto !important;
|
33
|
+
margin-right: auto !important;
|
333
34
|
}
|
334
35
|
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
&.left-two { right:$two-twelfths; }
|
364
|
-
&.left-three { right:$three-twelfths; }
|
365
|
-
&.left-four { right:$four-twelfths; }
|
366
|
-
&.left-five { right:$five-twelfths; }
|
367
|
-
&.left-six { right:$six-twelfths; }
|
368
|
-
&.left-seven { right:$seven-twelfths; }
|
369
|
-
&.left-eight { right:$eight-twelfths; }
|
370
|
-
&.left-nine { right:$nine-twelfths; }
|
371
|
-
&.left-ten { right:$ten-twelfths; }
|
372
|
-
&.right-eleven { right:$eleven-twelfths; }
|
373
|
-
&.skip-one { margin-left:$one-twelfth; }
|
374
|
-
&.skip-two { margin-left:$two-twelfths; }
|
375
|
-
&.skip-three { margin-left:$three-twelfths; }
|
376
|
-
&.skip-four { margin-left:$four-twelfths; }
|
377
|
-
&.skip-five { margin-left:$five-twelfths; }
|
378
|
-
&.skip-six { margin-left:$six-twelfths; }
|
379
|
-
&.skip-seven { margin-left:$seven-twelfths; }
|
380
|
-
&.skip-eight { margin-left:$eight-twelfths; }
|
381
|
-
&.skip-nine { margin-left:$nine-twelfths; }
|
382
|
-
&.skip-ten { margin-left:$ten-twelfths; }
|
383
|
-
&.skip-eleven { margin-left:$eleven-twelfths; }
|
36
|
+
$numbers: one two three four five six seven eight nine ten eleven twelve;
|
37
|
+
$fractions: whole half third fourth fifth sixth seventh eighth ninth tenth eleventh twelfth;
|
38
|
+
$fractions-plural: wholes halves thirds fourths fifths sixths sevenths eighths ninths tenths elevenths twelfths;
|
39
|
+
|
40
|
+
// function to generate the grid code
|
41
|
+
@for $i from 1 through length($numbers) {
|
42
|
+
%#{nth($fractions, $i)},
|
43
|
+
%#{nth($fractions-plural, $i)} {
|
44
|
+
width: percentage(1 / $i);
|
45
|
+
@extend %column;
|
46
|
+
@for $width from 1 through $i {
|
47
|
+
&%#{nth($numbers, $width)} {
|
48
|
+
width: percentage($width / $i);
|
49
|
+
@extend %column;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
@for $right-left-skip from 1 through $i - 1 {
|
53
|
+
&%right-#{nth($numbers, $right-left-skip)} {
|
54
|
+
left: percentage($right-left-skip / $i);
|
55
|
+
}
|
56
|
+
&%left-#{nth($numbers, $right-left-skip)} {
|
57
|
+
right: percentage($right-left-skip / $i);
|
58
|
+
}
|
59
|
+
&%skip-#{nth($numbers, $right-left-skip)} {
|
60
|
+
margin-left: percentage($right-left-skip / $i);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
384
64
|
}
|
@@ -17,43 +17,43 @@
|
|
17
17
|
.pull-left { float:left; }
|
18
18
|
.padded { padding:$gutter;
|
19
19
|
&.double { padding:$gutter*2; }
|
20
|
-
&.
|
20
|
+
&.triple { padding:$gutter*3; }
|
21
21
|
}
|
22
22
|
.pad-top { padding-top:$gutter;
|
23
23
|
&.double { padding-top:$gutter*2; }
|
24
|
-
&.
|
24
|
+
&.triple { padding-top:$gutter*3; }
|
25
25
|
}
|
26
26
|
.pad-right { padding-right:$gutter;
|
27
27
|
&.double { padding-right:$gutter*2; }
|
28
|
-
&.
|
28
|
+
&.triple { padding-right:$gutter*3; }
|
29
29
|
}
|
30
30
|
.pad-bottom { padding-bottom:$gutter;
|
31
31
|
&.double { padding-bottom:$gutter*2; }
|
32
|
-
&.
|
32
|
+
&.triple { padding-bottom:$gutter*3; }
|
33
33
|
}
|
34
34
|
.pad-left { padding-left:$gutter;
|
35
35
|
&.double { padding-left:$gutter*2; }
|
36
|
-
&.
|
36
|
+
&.triple { padding-left:$gutter*3; }
|
37
37
|
}
|
38
38
|
.gapped { margin:$gutter;
|
39
39
|
&.double { margin:$gutter*2; }
|
40
|
-
&.
|
40
|
+
&.triple { margin:$gutter*3; }
|
41
41
|
}
|
42
42
|
.gap-top { margin-top:$gutter;
|
43
43
|
&.double { margin-top:$gutter*2; }
|
44
|
-
&.
|
44
|
+
&.triple { margin-top:$gutter*3; }
|
45
45
|
}
|
46
46
|
.gap-right { margin-right:$gutter;
|
47
47
|
&.double { margin-right:$gutter*2; }
|
48
|
-
&.
|
48
|
+
&.triple { margin-right:$gutter*3; }
|
49
49
|
}
|
50
50
|
.gap-bottom { margin-bottom:$gutter;
|
51
51
|
&.double { margin-bottom:$gutter*2; }
|
52
|
-
&.
|
52
|
+
&.triple { margin-bottom:$gutter*3; }
|
53
53
|
}
|
54
54
|
.gap-left { margin-left:$gutter;
|
55
|
-
&.double {
|
56
|
-
&.
|
55
|
+
&.double { margin-left:$gutter*2; }
|
56
|
+
&.triple { margin-left:$gutter*3; }
|
57
57
|
}
|
58
58
|
.border-right { border-right:1px solid $border-color; }
|
59
59
|
.border-left { border-left:1px solid $border-color; }
|