mobile_first_bootstrap_grid-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mobile_first_bootstrap_grid-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 G5
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,109 @@
1
+ # Mobile First Bootstrap Grid for Rails
2
+
3
+ Ruby Gem to include the [Mobile First Bootstrap Grid](https://github.com/G5/mobile-first-bootstrap-grid) source code in your Rails application.
4
+
5
+
6
+ ## Current Version
7
+
8
+ 0.0.1
9
+
10
+
11
+ ## Requirements
12
+
13
+ * [railties](http://rubygems.org/gems/railties) >= 3.0.0
14
+
15
+
16
+ ## Installation
17
+
18
+ ### Gemfile
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ ```ruby
23
+ gem 'mobile_first_bootstrap_grid-rails'
24
+ ```
25
+
26
+ ### Manual
27
+
28
+ Or install it yourself as:
29
+
30
+ ```bash
31
+ gem install mobile_first_bootstrap_grid-rails
32
+ ```
33
+
34
+ ### Rails 3.1 or greater (with asset pipeline enabled)
35
+
36
+ The mobile-first-bootstrap-grid file will be added to the asset pipeline and available for you to use.
37
+
38
+ Add this line in `app/assets/stylesheets/application.css`:
39
+
40
+ ```css
41
+ /*
42
+ *= require mobile-first-bootstrap-grid
43
+ */
44
+ ```
45
+
46
+ ### Rails 3.0 (or greated with asset pipeline disabled)
47
+
48
+ Copy the mobile-first-bootstrap-grid file into `public/stylesheets`:
49
+
50
+ ```bash
51
+ rails generate mobile_first_bootstrap_grid:install
52
+ ```
53
+
54
+ Include the mobile-first-bootstrap-grid into your application:
55
+
56
+ ```erb
57
+ <%= stylesheet_link_tag "mobile-first-bootstrap-grid" %>
58
+ ```
59
+
60
+
61
+ ## Usage
62
+
63
+ To learn how to use the grid and layout, visit [http://twitter.github.com/bootstrap/scaffolding.html](http://twitter.github.com/bootstrap/scaffolding.html)
64
+
65
+
66
+ ## Authors
67
+
68
+ * Chad Crissman / [@crissmancd](https://github.com/crissmancd)
69
+ * Jessica Lynn Suttles / [@jlsuttles](https://github.com/jlsuttles)
70
+
71
+
72
+ ## Contributing
73
+
74
+ 1. Fork it
75
+ 2. Get it running
76
+ 3. Create your feature branch (`git checkout -b my-new-feature`)
77
+ 4. Write your code and **specs**
78
+ 5. Commit your changes (`git commit -am 'Add some feature'`)
79
+ 6. Push to the branch (`git push origin my-new-feature`)
80
+ 7. Create new Pull Request
81
+
82
+ If you find bugs, have feature requests or questions, please
83
+ [file an issue](https://github.com/G5/mobile_first_bootstrap_grid-rails/issues).
84
+
85
+
86
+ ## License
87
+
88
+ Copyright (c) 2012 G5
89
+
90
+ MIT License
91
+
92
+ Permission is hereby granted, free of charge, to any person obtaining
93
+ a copy of this software and associated documentation files (the
94
+ "Software"), to deal in the Software without restriction, including
95
+ without limitation the rights to use, copy, modify, merge, publish,
96
+ distribute, sublicense, and/or sell copies of the Software, and to
97
+ permit persons to whom the Software is furnished to do so, subject to
98
+ the following conditions:
99
+
100
+ The above copyright notice and this permission notice shall be
101
+ included in all copies or substantial portions of the Software.
102
+
103
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
104
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
105
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
106
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
107
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
108
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
109
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,35 @@
1
+ require 'rails'
2
+
3
+ # Supply generator for Rails 3.0.x or if asset pipeline is not enabled
4
+ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
5
+ module MobileFirstBootstrapGrid
6
+ module Generators
7
+ class InstallGenerator < ::Rails::Generators::Base
8
+ desc "This generator installs mobile-first-bootstrap-grid.css"
9
+ source_root File.expand_path('../../../../../vendor/assets/stylesheets', __FILE__)
10
+
11
+ def copy_mobile_first_bootstrap_grid
12
+ say_status "copying", "mobile-first-bootstrap-grid.css to public/stylesheets", :green
13
+ copy_file "mobile-first-bootstrap-grid.css", "public/stylesheets/mobile-first-bootstrap-grid.css"
14
+ end
15
+
16
+ end
17
+ end
18
+ end
19
+ else
20
+ module MobileFirstBootstrapGrid
21
+ module Generators
22
+ class InstallGenerator < ::Rails::Generators::Base
23
+ desc "Just show instructions so people will know what to do when mistakenly using generator for Rails 3.1 apps"
24
+
25
+ def do_nothing
26
+ say_status("deprecated", "You are using Rails with the asset pipeline enabled, so this generator is not needed.")
27
+ say_status("", "The necessary files are already in your asset pipeline.")
28
+ say_status("", "Just add `/* *= require mobile-first-bootstrap-grid */` to your app/assets/stylesheets/application.css")
29
+ say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.")
30
+ # ok, nothing
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1 @@
1
+ require "mobile_first_bootstrap_grid/rails"
@@ -0,0 +1,7 @@
1
+ require 'mobile_first_bootstrap_grid/rails/engine'
2
+ require 'mobile_first_bootstrap_grid/rails/version'
3
+
4
+ module MobileFirstBootstrapGrid
5
+ module Rails
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ module MobileFirstBootstrapGrid
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module MobileFirstBootstrapGrid
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/mobile_first_bootstrap_grid/rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Chad Crissman", "Jessica Lynn Suttles"]
6
+ gem.email = ["cdcrissman@gmail.com", "jlsuttles@gmail.com"]
7
+ gem.description = %q{Mobile first bootstrap grid for Rails}
8
+ gem.summary = %q{Mobile first bootstrap grid for Rails}
9
+ gem.homepage = "https://github.com/G5/mobile_first_bootstrap_grid-rails"
10
+
11
+ gem.add_runtime_dependency "railties", ">= 3.0.0"
12
+
13
+ gem.files = `git ls-files`.split($\)
14
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.name = "mobile_first_bootstrap_grid-rails"
17
+ gem.require_paths = ["lib"]
18
+ gem.version = MobileFirstBootstrapGrid::Rails::VERSION
19
+ end
@@ -0,0 +1,1003 @@
1
+ /*!
2
+ * Copyright 2012 G5
3
+ *
4
+ * This is a derivitive of Twitter Bootstrap v2.1.1 grid and layout scaffolding
5
+ *
6
+ * Copyright 2012 Twitter, Inc
7
+ * Licensed under the Apache License v2.0
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
11
+ */
12
+
13
+ /* DEFAULT MOBILE STYLES ==========================*/
14
+ .clearfix {
15
+ *zoom: 1;
16
+ }
17
+ .clearfix:before,
18
+ .clearfix:after {
19
+ display: table;
20
+ content: "";
21
+ line-height: 0;
22
+ }
23
+ .clearfix:after {
24
+ clear: both;
25
+ }
26
+ .hide-text {
27
+ font: 0/0 a;
28
+ color: transparent;
29
+ text-shadow: none;
30
+ background-color: transparent;
31
+ border: 0;
32
+ }
33
+ .input-block-level {
34
+ display: block;
35
+ width: 100%;
36
+ min-height: 30px;
37
+ -webkit-box-sizing: border-box;
38
+ -moz-box-sizing: border-box;
39
+ box-sizing: border-box;
40
+ }
41
+ body {
42
+ padding-left: 20px;
43
+ padding-right: 20px;
44
+ }
45
+ .row:before,
46
+ .row:after {
47
+ display: table;
48
+ content: "";
49
+ line-height: 0;
50
+ }
51
+ .row:after {
52
+ clear: both;
53
+ }
54
+
55
+ [class*="span"].hide,
56
+ .row-fluid [class*="span"].hide {
57
+ display: none;
58
+ }
59
+ .container {
60
+ margin-right: auto;
61
+ margin-left: auto;
62
+ *zoom: 1;
63
+ }
64
+ .container:before,
65
+ .container:after {
66
+ display: table;
67
+ content: "";
68
+ line-height: 0;
69
+ }
70
+ .container:after {
71
+ clear: both;
72
+ }
73
+ .container-fluid:before,
74
+ .container-fluid:after {
75
+ display: table;
76
+ content: "";
77
+ line-height: 0;
78
+ }
79
+ .container-fluid:after {
80
+ clear: both;
81
+ }
82
+ .input-large,
83
+ .input-xlarge,
84
+ .input-xxlarge,
85
+ input[class*="span"],
86
+ select[class*="span"],
87
+ textarea[class*="span"],
88
+ .uneditable-input {
89
+ display: block;
90
+ width: 100%;
91
+ min-height: 30px;
92
+ -webkit-box-sizing: border-box;
93
+ -moz-box-sizing: border-box;
94
+ box-sizing: border-box;
95
+ }
96
+ .input-prepend input,
97
+ .input-append input,
98
+ .input-prepend input[class*="span"],
99
+ .input-append input[class*="span"] {
100
+ display: inline-block;
101
+ width: auto;
102
+ }
103
+ .modal {
104
+ position: fixed;
105
+ top: 20px;
106
+ left: 20px;
107
+ right: 20px;
108
+ width: auto;
109
+ margin: 0;
110
+ }
111
+ .modal.fade.in {
112
+ top: auto;
113
+ }
114
+ @media (max-width: 480px) {
115
+ .nav-collapse {
116
+ -webkit-transform: translate3d(0, 0, 0);
117
+ }
118
+ .page-header h1 small {
119
+ display: block;
120
+ line-height: 20px;
121
+ }
122
+ input[type="checkbox"],
123
+ input[type="radio"] {
124
+ border: 1px solid #ccc;
125
+ }
126
+ .form-horizontal .control-label {
127
+ float: none;
128
+ width: auto;
129
+ padding-top: 0;
130
+ text-align: left;
131
+ }
132
+ .form-horizontal .controls {
133
+ margin-left: 0;
134
+ }
135
+ .form-horizontal .control-list {
136
+ padding-top: 0;
137
+ }
138
+ .form-horizontal .form-actions {
139
+ padding-left: 10px;
140
+ padding-right: 10px;
141
+ }
142
+ .modal {
143
+ top: 10px;
144
+ left: 10px;
145
+ right: 10px;
146
+ }
147
+ .modal-header .close {
148
+ padding: 10px;
149
+ margin: -10px;
150
+ }
151
+ .carousel-caption {
152
+ position: static;
153
+ }
154
+ }
155
+ @media (min-width: 768px) {
156
+ body {
157
+ padding: 0;
158
+ }
159
+ .navbar-fixed-top,
160
+ .navbar-fixed-bottom,
161
+ .navbar-static-top {
162
+ margin-left: 0;
163
+ margin-right: 0;
164
+ }
165
+ .row {
166
+ margin-left: -20px;
167
+ *zoom: 1;
168
+ }
169
+ [class*="span"] {
170
+ float: left;
171
+ min-height: 1px;
172
+ margin-left: 20px;
173
+ }
174
+
175
+ /* fixed layout */
176
+ .container,
177
+ .navbar-static-top .container,
178
+ .navbar-fixed-top .container,
179
+ .navbar-fixed-bottom .container {
180
+ width: 724px;
181
+ }
182
+ .span12 {
183
+ width: 724px;
184
+ }
185
+ .span11 {
186
+ width: 662px;
187
+ }
188
+ .span10 {
189
+ width: 600px;
190
+ }
191
+ .span9 {
192
+ width: 538px;
193
+ }
194
+ .span8 {
195
+ width: 476px;
196
+ }
197
+ .span7 {
198
+ width: 414px;
199
+ }
200
+ .span6 {
201
+ width: 352px;
202
+ }
203
+ .span5 {
204
+ width: 290px;
205
+ }
206
+ .span4 {
207
+ width: 228px;
208
+ }
209
+ .span3 {
210
+ width: 166px;
211
+ }
212
+ .span2 {
213
+ width: 104px;
214
+ }
215
+ .span1 {
216
+ width: 42px;
217
+ }
218
+ .offset12 {
219
+ margin-left: 764px;
220
+ }
221
+ .offset11 {
222
+ margin-left: 702px;
223
+ }
224
+ .offset10 {
225
+ margin-left: 640px;
226
+ }
227
+ .offset9 {
228
+ margin-left: 578px;
229
+ }
230
+ .offset8 {
231
+ margin-left: 516px;
232
+ }
233
+ .offset7 {
234
+ margin-left: 454px;
235
+ }
236
+ .offset6 {
237
+ margin-left: 392px;
238
+ }
239
+ .offset5 {
240
+ margin-left: 330px;
241
+ }
242
+ .offset4 {
243
+ margin-left: 268px;
244
+ }
245
+ .offset3 {
246
+ margin-left: 206px;
247
+ }
248
+ .offset2 {
249
+ margin-left: 144px;
250
+ }
251
+ .offset1 {
252
+ margin-left: 82px;
253
+ }
254
+
255
+ /* fluid layout */
256
+ .container-fluid {
257
+ padding-right: 20px;
258
+ padding-left: 20px;
259
+ *zoom: 1;
260
+ }
261
+ .row-fluid {
262
+ width: 100%;
263
+ *zoom: 1;
264
+ }
265
+ .row-fluid:before,
266
+ .row-fluid:after {
267
+ display: table;
268
+ content: "";
269
+ line-height: 0;
270
+ }
271
+ .row-fluid:after {
272
+ clear: both;
273
+ }
274
+ .row-fluid [class*="span"] {
275
+ display: block;
276
+ width: 100%;
277
+ min-height: 30px;
278
+ -webkit-box-sizing: border-box;
279
+ -moz-box-sizing: border-box;
280
+ box-sizing: border-box;
281
+ float: left;
282
+ margin-left: 2.7624309392265194%;
283
+ *margin-left: 2.709239449864817%;
284
+ }
285
+ .row-fluid [class*="span"]:first-child {
286
+ margin-left: 0;
287
+ }
288
+ [class*="span"].pull-right,
289
+ .row-fluid [class*="span"].pull-right {
290
+ float: right;
291
+ }
292
+ .row-fluid .span12 {
293
+ width: 100%;
294
+ *width: 99.94680851063829%;
295
+ }
296
+ .row-fluid .span11 {
297
+ width: 91.43646408839778%;
298
+ *width: 91.38327259903608%;
299
+ }
300
+ .row-fluid .span10 {
301
+ width: 82.87292817679558%;
302
+ *width: 82.81973668743387%;
303
+ }
304
+ .row-fluid .span9 {
305
+ width: 74.30939226519337%;
306
+ *width: 74.25620077583166%;
307
+ }
308
+ .row-fluid .span8 {
309
+ width: 65.74585635359117%;
310
+ *width: 65.69266486422946%;
311
+ }
312
+ .row-fluid .span7 {
313
+ width: 57.18232044198895%;
314
+ *width: 57.12912895262725%;
315
+ }
316
+ .row-fluid .span6 {
317
+ width: 48.61878453038674%;
318
+ *width: 48.56559304102504%;
319
+ }
320
+ .row-fluid .span5 {
321
+ width: 40.05524861878453%;
322
+ *width: 40.00205712942283%;
323
+ }
324
+ .row-fluid .span4 {
325
+ width: 31.491712707182323%;
326
+ *width: 31.43852121782062%;
327
+ }
328
+ .row-fluid .span3 {
329
+ width: 22.92817679558011%;
330
+ *width: 22.87498530621841%;
331
+ }
332
+ .row-fluid .span2 {
333
+ width: 14.3646408839779%;
334
+ *width: 14.311449394616199%;
335
+ }
336
+ .row-fluid .span1 {
337
+ width: 5.801104972375691%;
338
+ *width: 5.747913483013988%;
339
+ }
340
+ .row-fluid .offset12 {
341
+ margin-left: 105.52486187845304%;
342
+ *margin-left: 105.41847889972962%;
343
+ }
344
+ .row-fluid .offset12:first-child {
345
+ margin-left: 102.76243093922652%;
346
+ *margin-left: 102.6560479605031%;
347
+ }
348
+ .row-fluid .offset11 {
349
+ margin-left: 96.96132596685082%;
350
+ *margin-left: 96.8549429881274%;
351
+ }
352
+ .row-fluid .offset11:first-child {
353
+ margin-left: 94.1988950276243%;
354
+ *margin-left: 94.09251204890089%;
355
+ }
356
+ .row-fluid .offset10 {
357
+ margin-left: 88.39779005524862%;
358
+ *margin-left: 88.2914070765252%;
359
+ }
360
+ .row-fluid .offset10:first-child {
361
+ margin-left: 85.6353591160221%;
362
+ *margin-left: 85.52897613729868%;
363
+ }
364
+ .row-fluid .offset9 {
365
+ margin-left: 79.8342541436464%;
366
+ *margin-left: 79.72787116492299%;
367
+ }
368
+ .row-fluid .offset9:first-child {
369
+ margin-left: 77.07182320441989%;
370
+ *margin-left: 76.96544022569647%;
371
+ }
372
+ .row-fluid .offset8 {
373
+ margin-left: 71.2707182320442%;
374
+ *margin-left: 71.16433525332079%;
375
+ }
376
+ .row-fluid .offset8:first-child {
377
+ margin-left: 68.50828729281768%;
378
+ *margin-left: 68.40190431409427%;
379
+ }
380
+ .row-fluid .offset7 {
381
+ margin-left: 62.70718232044199%;
382
+ *margin-left: 62.600799341718584%;
383
+ }
384
+ .row-fluid .offset7:first-child {
385
+ margin-left: 59.94475138121547%;
386
+ *margin-left: 59.838368402492065%;
387
+ }
388
+ .row-fluid .offset6 {
389
+ margin-left: 54.14364640883978%;
390
+ *margin-left: 54.037263430116376%;
391
+ }
392
+ .row-fluid .offset6:first-child {
393
+ margin-left: 51.38121546961326%;
394
+ *margin-left: 51.27483249088986%;
395
+ }
396
+ .row-fluid .offset5 {
397
+ margin-left: 45.58011049723757%;
398
+ *margin-left: 45.47372751851417%;
399
+ }
400
+ .row-fluid .offset5:first-child {
401
+ margin-left: 42.81767955801105%;
402
+ *margin-left: 42.71129657928765%;
403
+ }
404
+ .row-fluid .offset4 {
405
+ margin-left: 37.01657458563536%;
406
+ *margin-left: 36.91019160691196%;
407
+ }
408
+ .row-fluid .offset4:first-child {
409
+ margin-left: 34.25414364640884%;
410
+ *margin-left: 34.14776066768544%;
411
+ }
412
+ .row-fluid .offset3 {
413
+ margin-left: 28.45303867403315%;
414
+ *margin-left: 28.346655695309746%;
415
+ }
416
+ .row-fluid .offset3:first-child {
417
+ margin-left: 25.69060773480663%;
418
+ *margin-left: 25.584224756083227%;
419
+ }
420
+ .row-fluid .offset2 {
421
+ margin-left: 19.88950276243094%;
422
+ *margin-left: 19.783119783707537%;
423
+ }
424
+ .row-fluid .offset2:first-child {
425
+ margin-left: 17.12707182320442%;
426
+ *margin-left: 17.02068884448102%;
427
+ }
428
+ .row-fluid .offset1 {
429
+ margin-left: 11.32596685082873%;
430
+ *margin-left: 11.219583872105325%;
431
+ }
432
+ .row-fluid .offset1:first-child {
433
+ margin-left: 8.56353591160221%;
434
+ *margin-left: 8.457152932878806%;
435
+ }
436
+ input,
437
+ textarea,
438
+ .uneditable-input {
439
+ margin-left: 0;
440
+ }
441
+ .controls-row [class*="span"] + [class*="span"] {
442
+ margin-left: 20px;
443
+ }
444
+ input.span12, textarea.span12, .uneditable-input.span12 {
445
+ width: 710px;
446
+ }
447
+ input.span11, textarea.span11, .uneditable-input.span11 {
448
+ width: 648px;
449
+ }
450
+ input.span10, textarea.span10, .uneditable-input.span10 {
451
+ width: 586px;
452
+ }
453
+ input.span9, textarea.span9, .uneditable-input.span9 {
454
+ width: 524px;
455
+ }
456
+ input.span8, textarea.span8, .uneditable-input.span8 {
457
+ width: 462px;
458
+ }
459
+ input.span7, textarea.span7, .uneditable-input.span7 {
460
+ width: 400px;
461
+ }
462
+ input.span6, textarea.span6, .uneditable-input.span6 {
463
+ width: 338px;
464
+ }
465
+ input.span5, textarea.span5, .uneditable-input.span5 {
466
+ width: 276px;
467
+ }
468
+ input.span4, textarea.span4, .uneditable-input.span4 {
469
+ width: 214px;
470
+ }
471
+ input.span3, textarea.span3, .uneditable-input.span3 {
472
+ width: 152px;
473
+ }
474
+ input.span2, textarea.span2, .uneditable-input.span2 {
475
+ width: 90px;
476
+ }
477
+ input.span1, textarea.span1, .uneditable-input.span1 {
478
+ width: 28px;
479
+ }
480
+ }
481
+ @media (min-width: 980px) {
482
+
483
+ /* fixed layout */
484
+ .container,
485
+ .navbar-static-top .container,
486
+ .navbar-fixed-top .container,
487
+ .navbar-fixed-bottom .container {
488
+ width: 940px;
489
+ }
490
+ .span12 {
491
+ width: 940px;
492
+ }
493
+ .span11 {
494
+ width: 860px;
495
+ }
496
+ .span10 {
497
+ width: 780px;
498
+ }
499
+ .span9 {
500
+ width: 700px;
501
+ }
502
+ .span8 {
503
+ width: 620px;
504
+ }
505
+ .span7 {
506
+ width: 540px;
507
+ }
508
+ .span6 {
509
+ width: 460px;
510
+ }
511
+ .span5 {
512
+ width: 380px;
513
+ }
514
+ .span4 {
515
+ width: 300px;
516
+ }
517
+ .span3 {
518
+ width: 220px;
519
+ }
520
+ .span2 {
521
+ width: 140px;
522
+ }
523
+ .span1 {
524
+ width: 60px;
525
+ }
526
+ .offset12 {
527
+ margin-left: 980px;
528
+ }
529
+ .offset11 {
530
+ margin-left: 900px;
531
+ }
532
+ .offset10 {
533
+ margin-left: 820px;
534
+ }
535
+ .offset9 {
536
+ margin-left: 740px;
537
+ }
538
+ .offset8 {
539
+ margin-left: 660px;
540
+ }
541
+ .offset7 {
542
+ margin-left: 580px;
543
+ }
544
+ .offset6 {
545
+ margin-left: 500px;
546
+ }
547
+ .offset5 {
548
+ margin-left: 420px;
549
+ }
550
+ .offset4 {
551
+ margin-left: 340px;
552
+ }
553
+ .offset3 {
554
+ margin-left: 260px;
555
+ }
556
+ .offset2 {
557
+ margin-left: 180px;
558
+ }
559
+ .offset1 {
560
+ margin-left: 100px;
561
+ }
562
+
563
+ /* fluid layout */
564
+ .row-fluid [class*="span"] {
565
+ margin-left: 2.127659574468085%;
566
+ *margin-left: 2.074468085106383%;
567
+ }
568
+ .row-fluid .span12 {
569
+ width: 100%;
570
+ *width: 99.94680851063829%;
571
+ }
572
+ .row-fluid .span11 {
573
+ width: 91.48936170212765%;
574
+ *width: 91.43617021276594%;
575
+ }
576
+ .row-fluid .span10 {
577
+ width: 82.97872340425532%;
578
+ *width: 82.92553191489361%;
579
+ }
580
+ .row-fluid .span9 {
581
+ width: 74.46808510638297%;
582
+ *width: 74.41489361702126%;
583
+ }
584
+ .row-fluid .span8 {
585
+ width: 65.95744680851064%;
586
+ *width: 65.90425531914893%;
587
+ }
588
+ .row-fluid .span7 {
589
+ width: 57.44680851063829%;
590
+ *width: 57.39361702127659%;
591
+ }
592
+ .row-fluid .span6 {
593
+ width: 48.93617021276595%;
594
+ *width: 48.88297872340425%;
595
+ }
596
+ .row-fluid .span5 {
597
+ width: 40.42553191489362%;
598
+ *width: 40.37234042553192%;
599
+ }
600
+ .row-fluid .span4 {
601
+ width: 31.914893617021278%;
602
+ *width: 31.861702127659576%;
603
+ }
604
+ .row-fluid .span3 {
605
+ width: 23.404255319148934%;
606
+ *width: 23.351063829787233%;
607
+ }
608
+ .row-fluid .span2 {
609
+ width: 14.893617021276595%;
610
+ *width: 14.840425531914894%;
611
+ }
612
+ .row-fluid .span1 {
613
+ width: 6.382978723404255%;
614
+ *width: 6.329787234042553%;
615
+ }
616
+ .row-fluid .offset12 {
617
+ margin-left: 104.25531914893617%;
618
+ *margin-left: 104.14893617021275%;
619
+ }
620
+ .row-fluid .offset12:first-child {
621
+ margin-left: 102.12765957446808%;
622
+ *margin-left: 102.02127659574467%;
623
+ }
624
+ .row-fluid .offset11 {
625
+ margin-left: 95.74468085106382%;
626
+ *margin-left: 95.6382978723404%;
627
+ }
628
+ .row-fluid .offset11:first-child {
629
+ margin-left: 93.61702127659574%;
630
+ *margin-left: 93.51063829787232%;
631
+ }
632
+ .row-fluid .offset10 {
633
+ margin-left: 87.23404255319149%;
634
+ *margin-left: 87.12765957446807%;
635
+ }
636
+ .row-fluid .offset10:first-child {
637
+ margin-left: 85.1063829787234%;
638
+ *margin-left: 84.99999999999999%;
639
+ }
640
+ .row-fluid .offset9 {
641
+ margin-left: 78.72340425531914%;
642
+ *margin-left: 78.61702127659572%;
643
+ }
644
+ .row-fluid .offset9:first-child {
645
+ margin-left: 76.59574468085106%;
646
+ *margin-left: 76.48936170212764%;
647
+ }
648
+ .row-fluid .offset8 {
649
+ margin-left: 70.2127659574468%;
650
+ *margin-left: 70.10638297872339%;
651
+ }
652
+ .row-fluid .offset8:first-child {
653
+ margin-left: 68.08510638297872%;
654
+ *margin-left: 67.9787234042553%;
655
+ }
656
+ .row-fluid .offset7 {
657
+ margin-left: 61.70212765957446%;
658
+ *margin-left: 61.59574468085106%;
659
+ }
660
+ .row-fluid .offset7:first-child {
661
+ margin-left: 59.574468085106375%;
662
+ *margin-left: 59.46808510638297%;
663
+ }
664
+ .row-fluid .offset6 {
665
+ margin-left: 53.191489361702125%;
666
+ *margin-left: 53.085106382978715%;
667
+ }
668
+ .row-fluid .offset6:first-child {
669
+ margin-left: 51.063829787234035%;
670
+ *margin-left: 50.95744680851063%;
671
+ }
672
+ .row-fluid .offset5 {
673
+ margin-left: 44.68085106382979%;
674
+ *margin-left: 44.57446808510638%;
675
+ }
676
+ .row-fluid .offset5:first-child {
677
+ margin-left: 42.5531914893617%;
678
+ *margin-left: 42.4468085106383%;
679
+ }
680
+ .row-fluid .offset4 {
681
+ margin-left: 36.170212765957444%;
682
+ *margin-left: 36.06382978723405%;
683
+ }
684
+ .row-fluid .offset4:first-child {
685
+ margin-left: 34.04255319148936%;
686
+ *margin-left: 33.93617021276596%;
687
+ }
688
+ .row-fluid .offset3 {
689
+ margin-left: 27.659574468085104%;
690
+ *margin-left: 27.5531914893617%;
691
+ }
692
+ .row-fluid .offset3:first-child {
693
+ margin-left: 25.53191489361702%;
694
+ *margin-left: 25.425531914893618%;
695
+ }
696
+ .row-fluid .offset2 {
697
+ margin-left: 19.148936170212764%;
698
+ *margin-left: 19.04255319148936%;
699
+ }
700
+ .row-fluid .offset2:first-child {
701
+ margin-left: 17.02127659574468%;
702
+ *margin-left: 16.914893617021278%;
703
+ }
704
+ .row-fluid .offset1 {
705
+ margin-left: 10.638297872340425%;
706
+ *margin-left: 10.53191489361702%;
707
+ }
708
+ .row-fluid .offset1:first-child {
709
+ margin-left: 8.51063829787234%;
710
+ *margin-left: 8.404255319148938%;
711
+ }
712
+
713
+ }
714
+
715
+ @media (min-width: 1200px) {
716
+
717
+ /* fixed layout */
718
+ .row {
719
+ margin-left: -30px;
720
+ }
721
+ [class*="span"] {
722
+ margin-left: 30px;
723
+ }
724
+ .container,
725
+ .navbar-static-top .container,
726
+ .navbar-fixed-top .container,
727
+ .navbar-fixed-bottom .container {
728
+ width: 1170px;
729
+ }
730
+ .span12 {
731
+ width: 1170px;
732
+ }
733
+ .span11 {
734
+ width: 1070px;
735
+ }
736
+ .span10 {
737
+ width: 970px;
738
+ }
739
+ .span9 {
740
+ width: 870px;
741
+ }
742
+ .span8 {
743
+ width: 770px;
744
+ }
745
+ .span7 {
746
+ width: 670px;
747
+ }
748
+ .span6 {
749
+ width: 570px;
750
+ }
751
+ .span5 {
752
+ width: 470px;
753
+ }
754
+ .span4 {
755
+ width: 370px;
756
+ }
757
+ .span3 {
758
+ width: 270px;
759
+ }
760
+ .span2 {
761
+ width: 170px;
762
+ }
763
+ .span1 {
764
+ width: 70px;
765
+ }
766
+ .offset12 {
767
+ margin-left: 1230px;
768
+ }
769
+ .offset11 {
770
+ margin-left: 1130px;
771
+ }
772
+ .offset10 {
773
+ margin-left: 1030px;
774
+ }
775
+ .offset9 {
776
+ margin-left: 930px;
777
+ }
778
+ .offset8 {
779
+ margin-left: 830px;
780
+ }
781
+ .offset7 {
782
+ margin-left: 730px;
783
+ }
784
+ .offset6 {
785
+ margin-left: 630px;
786
+ }
787
+ .offset5 {
788
+ margin-left: 530px;
789
+ }
790
+ .offset4 {
791
+ margin-left: 430px;
792
+ }
793
+ .offset3 {
794
+ margin-left: 330px;
795
+ }
796
+ .offset2 {
797
+ margin-left: 230px;
798
+ }
799
+ .offset1 {
800
+ margin-left: 130px;
801
+ }
802
+
803
+ /* fluid layout */
804
+ .row-fluid [class*="span"] {
805
+ margin-left: 2.564102564102564%;
806
+ *margin-left: 2.5109110747408616%;
807
+ }
808
+ .row-fluid [class*="span"]:first-child {
809
+ margin-left: 0;
810
+ }
811
+ .row-fluid .span12 {
812
+ width: 100%;
813
+ *width: 99.94680851063829%;
814
+ }
815
+ .row-fluid .span11 {
816
+ width: 91.45299145299145%;
817
+ *width: 91.39979996362975%;
818
+ }
819
+ .row-fluid .span10 {
820
+ width: 82.90598290598291%;
821
+ *width: 82.8527914166212%;
822
+ }
823
+ .row-fluid .span9 {
824
+ width: 74.35897435897436%;
825
+ *width: 74.30578286961266%;
826
+ }
827
+ .row-fluid .span8 {
828
+ width: 65.81196581196582%;
829
+ *width: 65.75877432260411%;
830
+ }
831
+ .row-fluid .span7 {
832
+ width: 57.26495726495726%;
833
+ *width: 57.21176577559556%;
834
+ }
835
+ .row-fluid .span6 {
836
+ width: 48.717948717948715%;
837
+ *width: 48.664757228587014%;
838
+ }
839
+ .row-fluid .span5 {
840
+ width: 40.17094017094017%;
841
+ *width: 40.11774868157847%;
842
+ }
843
+ .row-fluid .span4 {
844
+ width: 31.623931623931625%;
845
+ *width: 31.570740134569924%;
846
+ }
847
+ .row-fluid .span3 {
848
+ width: 23.076923076923077%;
849
+ *width: 23.023731587561375%;
850
+ }
851
+ .row-fluid .span2 {
852
+ width: 14.52991452991453%;
853
+ *width: 14.476723040552828%;
854
+ }
855
+ .row-fluid .span1 {
856
+ width: 5.982905982905983%;
857
+ *width: 5.929714493544281%;
858
+ }
859
+ .row-fluid .offset12 {
860
+ margin-left: 105.12820512820512%;
861
+ *margin-left: 105.02182214948171%;
862
+ }
863
+ .row-fluid .offset12:first-child {
864
+ margin-left: 102.56410256410257%;
865
+ *margin-left: 102.45771958537915%;
866
+ }
867
+ .row-fluid .offset11 {
868
+ margin-left: 96.58119658119658%;
869
+ *margin-left: 96.47481360247316%;
870
+ }
871
+ .row-fluid .offset11:first-child {
872
+ margin-left: 94.01709401709402%;
873
+ *margin-left: 93.91071103837061%;
874
+ }
875
+ .row-fluid .offset10 {
876
+ margin-left: 88.03418803418803%;
877
+ *margin-left: 87.92780505546462%;
878
+ }
879
+ .row-fluid .offset10:first-child {
880
+ margin-left: 85.47008547008548%;
881
+ *margin-left: 85.36370249136206%;
882
+ }
883
+ .row-fluid .offset9 {
884
+ margin-left: 79.48717948717949%;
885
+ *margin-left: 79.38079650845607%;
886
+ }
887
+ .row-fluid .offset9:first-child {
888
+ margin-left: 76.92307692307693%;
889
+ *margin-left: 76.81669394435352%;
890
+ }
891
+ .row-fluid .offset8 {
892
+ margin-left: 70.94017094017094%;
893
+ *margin-left: 70.83378796144753%;
894
+ }
895
+ .row-fluid .offset8:first-child {
896
+ margin-left: 68.37606837606839%;
897
+ *margin-left: 68.26968539734497%;
898
+ }
899
+ .row-fluid .offset7 {
900
+ margin-left: 62.393162393162385%;
901
+ *margin-left: 62.28677941443899%;
902
+ }
903
+ .row-fluid .offset7:first-child {
904
+ margin-left: 59.82905982905982%;
905
+ *margin-left: 59.72267685033642%;
906
+ }
907
+ .row-fluid .offset6 {
908
+ margin-left: 53.84615384615384%;
909
+ *margin-left: 53.739770867430444%;
910
+ }
911
+ .row-fluid .offset6:first-child {
912
+ margin-left: 51.28205128205128%;
913
+ *margin-left: 51.175668303327875%;
914
+ }
915
+ .row-fluid .offset5 {
916
+ margin-left: 45.299145299145295%;
917
+ *margin-left: 45.1927623204219%;
918
+ }
919
+ .row-fluid .offset5:first-child {
920
+ margin-left: 42.73504273504273%;
921
+ *margin-left: 42.62865975631933%;
922
+ }
923
+ .row-fluid .offset4 {
924
+ margin-left: 36.75213675213675%;
925
+ *margin-left: 36.645753773413354%;
926
+ }
927
+ .row-fluid .offset4:first-child {
928
+ margin-left: 34.18803418803419%;
929
+ *margin-left: 34.081651209310785%;
930
+ }
931
+ .row-fluid .offset3 {
932
+ margin-left: 28.205128205128204%;
933
+ *margin-left: 28.0987452264048%;
934
+ }
935
+ .row-fluid .offset3:first-child {
936
+ margin-left: 25.641025641025642%;
937
+ *margin-left: 25.53464266230224%;
938
+ }
939
+ .row-fluid .offset2 {
940
+ margin-left: 19.65811965811966%;
941
+ *margin-left: 19.551736679396257%;
942
+ }
943
+ .row-fluid .offset2:first-child {
944
+ margin-left: 17.094017094017094%;
945
+ *margin-left: 16.98763411529369%;
946
+ }
947
+ .row-fluid .offset1 {
948
+ margin-left: 11.11111111111111%;
949
+ *margin-left: 11.004728132387708%;
950
+ }
951
+ .row-fluid .offset1:first-child {
952
+ margin-left: 8.547008547008547%;
953
+ *margin-left: 8.440625568285142%;
954
+ }
955
+ .controls-row [class*="span"] + [class*="span"] {
956
+ margin-left: 30px;
957
+ }
958
+ input.span12, textarea.span12, .uneditable-input.span12 {
959
+ width: 1156px;
960
+ }
961
+ input.span11, textarea.span11, .uneditable-input.span11 {
962
+ width: 1056px;
963
+ }
964
+ input.span10, textarea.span10, .uneditable-input.span10 {
965
+ width: 956px;
966
+ }
967
+ input.span9, textarea.span9, .uneditable-input.span9 {
968
+ width: 856px;
969
+ }
970
+ input.span8, textarea.span8, .uneditable-input.span8 {
971
+ width: 756px;
972
+ }
973
+ input.span7, textarea.span7, .uneditable-input.span7 {
974
+ width: 656px;
975
+ }
976
+ input.span6, textarea.span6, .uneditable-input.span6 {
977
+ width: 556px;
978
+ }
979
+ input.span5, textarea.span5, .uneditable-input.span5 {
980
+ width: 456px;
981
+ }
982
+ input.span4, textarea.span4, .uneditable-input.span4 {
983
+ width: 356px;
984
+ }
985
+ input.span3, textarea.span3, .uneditable-input.span3 {
986
+ width: 256px;
987
+ }
988
+ input.span2, textarea.span2, .uneditable-input.span2 {
989
+ width: 156px;
990
+ }
991
+ input.span1, textarea.span1, .uneditable-input.span1 {
992
+ width: 56px;
993
+ }
994
+ .thumbnails {
995
+ margin-left: -30px;
996
+ }
997
+ .thumbnails > li {
998
+ margin-left: 30px;
999
+ }
1000
+ .row-fluid .thumbnails {
1001
+ margin-left: 0;
1002
+ }
1003
+ }
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mobile_first_bootstrap_grid-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Chad Crissman
9
+ - Jessica Lynn Suttles
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-10-11 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: railties
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 3.0.0
31
+ description: Mobile first bootstrap grid for Rails
32
+ email:
33
+ - cdcrissman@gmail.com
34
+ - jlsuttles@gmail.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - .gitignore
40
+ - Gemfile
41
+ - LICENSE
42
+ - README.md
43
+ - Rakefile
44
+ - lib/generators/mobile_first_bootstrap_grid/install/install_generator.rb
45
+ - lib/mobile_first_bootstrap_grid-rails.rb
46
+ - lib/mobile_first_bootstrap_grid/rails.rb
47
+ - lib/mobile_first_bootstrap_grid/rails/engine.rb
48
+ - lib/mobile_first_bootstrap_grid/rails/version.rb
49
+ - mobile_first_bootstrap_grid-rails.gemspec
50
+ - vendor/assets/stylesheets/mobile-first-bootstrap-grid.css
51
+ homepage: https://github.com/G5/mobile_first_bootstrap_grid-rails
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: 1057784697519487934
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: 1057784697519487934
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.24
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Mobile first bootstrap grid for Rails
81
+ test_files: []