macbury-metro-ui-rails 0.15.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +21 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +4 -0
  4. data/README.md +44 -0
  5. data/Rakefile +74 -0
  6. data/lib/generators/metro/layout/layout_generator.rb +19 -0
  7. data/lib/generators/metro/layout/templates/layout.html.erb +92 -0
  8. data/lib/metro/ui/rails/engine.rb +16 -0
  9. data/lib/metro/ui/rails/metro.rb +2 -0
  10. data/lib/metro/ui/rails/version.rb +7 -0
  11. data/lib/metro-ui-rails.rb +10 -0
  12. data/metro-ui-rails.gemspec +20 -0
  13. data/vendor/assets/fonts/metro-ui/iconFont.eot +0 -0
  14. data/vendor/assets/fonts/metro-ui/iconFont.svg +2005 -0
  15. data/vendor/assets/fonts/metro-ui/iconFont.ttf +0 -0
  16. data/vendor/assets/fonts/metro-ui/iconFont.woff +0 -0
  17. data/vendor/assets/javascripts/metro-ui/accordion.js +44 -0
  18. data/vendor/assets/javascripts/metro-ui/buttonset.js +34 -0
  19. data/vendor/assets/javascripts/metro-ui/carousel.js +368 -0
  20. data/vendor/assets/javascripts/metro-ui/dropdown.js +95 -0
  21. data/vendor/assets/javascripts/metro-ui/input-control.js +103 -0
  22. data/vendor/assets/javascripts/metro-ui/pagecontrol.js +64 -0
  23. data/vendor/assets/javascripts/metro-ui/rating.js +249 -0
  24. data/vendor/assets/javascripts/metro-ui/slider.js +248 -0
  25. data/vendor/assets/javascripts/metro-ui/tile-drag.js +332 -0
  26. data/vendor/assets/javascripts/metro-ui/tile-slider.js +196 -0
  27. data/vendor/assets/javascripts/metro-ui.js +10 -0
  28. data/vendor/toolkit/metro-ui/accordion.less +69 -0
  29. data/vendor/toolkit/metro-ui/bricks.less +59 -0
  30. data/vendor/toolkit/metro-ui/buttons.less +434 -0
  31. data/vendor/toolkit/metro-ui/cards.less +113 -0
  32. data/vendor/toolkit/metro-ui/carousel.less +109 -0
  33. data/vendor/toolkit/metro-ui/code.less +47 -0
  34. data/vendor/toolkit/metro-ui/colors.less +115 -0
  35. data/vendor/toolkit/metro-ui/forms.less +434 -0
  36. data/vendor/toolkit/metro-ui/grid.less +115 -0
  37. data/vendor/toolkit/metro-ui/hero.less +18 -0
  38. data/vendor/toolkit/metro-ui/icons.less +1168 -0
  39. data/vendor/toolkit/metro-ui/images.less +121 -0
  40. data/vendor/toolkit/metro-ui/jqgrid.less +12 -0
  41. data/vendor/toolkit/metro-ui/layout.less +287 -0
  42. data/vendor/toolkit/metro-ui/listview.less +143 -0
  43. data/vendor/toolkit/metro-ui/menus.less +249 -0
  44. data/vendor/toolkit/metro-ui/modern-responsive-max480.less +147 -0
  45. data/vendor/toolkit/metro-ui/modern-responsive-max767.less +241 -0
  46. data/vendor/toolkit/metro-ui/modern-responsive-max979.less +97 -0
  47. data/vendor/toolkit/metro-ui/modern-responsive-min1200.less +28 -0
  48. data/vendor/toolkit/metro-ui/modern-responsive.less +13 -0
  49. data/vendor/toolkit/metro-ui/modern.less +35 -0
  50. data/vendor/toolkit/metro-ui/notices.less +185 -0
  51. data/vendor/toolkit/metro-ui/pagecontrol.less +100 -0
  52. data/vendor/toolkit/metro-ui/progress.less +22 -0
  53. data/vendor/toolkit/metro-ui/rating.less +80 -0
  54. data/vendor/toolkit/metro-ui/reset.less +504 -0
  55. data/vendor/toolkit/metro-ui/routines.less +141 -0
  56. data/vendor/toolkit/metro-ui/sidebar.less +136 -0
  57. data/vendor/toolkit/metro-ui/slider.less +67 -0
  58. data/vendor/toolkit/metro-ui/tables.less +164 -0
  59. data/vendor/toolkit/metro-ui/theme-dark.less +54 -0
  60. data/vendor/toolkit/metro-ui/tiles.less +285 -0
  61. data/vendor/toolkit/metro-ui/typography.less +347 -0
  62. metadata +139 -0
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Metro UI CSS
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ *
6
+ * Code.less
7
+ *
8
+ */
9
+
10
+ code, pre {
11
+ padding: 0 3px 2px;
12
+ #font > .normal;
13
+ font-size: 10pt;
14
+ color: @grayDark;
15
+ }
16
+
17
+ code {
18
+ padding: 2px 4px;
19
+ #font > .tertiary;
20
+ color: #d14;
21
+ background-color: #f7f7f9;
22
+ border: 1px #e1e1e8 solid;
23
+ }
24
+
25
+ pre {
26
+ display: block;
27
+ padding: 10px;
28
+ margin: 0;
29
+ line-height: 14pt;
30
+ word-break: break-all;
31
+ word-wrap: break-word;
32
+ white-space: pre;
33
+ white-space: pre-wrap;
34
+ background-color: #f5f5f5;
35
+ border: 1px solid rgba(0,0,0,.15);
36
+
37
+ &.prettyprint {
38
+ margin-bottom: 10px;
39
+ }
40
+
41
+ code {
42
+ padding: 0;
43
+ color: inherit;
44
+ background-color: transparent;
45
+ border: 0;
46
+ }
47
+ }
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Metro UI CSS
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ *
6
+ * Variables.less
7
+ */
8
+
9
+ // Units
10
+ @unit: 20px;
11
+ @subunit: 5px;
12
+
13
+ // Color vars
14
+ @white: #ffffff;
15
+ @black: #000000;
16
+ @blue: #2d89ef;
17
+ @blueLight: #EFF4FF;
18
+ @blueDark: #2B5797;
19
+ @green: #00a300;
20
+ @greenLight: #99b433;
21
+ @greenDark: #1E7145;
22
+ @red: #b91d47;
23
+ @yellow: #ffc40d;
24
+ @orange: #e3a21a;
25
+ @orangeDark: #da532c;
26
+ @pinkDark: #7E3878;
27
+ @pink: #9f00a7;
28
+ @purple: #603cba;
29
+ @darken: #1d1d1d;
30
+ @lighten: #d5e7ec;
31
+ @grayDark: #525252;
32
+
33
+
34
+ // Foregraund colors classes
35
+ .fg-color-blue {color: @blue !important;}
36
+ .fg-color-blueLight {color: @blueLight !important;}
37
+ .fg-color-blueDark {color: @blueDark !important;}
38
+ .fg-color-green {color: @green !important;}
39
+ .fg-color-greenLight {color: @greenLight !important;}
40
+ .fg-color-greenDark {color: @greenDark !important;}
41
+ .fg-color-red {color: @red !important;}
42
+ .fg-color-yellow {color: @yellow !important;}
43
+ .fg-color-orange {color: @orange !important;}
44
+ .fg-color-orangeDark {color: @orangeDark !important;}
45
+ .fg-color-pink {color: @pink !important;}
46
+ .fg-color-pinkDark {color: @pinkDark !important;}
47
+ .fg-color-purple {color: @purple !important;}
48
+ .fg-color-darken {color: @darken !important;}
49
+ .fg-color-lighten {color: @lighten !important;}
50
+ .fg-color-white {color: @white !important;}
51
+ .fg-color-grayDark {color: @grayDark !important;}
52
+
53
+ // Background colors classes
54
+ .bg-color-blue {background-color: @blue !important;}
55
+ .bg-color-blueLight {background-color: @blueLight !important;}
56
+ .bg-color-blueDark {background-color: @blueDark !important;}
57
+ .bg-color-green {background-color: @green !important;}
58
+ .bg-color-greenLight {background-color: @greenLight !important;}
59
+ .bg-color-greenDark {background-color: @greenDark !important;}
60
+ .bg-color-red {background-color: @red !important;}
61
+ .bg-color-yellow {background-color: @yellow !important;}
62
+ .bg-color-orange {background-color: @orange !important;}
63
+ .bg-color-orangeDark {background-color: @orangeDark !important;}
64
+ .bg-color-pink {background-color: @pink !important;}
65
+ .bg-color-pinkDark {background-color: @pinkDark !important;}
66
+ .bg-color-purple {background-color: @purple !important;}
67
+ .bg-color-darken {background-color: @darken !important;}
68
+ .bg-color-lighten {background-color: @lighten !important;}
69
+ .bg-color-white {background-color: @white !important;}
70
+ .bg-color-grayDark {background-color: @grayDark !important;}
71
+
72
+ // Border colors classes
73
+
74
+ [class*=border-color]{
75
+ border: 2px solid;
76
+ }
77
+
78
+ .border-color-blue {border-color: @blue !important;}
79
+ .border-color-blueLight {border-color: @blueLight !important;}
80
+ .border-color-blueDark {border-color: @blueDark !important;}
81
+ .border-color-green {border-color: @green !important;}
82
+ .border-color-greenLight {border-color: @greenLight !important;}
83
+ .border-color-greenDark {border-color: @greenDark !important;}
84
+ .border-color-red {border-color: @red !important;}
85
+ .border-color-yellow {border-color: @yellow !important;}
86
+ .border-color-orange {border-color: @orange !important;}
87
+ .border-color-orangeDark {border-color: @orangeDark !important;}
88
+ .border-color-pink {border-color: @pink !important;}
89
+ .border-color-pinkDark {border-color: @pinkDark !important;}
90
+ .border-color-purple {border-color: @purple !important;}
91
+ .border-color-darken {border-color: @darken !important;}
92
+ .border-color-lighten {border-color: @lighten !important;}
93
+ .border-color-white {border-color: @white !important;}
94
+ .border-color-grayDark {border-color: @grayDark !important;}
95
+
96
+ *:hover[class=outline-color] {
97
+ outline: 3px solid;
98
+ }
99
+ .outline-color-blue {outline-color: @blue !important;}
100
+ .outline-color-blueLight {outline-color: @blueLight !important;}
101
+ .outline-color-blueDark {outline-color: @blueDark !important;}
102
+ .outline-color-green {outline-color: @green !important;}
103
+ .outline-color-greenLight {outline-color: @greenLight !important;}
104
+ .outline-color-greenDark {outline-color: @greenDark !important;}
105
+ .outline-color-red {outline-color: @red !important;}
106
+ .outline-color-yellow {outline-color: @yellow !important;}
107
+ .outline-color-orange {outline-color: @orange !important;}
108
+ .outline-color-orangeDark {outline-color: @orangeDark !important;}
109
+ .outline-color-pink {outline-color: @pink !important;}
110
+ .outline-color-pinkDark {outline-color: @pinkDark !important;}
111
+ .outline-color-purple {outline-color: @purple !important;}
112
+ .outline-color-darken {outline-color: @darken !important;}
113
+ .outline-color-lighten {outline-color: @lighten !important;}
114
+ .outline-color-white {outline-color: @white !important;}
115
+ .outline-color-grayDark {outline-color: @grayDark !important;}
@@ -0,0 +1,434 @@
1
+ /*
2
+ * Metro UI CSS
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ *
6
+ * Layout.less
7
+ */
8
+
9
+ @textbox_pass_active_icon: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i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 10px;
19
+ cursor: pointer;
20
+
21
+ & > input[type=checkbox] {
22
+ position: absolute;
23
+ opacity: 0;
24
+ }
25
+ & > span {}
26
+
27
+ .helper {
28
+ padding-left: 23px;
29
+ position: relative;
30
+ }
31
+
32
+ .helper:before {
33
+ position: absolute;
34
+ display: block;
35
+ height: 20px;
36
+ width: 20px;
37
+ content: "";
38
+ text-indent: -9999px;
39
+ border: 2px #d9d9d9 solid;
40
+ z-index: 1;
41
+ opacity: 1;
42
+ top: 0;
43
+ left: 0;
44
+ }
45
+
46
+
47
+ input[type="checkbox"]:checked + .helper:after {
48
+ position: absolute;
49
+ display: block;
50
+ content: "\e08a";
51
+ font-size: 10pt;
52
+ heigth: 14px;
53
+ width: 14px;
54
+ line-height: 14px;
55
+ z-index: 2;
56
+ top: 50%;
57
+ margin-top: -6px;
58
+ left: 0;
59
+ margin-left: 4px;
60
+ font-family: iconFont;
61
+ }
62
+
63
+ input[type="checkbox"]:not(:checked) + .helper:after {
64
+ display: none;
65
+ }
66
+
67
+ input[type="checkbox"]:disabled + .helper:before {
68
+ cursor: default;
69
+ background: #e6e6e6;
70
+ }
71
+
72
+ input[type=checkbox]:disabled + .helper:after {
73
+ color: #8a8a8a;
74
+ }
75
+
76
+ &:hover {
77
+ input:not(:disabled) + .helper:before {
78
+ border-color: #919191;
79
+ }
80
+ }
81
+
82
+ &:active {
83
+ input:not(:disabled) + .helper:before {
84
+ border-color: #1e1e1e;
85
+ }
86
+ }
87
+
88
+ }
89
+
90
+ &.intermediate {
91
+ input[type="checkbox"] + .helper:after {
92
+ position: absolute !important;
93
+ display: block !important;
94
+ content: "" !important;
95
+ color: #1a1a1a !important;
96
+ z-index: 2 !important;
97
+ font-size: 16px !important;
98
+ font-weight: bold !important;
99
+ left: 5px !important;
100
+ margin-left: 0 !important;
101
+ top: 50% !important;
102
+ margin-top: -5px !important;
103
+ background-color: #1a1a1a !important;
104
+ width: 10px !important;
105
+ height: 10px !important;
106
+ }
107
+ input[type="checkbox"]:disabled + .helper:after {
108
+ background-color: lighten(#1a1a1a, 50%) !important;
109
+ }
110
+ }
111
+ }
112
+
113
+ // Radio
114
+ .input-control {
115
+ &.radio {
116
+ display: inline-block;
117
+ margin-right: 10px;
118
+ margin-bottom: 10px;
119
+ cursor: pointer;
120
+
121
+ & > input[type=radio] {
122
+ position: absolute;
123
+ opacity: 0;
124
+ }
125
+ & > span {}
126
+
127
+ .helper {
128
+ padding-left: 23px;
129
+ position: relative;
130
+ }
131
+
132
+ .helper:before {
133
+ position: absolute;
134
+ display: block;
135
+ height: 20px;
136
+ width: 20px;
137
+ content: "";
138
+ text-indent: -9999px;
139
+ border: 2px #d9d9d9 solid;
140
+ z-index: 1;
141
+ opacity: 1;
142
+ top: 0;
143
+ left: 0;
144
+ border-radius: 100%;
145
+ }
146
+
147
+ input[type="radio"]:checked + .helper:after {
148
+ position: absolute;
149
+ display: block;
150
+ content: "";
151
+ color: #1a1a1a;
152
+ z-index: 2;
153
+ font-size: 16px;
154
+ font-weight: bold;
155
+ left: 5px;
156
+ margin-left: 0;
157
+ top: 50%;
158
+ margin-top: -5px;
159
+ background-color: #1a1a1a;
160
+ width: 10px;
161
+ height: 10px;
162
+ border-radius: 100%;
163
+ }
164
+
165
+ input[type="radio"]:disabled + .helper:before {
166
+ cursor: default;
167
+ background: #e6e6e6;
168
+ }
169
+
170
+ input[type="radio"]:disabled + .helper:after {
171
+ background-color: #8a8a8a;
172
+ }
173
+
174
+ &:hover {
175
+ input:not(:disabled) + .helper:before {
176
+ border-color: #919191;
177
+ }
178
+ }
179
+
180
+ &:active {
181
+ input:not(:disabled) + .helper:before {
182
+ border-color: #1e1e1e;
183
+ }
184
+ }
185
+ }
186
+ }
187
+
188
+ // Switch
189
+ .input-control {
190
+ &.switch {
191
+ display: inline-block;
192
+ margin-right: 10px;
193
+ margin-bottom: 10px;
194
+ cursor: pointer;
195
+ position: relative;
196
+
197
+ & > input[type=checkbox] {
198
+ position: absolute;
199
+ opacity: 0;
200
+ }
201
+
202
+ .helper {
203
+ padding-left: 52px;
204
+ position: relative;
205
+ }
206
+
207
+ .helper:before {
208
+ position: absolute;
209
+ left: 0;
210
+ top: 2px;
211
+ display: block;
212
+ content: "";
213
+ width: 43px;
214
+ height: 16px;
215
+ outline: 2px #a6a6a6 solid;
216
+ border: 1px #fff solid;
217
+ cursor: pointer;
218
+ background: #008287;
219
+ margin-left: 2px;
220
+ z-index: 1;
221
+ }
222
+
223
+ input[type="checkbox"] + .helper:after {
224
+ position: absolute;
225
+ left: 36px;
226
+ top: 2px;
227
+ display: block;
228
+ content: "";
229
+ width: 9px;
230
+ height: 16px;
231
+ outline: 2px #333 solid;
232
+ border: 1px #333 solid;
233
+ cursor: pointer;
234
+ background: #333;
235
+ z-index: 2;
236
+ }
237
+
238
+ input[type="checkbox"]:not(:checked) + .helper:after {
239
+ left: 2px !important;
240
+ }
241
+
242
+ input[type="checkbox"]:not(:checked) + .helper:before {
243
+ background: #a6a6a6 !important;
244
+ }
245
+
246
+ input[type="checkbox"]:disabled + .helper:after {
247
+ background: #a6a6a6 !important;
248
+ outline: 2px #a6a6a6 solid !important;
249
+ border: 1px #a6a6a6 solid !important;
250
+ }
251
+
252
+ input[type="checkbox"]:disabled + .helper:before {
253
+ cursor: default !important;
254
+ background: #e0e0e0 !important;
255
+ outline: 2px #ccc solid !important;
256
+ }
257
+
258
+ }
259
+ }
260
+
261
+ //Input text, password, ...
262
+
263
+ .input-control > input[type=text],
264
+ .input-control > input[type=email],
265
+ .input-control > input[type=url],
266
+ .input-control > input[type=phone],
267
+ .input-control > input[type=password],
268
+ .input-control > select,
269
+ .input-control > textarea {
270
+ border: 2px #bababa solid;
271
+ width: 100%;
272
+ padding: 4px 32px 6px 5px;
273
+ background-color: #fff;
274
+ outline: 0;
275
+ margin-right: 32px;
276
+ min-height: 32px;
277
+ .pos-rel;
278
+
279
+
280
+ &:disabled {
281
+ background-color: #eaeaea;
282
+ }
283
+ &:focus {
284
+ border-color: #000;
285
+ }
286
+ }
287
+
288
+ .input-control > input[type=text]::-ms-clear,
289
+ .input-control > input[type=email]::-ms-clear,
290
+ .input-control > input[type=url]::-ms-clear,
291
+ .input-control > input[type=phone]::-ms-clear {
292
+ display: none;
293
+ }
294
+ .input-control > input[type=password]::-ms-reveal {
295
+ display: none;
296
+ }
297
+
298
+
299
+ .input-control > select {
300
+ padding-right: 5px;
301
+ }
302
+
303
+ .input-control > textarea {
304
+ padding-right: 5px;
305
+ min-height: 100px;
306
+ }
307
+
308
+ .input-control {
309
+ &.text, &.password {
310
+ input[type=text]:not(:focus) + .helper, input[type=password]:not(:focus) + .helper, input[type=email]:not(:focus) + .helper, input[type=phone]:not(:focus) + .helper, input[type=url]:not(:focus) + .helper {
311
+ display: none;
312
+ }
313
+ input[type=text]:focus + .helper, input[type=password]:focus + .helper, input[type=email]:focus + .helper, input[type=phone]:focus + .helper, input[type=url]:focus + .helper {
314
+ display: block;
315
+ }
316
+ input[type=text]:not(:focus) + .helper:active, input[type=password]:not(:focus) + .helper:active, input[type=email]:not(:focus) + .helper:active, input[type=phone]:not(:focus) + .helper:active, input[type=url]:not(:focus) + .helper:active{
317
+ display: block;
318
+ }
319
+ }
320
+ }
321
+
322
+ .input-control {
323
+ margin-right: 0px;
324
+ margin-bottom: 10px;
325
+ position: relative;
326
+
327
+ &.text, &.password {
328
+ .helper, .btn-search {
329
+ background: #fff;// @textbox_pass_inactive_icon 50% no-repeat;
330
+ top: 2px;
331
+ width: 26px !important;
332
+ height: 27px !important;
333
+ min-width: 26px !important;
334
+ min-height: 27px !important;
335
+ cursor: pointer;
336
+ color: #000;
337
+ position: absolute;
338
+ left: 100%;
339
+ margin-left: -28px;
340
+ display: block;
341
+ border: 1px #fff solid;
342
+
343
+ &:before {
344
+ //content: "";
345
+ font-size: 12pt;
346
+ position: absolute;
347
+ #font > .normal;
348
+ }
349
+
350
+
351
+ &:hover {
352
+ background: #d9d9d9;// @textbox_pass_inactive_icon 50% no-repeat;
353
+ }
354
+
355
+ &:active {
356
+ background-color: #000;
357
+
358
+ &:before {
359
+ color: #fff;
360
+ }
361
+
362
+ }
363
+ }
364
+ }
365
+
366
+ &.password {
367
+ .helper {
368
+ background: #fff @textbox_pass_inactive_icon 50% no-repeat;
369
+ &:hover {
370
+ background: #fff @textbox_pass_active_icon 50% no-repeat;
371
+ }
372
+ }
373
+ }
374
+ &.text {
375
+ .helper {
376
+
377
+ &:before {
378
+ font-family: iconFont;
379
+ font-size: 12px;
380
+ content: "\e089";
381
+ left: 7px;
382
+ top: 3px;
383
+ }
384
+
385
+ }
386
+ }
387
+ &.text {
388
+ .btn-search {
389
+
390
+ &:before {
391
+ font-family: iconFont;
392
+ font-size: 12px;
393
+ content: "\e041";
394
+ left: 7px;
395
+ top: 3px;
396
+ }
397
+
398
+ }
399
+ }
400
+ }
401
+
402
+ label {
403
+ #font > .normal;
404
+ margin-right: 10px;
405
+ margin-bottom: 10px;
406
+ }
407
+
408
+ fieldset {
409
+ .pos-rel;
410
+ margin-top: 30px;
411
+ border: 2px #eaeaea solid;
412
+ padding: 10px;
413
+
414
+ legend {
415
+ padding-left: 10px;
416
+ padding-right: 10px;
417
+ #font > .normal;
418
+ color: #cfcfcf;
419
+ .pos-abs;
420
+ top: -25px;
421
+ left: -10px;
422
+ }
423
+ }
424
+
425
+ input[type=button], input[type=reset], input[type=submit] {
426
+ .button;
427
+ border-radius: 0;
428
+ }
429
+
430
+ input[type=submit] {
431
+ .button.default;
432
+ }
433
+
434
+
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Metro UI CSS
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ *
6
+ * Grid.less
7
+ *
8
+ */
9
+
10
+ .oh,.ot,.tt{float:left;margin:0 2% 2% 0;width:48%}.ot{width:31%}.tt{width:65%}.cl{clear:both}
11
+
12
+ .item-padding{
13
+ //margin-left: 0;
14
+ margin-right: @unit;
15
+ margin-bottom: @subunit;
16
+ }
17
+ .column-padding {
18
+ margin: 0 @unit/2;
19
+ }
20
+ .group-padding {
21
+ margin: 0 @unit*2;
22
+ }
23
+
24
+ @cellSize: 60px;
25
+ @cellMargin: 20px;
26
+
27
+ .span1 {width: 60px;}
28
+ .span2 {width: 140px;}
29
+ .span3 {width: 220px;}
30
+ .span4 {width: 300px;}
31
+ .span5 {width: 380px;}
32
+ .span6 {width: 460px;}
33
+ .span7 {width: 540px;}
34
+ .span8 {width: 620px;}
35
+ .span9 {width: 700px;}
36
+ .span10 {width: 780px;}
37
+ .span11 {width: 860px;}
38
+ .span12 {width: 940px;}
39
+
40
+ .offset1 {margin-left: 80px;}
41
+ .offset2 {margin-left: 160px;}
42
+ .offset3 {margin-left: 240px;}
43
+ .offset4 {margin-left: 320px;}
44
+ .offset5 {margin-left: 400px;}
45
+ .offset6 {margin-left: 480px;}
46
+ .offset7 {margin-left: 560px;}
47
+ .offset8 {margin-left: 640px;}
48
+ .offset9 {margin-left: 720px;}
49
+ .offset10{margin-left: 800px;}
50
+ .offset11{margin-left: 880px;}
51
+ .offset12 {margin-left: 960px;}
52
+
53
+
54
+ [class*="span"] {
55
+ float: none;
56
+ min-height: 1px;
57
+ .item-padding();
58
+ .clearfix();
59
+
60
+ &:last-child {
61
+ margin-right: 0;
62
+ //right: 0;
63
+ }
64
+
65
+ & > img {
66
+ max-width: 100%;
67
+ //width: 100%;
68
+ height: auto;
69
+ //max-height: 100%;
70
+ }
71
+ }
72
+
73
+ .grid {
74
+ margin: 0 0 20px;
75
+ display: block;
76
+ height: auto;
77
+ width: 100%;
78
+
79
+ &.no-margin {
80
+ margin: 0;
81
+ }
82
+ &.margin-row {
83
+ margin-bottom: @subunit;
84
+ }
85
+
86
+ & .grid {
87
+ margin-top: @subunit/2;
88
+ margin-bottom: @subunit/2;
89
+ }
90
+
91
+ .group {
92
+ margin-right: @unit * 4;
93
+ float: left;
94
+ width: auto;
95
+ height: auto;
96
+ min-height: 1px;
97
+ }
98
+
99
+ .row {
100
+ width: 100%;
101
+ .clearfix();
102
+
103
+ [class*="span"] {
104
+ float: left;
105
+ }
106
+ }
107
+
108
+ &.element-border {
109
+ [class*="span"] {
110
+ border: 1px #ccc dotted;
111
+ }
112
+ }
113
+
114
+ .clearfix();
115
+ }