bootstrap_sass_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +17 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +44 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/javascripts/bootstrap.js +12 -0
  9. data/app/assets/javascripts/bootstrap/affix.js +126 -0
  10. data/app/assets/javascripts/bootstrap/alert.js +98 -0
  11. data/app/assets/javascripts/bootstrap/button.js +109 -0
  12. data/app/assets/javascripts/bootstrap/carousel.js +217 -0
  13. data/app/assets/javascripts/bootstrap/collapse.js +179 -0
  14. data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
  15. data/app/assets/javascripts/bootstrap/modal.js +246 -0
  16. data/app/assets/javascripts/bootstrap/popover.js +117 -0
  17. data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
  18. data/app/assets/javascripts/bootstrap/tab.js +135 -0
  19. data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
  20. data/app/assets/javascripts/bootstrap/transition.js +56 -0
  21. data/app/assets/stylesheets/bootstrap.css.sass +59 -0
  22. data/app/assets/stylesheets/bootstrap/_alerts.css.sass +55 -0
  23. data/app/assets/stylesheets/bootstrap/_badges.css.sass +50 -0
  24. data/app/assets/stylesheets/bootstrap/_breadcrumbs.css.sass +19 -0
  25. data/app/assets/stylesheets/bootstrap/_button-groups.css.sass +210 -0
  26. data/app/assets/stylesheets/bootstrap/_buttons.css.sass +135 -0
  27. data/app/assets/stylesheets/bootstrap/_carousel.css.sass +165 -0
  28. data/app/assets/stylesheets/bootstrap/_close.css.sass +28 -0
  29. data/app/assets/stylesheets/bootstrap/_code.css.sass +49 -0
  30. data/app/assets/stylesheets/bootstrap/_component-animations.css.sass +25 -0
  31. data/app/assets/stylesheets/bootstrap/_dropdowns.css.sass +166 -0
  32. data/app/assets/stylesheets/bootstrap/_forms.css.sass +309 -0
  33. data/app/assets/stylesheets/bootstrap/_glyphicons.css.sass +827 -0
  34. data/app/assets/stylesheets/bootstrap/_grid.css.sass +483 -0
  35. data/app/assets/stylesheets/bootstrap/_input-groups.css.sass +117 -0
  36. data/app/assets/stylesheets/bootstrap/_jumbotron.css.sass +28 -0
  37. data/app/assets/stylesheets/bootstrap/_labels.css.sass +46 -0
  38. data/app/assets/stylesheets/bootstrap/_list-group.css.sass +71 -0
  39. data/app/assets/stylesheets/bootstrap/_media.css.sass +47 -0
  40. data/app/assets/stylesheets/bootstrap/_mixins.css.sass +754 -0
  41. data/app/assets/stylesheets/bootstrap/_modals.css.sass +127 -0
  42. data/app/assets/stylesheets/bootstrap/_navbar.css.sass +457 -0
  43. data/app/assets/stylesheets/bootstrap/_navs.css.sass +171 -0
  44. data/app/assets/stylesheets/bootstrap/_normalize.css.sass +375 -0
  45. data/app/assets/stylesheets/bootstrap/_pager.css.sass +39 -0
  46. data/app/assets/stylesheets/bootstrap/_pagination.css.sass +66 -0
  47. data/app/assets/stylesheets/bootstrap/_panels.css.sass +114 -0
  48. data/app/assets/stylesheets/bootstrap/_popovers.css.sass +124 -0
  49. data/app/assets/stylesheets/bootstrap/_print.css.sass +66 -0
  50. data/app/assets/stylesheets/bootstrap/_progress-bars.css.sass +90 -0
  51. data/app/assets/stylesheets/bootstrap/_responsive-utilities.css.sass +152 -0
  52. data/app/assets/stylesheets/bootstrap/_scaffolding.css.sass +108 -0
  53. data/app/assets/stylesheets/bootstrap/_tables.css.sass +176 -0
  54. data/app/assets/stylesheets/bootstrap/_theme.css.sass +228 -0
  55. data/app/assets/stylesheets/bootstrap/_thumbnails.css.sass +26 -0
  56. data/app/assets/stylesheets/bootstrap/_tooltip.css.sass +91 -0
  57. data/app/assets/stylesheets/bootstrap/_type.css.sass +251 -0
  58. data/app/assets/stylesheets/bootstrap/_utilities.css.sass +36 -0
  59. data/app/assets/stylesheets/bootstrap/_variables.css.sass +614 -0
  60. data/app/assets/stylesheets/bootstrap/_wells.css.sass +25 -0
  61. data/bin/convert-sass.sh +3 -0
  62. data/bootstrap_sass_rails.gemspec +25 -0
  63. data/lib/bootstrap_sass_rails.rb +13 -0
  64. data/lib/bootstrap_sass_rails/engine.rb +4 -0
  65. data/lib/bootstrap_sass_rails/version.rb +3 -0
  66. metadata +152 -0
@@ -0,0 +1,483 @@
1
+ //
2
+ // Grid system
3
+ // --------------------------------------------------
4
+
5
+ // Set the container width, and override it for fixed navbars in media queries
6
+ .container
7
+ +container-fixed
8
+
9
+ // mobile first defaults
10
+ .row
11
+ +make-row
12
+
13
+ // Common styles for small and large grid columns
14
+
15
+ .col-xs-1,
16
+ .col-xs-2,
17
+ .col-xs-3,
18
+ .col-xs-4,
19
+ .col-xs-5,
20
+ .col-xs-6,
21
+ .col-xs-7,
22
+ .col-xs-8,
23
+ .col-xs-9,
24
+ .col-xs-10,
25
+ .col-xs-11,
26
+ .col-xs-12,
27
+ .col-sm-1,
28
+ .col-sm-2,
29
+ .col-sm-3,
30
+ .col-sm-4,
31
+ .col-sm-5,
32
+ .col-sm-6,
33
+ .col-sm-7,
34
+ .col-sm-8,
35
+ .col-sm-9,
36
+ .col-sm-10,
37
+ .col-sm-11,
38
+ .col-sm-12,
39
+ .col-md-1,
40
+ .col-md-2,
41
+ .col-md-3,
42
+ .col-md-4,
43
+ .col-md-5,
44
+ .col-md-6,
45
+ .col-md-7,
46
+ .col-md-8,
47
+ .col-md-9,
48
+ .col-md-10,
49
+ .col-md-11,
50
+ .col-md-12,
51
+ .col-lg-1,
52
+ .col-lg-2,
53
+ .col-lg-3,
54
+ .col-lg-4,
55
+ .col-lg-5,
56
+ .col-lg-6,
57
+ .col-lg-7,
58
+ .col-lg-8,
59
+ .col-lg-9,
60
+ .col-lg-10,
61
+ .col-lg-11,
62
+ .col-lg-12
63
+ position: relative
64
+ // Prevent columns from collapsing when empty
65
+ min-height: 1px
66
+ // Inner gutter via padding
67
+ padding-left: $grid-gutter-width / 2
68
+ padding-right: $grid-gutter-width / 2
69
+
70
+ // Extra small grid
71
+ //
72
+ // Grid classes for extra small devices like smartphones. No offset, push, or
73
+ // pull classes are present here due to the size of the target.
74
+ //
75
+ // Note that `.col-xs-12` doesn't get floated on purpose—there's no need since
76
+ // it's full-width.
77
+
78
+ .col-xs-1,
79
+ .col-xs-2,
80
+ .col-xs-3,
81
+ .col-xs-4,
82
+ .col-xs-5,
83
+ .col-xs-6,
84
+ .col-xs-7,
85
+ .col-xs-8,
86
+ .col-xs-9,
87
+ .col-xs-10,
88
+ .col-xs-11
89
+ float: left
90
+
91
+ .col-xs-1
92
+ width: percentage(1 / $grid-columns)
93
+
94
+ .col-xs-2
95
+ width: percentage(2 / $grid-columns)
96
+
97
+ .col-xs-3
98
+ width: percentage(3 / $grid-columns)
99
+
100
+ .col-xs-4
101
+ width: percentage(4 / $grid-columns)
102
+
103
+ .col-xs-5
104
+ width: percentage(5 / $grid-columns)
105
+
106
+ .col-xs-6
107
+ width: percentage(6 / $grid-columns)
108
+
109
+ .col-xs-7
110
+ width: percentage(7 / $grid-columns)
111
+
112
+ .col-xs-8
113
+ width: percentage(8 / $grid-columns)
114
+
115
+ .col-xs-9
116
+ width: percentage(9 / $grid-columns)
117
+
118
+ .col-xs-10
119
+ width: percentage(10 / $grid-columns)
120
+
121
+ .col-xs-11
122
+ width: percentage(11 / $grid-columns)
123
+
124
+ .col-xs-12
125
+ width: 100%
126
+
127
+ // Small grid
128
+ //
129
+ // Columns, offsets, pushes, and pulls for the small device range, from phones
130
+ // to tablets.
131
+ //
132
+ // Note that `.col-sm-12` doesn't get floated on purpose—there's no need since
133
+ // it's full-width.
134
+
135
+ @media (min-width: $screen-tablet)
136
+ .container
137
+ max-width: $container-tablet
138
+ .col-sm-1,
139
+ .col-sm-2,
140
+ .col-sm-3,
141
+ .col-sm-4,
142
+ .col-sm-5,
143
+ .col-sm-6,
144
+ .col-sm-7,
145
+ .col-sm-8,
146
+ .col-sm-9,
147
+ .col-sm-10,
148
+ .col-sm-11
149
+ float: left
150
+ .col-sm-1
151
+ width: percentage(1 / $grid-columns)
152
+ .col-sm-2
153
+ width: percentage(2 / $grid-columns)
154
+ .col-sm-3
155
+ width: percentage(3 / $grid-columns)
156
+ .col-sm-4
157
+ width: percentage(4 / $grid-columns)
158
+ .col-sm-5
159
+ width: percentage(5 / $grid-columns)
160
+ .col-sm-6
161
+ width: percentage(6 / $grid-columns)
162
+ .col-sm-7
163
+ width: percentage(7 / $grid-columns)
164
+ .col-sm-8
165
+ width: percentage(8 / $grid-columns)
166
+ .col-sm-9
167
+ width: percentage(9 / $grid-columns)
168
+ .col-sm-10
169
+ width: percentage(10 / $grid-columns)
170
+ .col-sm-11
171
+ width: percentage(11 / $grid-columns)
172
+ .col-sm-12
173
+ width: 100%
174
+ // Push and pull columns for source order changes
175
+ .col-sm-push-1
176
+ left: percentage(1 / $grid-columns)
177
+ .col-sm-push-2
178
+ left: percentage(2 / $grid-columns)
179
+ .col-sm-push-3
180
+ left: percentage(3 / $grid-columns)
181
+ .col-sm-push-4
182
+ left: percentage(4 / $grid-columns)
183
+ .col-sm-push-5
184
+ left: percentage(5 / $grid-columns)
185
+ .col-sm-push-6
186
+ left: percentage(6 / $grid-columns)
187
+ .col-sm-push-7
188
+ left: percentage(7 / $grid-columns)
189
+ .col-sm-push-8
190
+ left: percentage(8 / $grid-columns)
191
+ .col-sm-push-9
192
+ left: percentage(9 / $grid-columns)
193
+ .col-sm-push-10
194
+ left: percentage(10 / $grid-columns)
195
+ .col-sm-push-11
196
+ left: percentage(11 / $grid-columns)
197
+ .col-sm-pull-1
198
+ right: percentage(1 / $grid-columns)
199
+ .col-sm-pull-2
200
+ right: percentage(2 / $grid-columns)
201
+ .col-sm-pull-3
202
+ right: percentage(3 / $grid-columns)
203
+ .col-sm-pull-4
204
+ right: percentage(4 / $grid-columns)
205
+ .col-sm-pull-5
206
+ right: percentage(5 / $grid-columns)
207
+ .col-sm-pull-6
208
+ right: percentage(6 / $grid-columns)
209
+ .col-sm-pull-7
210
+ right: percentage(7 / $grid-columns)
211
+ .col-sm-pull-8
212
+ right: percentage(8 / $grid-columns)
213
+ .col-sm-pull-9
214
+ right: percentage(9 / $grid-columns)
215
+ .col-sm-pull-10
216
+ right: percentage(10 / $grid-columns)
217
+ .col-sm-pull-11
218
+ right: percentage(11 / $grid-columns)
219
+ // Offsets
220
+ .col-sm-offset-1
221
+ margin-left: percentage(1 / $grid-columns)
222
+ .col-sm-offset-2
223
+ margin-left: percentage(2 / $grid-columns)
224
+ .col-sm-offset-3
225
+ margin-left: percentage(3 / $grid-columns)
226
+ .col-sm-offset-4
227
+ margin-left: percentage(4 / $grid-columns)
228
+ .col-sm-offset-5
229
+ margin-left: percentage(5 / $grid-columns)
230
+ .col-sm-offset-6
231
+ margin-left: percentage(6 / $grid-columns)
232
+ .col-sm-offset-7
233
+ margin-left: percentage(7 / $grid-columns)
234
+ .col-sm-offset-8
235
+ margin-left: percentage(8 / $grid-columns)
236
+ .col-sm-offset-9
237
+ margin-left: percentage(9 / $grid-columns)
238
+ .col-sm-offset-10
239
+ margin-left: percentage(10 / $grid-columns)
240
+ .col-sm-offset-11
241
+ margin-left: percentage(11 / $grid-columns)
242
+
243
+ // Medium grid
244
+ //
245
+ // Columns, offsets, pushes, and pulls for the desktop device range.
246
+ //
247
+ // Note that `.col-md-12` doesn't get floated on purpose—there's no need since
248
+ // it's full-width.
249
+
250
+ @media (min-width: $screen-desktop)
251
+ .container
252
+ max-width: $container-desktop
253
+ .col-md-1,
254
+ .col-md-2,
255
+ .col-md-3,
256
+ .col-md-4,
257
+ .col-md-5,
258
+ .col-md-6,
259
+ .col-md-7,
260
+ .col-md-8,
261
+ .col-md-9,
262
+ .col-md-10,
263
+ .col-md-11
264
+ float: left
265
+ .col-md-1
266
+ width: percentage(1 / $grid-columns)
267
+ .col-md-2
268
+ width: percentage(2 / $grid-columns)
269
+ .col-md-3
270
+ width: percentage(3 / $grid-columns)
271
+ .col-md-4
272
+ width: percentage(4 / $grid-columns)
273
+ .col-md-5
274
+ width: percentage(5 / $grid-columns)
275
+ .col-md-6
276
+ width: percentage(6 / $grid-columns)
277
+ .col-md-7
278
+ width: percentage(7 / $grid-columns)
279
+ .col-md-8
280
+ width: percentage(8 / $grid-columns)
281
+ .col-md-9
282
+ width: percentage(9 / $grid-columns)
283
+ .col-md-10
284
+ width: percentage(10 / $grid-columns)
285
+ .col-md-11
286
+ width: percentage(11 / $grid-columns)
287
+ .col-md-12
288
+ width: 100%
289
+ // Push and pull columns for source order changes
290
+ .col-md-push-0
291
+ left: auto
292
+ .col-md-push-1
293
+ left: percentage(1 / $grid-columns)
294
+ .col-md-push-2
295
+ left: percentage(2 / $grid-columns)
296
+ .col-md-push-3
297
+ left: percentage(3 / $grid-columns)
298
+ .col-md-push-4
299
+ left: percentage(4 / $grid-columns)
300
+ .col-md-push-5
301
+ left: percentage(5 / $grid-columns)
302
+ .col-md-push-6
303
+ left: percentage(6 / $grid-columns)
304
+ .col-md-push-7
305
+ left: percentage(7 / $grid-columns)
306
+ .col-md-push-8
307
+ left: percentage(8 / $grid-columns)
308
+ .col-md-push-9
309
+ left: percentage(9 / $grid-columns)
310
+ .col-md-push-10
311
+ left: percentage(10 / $grid-columns)
312
+ .col-md-push-11
313
+ left: percentage(11 / $grid-columns)
314
+ .col-md-pull-0
315
+ right: auto
316
+ .col-md-pull-1
317
+ right: percentage(1 / $grid-columns)
318
+ .col-md-pull-2
319
+ right: percentage(2 / $grid-columns)
320
+ .col-md-pull-3
321
+ right: percentage(3 / $grid-columns)
322
+ .col-md-pull-4
323
+ right: percentage(4 / $grid-columns)
324
+ .col-md-pull-5
325
+ right: percentage(5 / $grid-columns)
326
+ .col-md-pull-6
327
+ right: percentage(6 / $grid-columns)
328
+ .col-md-pull-7
329
+ right: percentage(7 / $grid-columns)
330
+ .col-md-pull-8
331
+ right: percentage(8 / $grid-columns)
332
+ .col-md-pull-9
333
+ right: percentage(9 / $grid-columns)
334
+ .col-md-pull-10
335
+ right: percentage(10 / $grid-columns)
336
+ .col-md-pull-11
337
+ right: percentage(11 / $grid-columns)
338
+ // Offsets
339
+ .col-md-offset-0
340
+ margin-left: 0
341
+ .col-md-offset-1
342
+ margin-left: percentage(1 / $grid-columns)
343
+ .col-md-offset-2
344
+ margin-left: percentage(2 / $grid-columns)
345
+ .col-md-offset-3
346
+ margin-left: percentage(3 / $grid-columns)
347
+ .col-md-offset-4
348
+ margin-left: percentage(4 / $grid-columns)
349
+ .col-md-offset-5
350
+ margin-left: percentage(5 / $grid-columns)
351
+ .col-md-offset-6
352
+ margin-left: percentage(6 / $grid-columns)
353
+ .col-md-offset-7
354
+ margin-left: percentage(7 / $grid-columns)
355
+ .col-md-offset-8
356
+ margin-left: percentage(8 / $grid-columns)
357
+ .col-md-offset-9
358
+ margin-left: percentage(9 / $grid-columns)
359
+ .col-md-offset-10
360
+ margin-left: percentage(10 / $grid-columns)
361
+ .col-md-offset-11
362
+ margin-left: percentage(11 / $grid-columns)
363
+
364
+ // Large grid
365
+ //
366
+ // Columns, offsets, pushes, and pulls for the large desktop device range.
367
+ //
368
+ // Note that `.col-lg-12` doesn't get floated on purpose—there's no need since
369
+ // it's full-width.
370
+
371
+ @media (min-width: $screen-lg-desktop)
372
+ .container
373
+ max-width: $container-lg-desktop
374
+ .col-lg-1,
375
+ .col-lg-2,
376
+ .col-lg-3,
377
+ .col-lg-4,
378
+ .col-lg-5,
379
+ .col-lg-6,
380
+ .col-lg-7,
381
+ .col-lg-8,
382
+ .col-lg-9,
383
+ .col-lg-10,
384
+ .col-lg-11
385
+ float: left
386
+ .col-lg-1
387
+ width: percentage(1 / $grid-columns)
388
+ .col-lg-2
389
+ width: percentage(2 / $grid-columns)
390
+ .col-lg-3
391
+ width: percentage(3 / $grid-columns)
392
+ .col-lg-4
393
+ width: percentage(4 / $grid-columns)
394
+ .col-lg-5
395
+ width: percentage(5 / $grid-columns)
396
+ .col-lg-6
397
+ width: percentage(6 / $grid-columns)
398
+ .col-lg-7
399
+ width: percentage(7 / $grid-columns)
400
+ .col-lg-8
401
+ width: percentage(8 / $grid-columns)
402
+ .col-lg-9
403
+ width: percentage(9 / $grid-columns)
404
+ .col-lg-10
405
+ width: percentage(10 / $grid-columns)
406
+ .col-lg-11
407
+ width: percentage(11 / $grid-columns)
408
+ .col-lg-12
409
+ width: 100%
410
+ // Push and pull columns for source order changes
411
+ .col-lg-push-0
412
+ left: auto
413
+ .col-lg-push-1
414
+ left: percentage(1 / $grid-columns)
415
+ .col-lg-push-2
416
+ left: percentage(2 / $grid-columns)
417
+ .col-lg-push-3
418
+ left: percentage(3 / $grid-columns)
419
+ .col-lg-push-4
420
+ left: percentage(4 / $grid-columns)
421
+ .col-lg-push-5
422
+ left: percentage(5 / $grid-columns)
423
+ .col-lg-push-6
424
+ left: percentage(6 / $grid-columns)
425
+ .col-lg-push-7
426
+ left: percentage(7 / $grid-columns)
427
+ .col-lg-push-8
428
+ left: percentage(8 / $grid-columns)
429
+ .col-lg-push-9
430
+ left: percentage(9 / $grid-columns)
431
+ .col-lg-push-10
432
+ left: percentage(10 / $grid-columns)
433
+ .col-lg-push-11
434
+ left: percentage(11 / $grid-columns)
435
+ .col-lg-pull-0
436
+ right: auto
437
+ .col-lg-pull-1
438
+ right: percentage(1 / $grid-columns)
439
+ .col-lg-pull-2
440
+ right: percentage(2 / $grid-columns)
441
+ .col-lg-pull-3
442
+ right: percentage(3 / $grid-columns)
443
+ .col-lg-pull-4
444
+ right: percentage(4 / $grid-columns)
445
+ .col-lg-pull-5
446
+ right: percentage(5 / $grid-columns)
447
+ .col-lg-pull-6
448
+ right: percentage(6 / $grid-columns)
449
+ .col-lg-pull-7
450
+ right: percentage(7 / $grid-columns)
451
+ .col-lg-pull-8
452
+ right: percentage(8 / $grid-columns)
453
+ .col-lg-pull-9
454
+ right: percentage(9 / $grid-columns)
455
+ .col-lg-pull-10
456
+ right: percentage(10 / $grid-columns)
457
+ .col-lg-pull-11
458
+ right: percentage(11 / $grid-columns)
459
+ // Offsets
460
+ .col-lg-offset-0
461
+ margin-left: 0
462
+ .col-lg-offset-1
463
+ margin-left: percentage(1 / $grid-columns)
464
+ .col-lg-offset-2
465
+ margin-left: percentage(2 / $grid-columns)
466
+ .col-lg-offset-3
467
+ margin-left: percentage(3 / $grid-columns)
468
+ .col-lg-offset-4
469
+ margin-left: percentage(4 / $grid-columns)
470
+ .col-lg-offset-5
471
+ margin-left: percentage(5 / $grid-columns)
472
+ .col-lg-offset-6
473
+ margin-left: percentage(6 / $grid-columns)
474
+ .col-lg-offset-7
475
+ margin-left: percentage(7 / $grid-columns)
476
+ .col-lg-offset-8
477
+ margin-left: percentage(8 / $grid-columns)
478
+ .col-lg-offset-9
479
+ margin-left: percentage(9 / $grid-columns)
480
+ .col-lg-offset-10
481
+ margin-left: percentage(10 / $grid-columns)
482
+ .col-lg-offset-11
483
+ margin-left: percentage(11 / $grid-columns)