bootstrap-generators 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/.rvmrc +1 -0
  2. data/README.md +128 -22
  3. data/Rakefile +59 -0
  4. data/bootstrap-generators.gemspec +1 -1
  5. data/lib/bootstrap/generators/version.rb +1 -1
  6. data/lib/generators/bootstrap/install/install_generator.rb +1 -0
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.less +98 -0
  8. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +99 -0
  9. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +3 -100
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +4 -4
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +1 -0
  12. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +4 -100
  13. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +5 -4
  14. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +23 -22
  15. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +4 -7
  16. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +4 -6
  17. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +3 -2
  18. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +3 -2
  19. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +15 -7
  20. data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +16 -10
  21. data/test/lib/generators/bootstrap/install_generator_test.rb +2 -0
  22. data/vendor/assets/javascripts/bootstrap-alert.js +8 -5
  23. data/vendor/assets/javascripts/bootstrap-button.js +5 -3
  24. data/vendor/assets/javascripts/bootstrap-carousel.js +5 -2
  25. data/vendor/assets/javascripts/bootstrap-collapse.js +2 -2
  26. data/vendor/assets/javascripts/bootstrap-dropdown.js +2 -2
  27. data/vendor/assets/javascripts/bootstrap-modal.js +6 -5
  28. data/vendor/assets/javascripts/bootstrap-popover.js +2 -2
  29. data/vendor/assets/javascripts/bootstrap-scrollspy.js +2 -2
  30. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  31. data/vendor/assets/javascripts/bootstrap-tooltip.js +2 -2
  32. data/vendor/assets/javascripts/bootstrap-transition.js +3 -3
  33. data/vendor/assets/javascripts/bootstrap-typeahead.js +2 -2
  34. data/vendor/assets/stylesheets/less/bootstrap.less +1 -1
  35. data/vendor/assets/stylesheets/less/breadcrumbs.less +1 -1
  36. data/vendor/assets/stylesheets/less/button-groups.less +2 -1
  37. data/vendor/assets/stylesheets/less/buttons.less +25 -7
  38. data/vendor/assets/stylesheets/less/code.less +13 -0
  39. data/vendor/assets/stylesheets/less/dropdowns.less +1 -2
  40. data/vendor/assets/stylesheets/less/forms.less +48 -41
  41. data/vendor/assets/stylesheets/less/labels.less +23 -7
  42. data/vendor/assets/stylesheets/less/mixins.less +78 -25
  43. data/vendor/assets/stylesheets/less/modals.less +11 -0
  44. data/vendor/assets/stylesheets/less/navbar.less +11 -4
  45. data/vendor/assets/stylesheets/less/navs.less +20 -11
  46. data/vendor/assets/stylesheets/less/reset.less +1 -1
  47. data/vendor/assets/stylesheets/less/responsive.less +9 -5
  48. data/vendor/assets/stylesheets/less/sprites.less +7 -5
  49. data/vendor/assets/stylesheets/less/tables.less +14 -3
  50. data/vendor/assets/stylesheets/less/thumbnails.less +2 -2
  51. data/vendor/assets/stylesheets/less/type.less +3 -2
  52. data/vendor/assets/stylesheets/less/variables.less +15 -7
  53. data/vendor/assets/stylesheets/scss/accordion.scss +28 -0
  54. data/vendor/assets/stylesheets/scss/alerts.scss +70 -0
  55. data/vendor/assets/stylesheets/scss/bootstrap.scss +62 -0
  56. data/vendor/assets/stylesheets/scss/breadcrumbs.scss +22 -0
  57. data/vendor/assets/stylesheets/scss/button-groups.scss +148 -0
  58. data/vendor/assets/stylesheets/scss/buttons.scss +183 -0
  59. data/vendor/assets/stylesheets/scss/carousel.scss +121 -0
  60. data/vendor/assets/stylesheets/scss/close.scss +18 -0
  61. data/vendor/assets/stylesheets/scss/code.scss +57 -0
  62. data/vendor/assets/stylesheets/scss/component-animations.scss +18 -0
  63. data/vendor/assets/stylesheets/scss/dropdowns.scss +130 -0
  64. data/vendor/assets/stylesheets/scss/forms.scss +522 -0
  65. data/vendor/assets/stylesheets/scss/grid.scss +8 -0
  66. data/vendor/assets/stylesheets/scss/hero-unit.scss +20 -0
  67. data/vendor/assets/stylesheets/scss/labels.scss +32 -0
  68. data/vendor/assets/stylesheets/scss/layouts.scss +17 -0
  69. data/vendor/assets/stylesheets/scss/mixins.scss +579 -0
  70. data/vendor/assets/stylesheets/scss/modals.scss +83 -0
  71. data/vendor/assets/stylesheets/scss/navbar.scss +299 -0
  72. data/vendor/assets/stylesheets/scss/navs.scss +353 -0
  73. data/vendor/assets/stylesheets/scss/pager.scss +30 -0
  74. data/vendor/assets/stylesheets/scss/pagination.scss +55 -0
  75. data/vendor/assets/stylesheets/scss/popovers.scss +49 -0
  76. data/vendor/assets/stylesheets/scss/progress-bars.scss +95 -0
  77. data/vendor/assets/stylesheets/scss/reset.scss +126 -0
  78. data/vendor/assets/stylesheets/scss/responsive.scss +327 -0
  79. data/vendor/assets/stylesheets/scss/scaffolding.scss +29 -0
  80. data/vendor/assets/stylesheets/scss/sprites.scss +158 -0
  81. data/vendor/assets/stylesheets/scss/tables.scss +150 -0
  82. data/vendor/assets/stylesheets/scss/thumbnails.scss +35 -0
  83. data/vendor/assets/stylesheets/scss/tooltip.scss +35 -0
  84. data/vendor/assets/stylesheets/scss/type.scss +218 -0
  85. data/vendor/assets/stylesheets/scss/utilities.scss +23 -0
  86. data/vendor/assets/stylesheets/scss/variables.scss +107 -0
  87. data/vendor/assets/stylesheets/scss/wells.scss +17 -0
  88. metadata +49 -11
@@ -1,7 +1,7 @@
1
- @import "less/bootstrap";
1
+ @import "bootstrap-variables";
2
2
 
3
3
  body {
4
- padding-top: 60px;
4
+ padding-top: $navbarHeight + 20px;
5
5
  padding-bottom: 40px;
6
6
  }
7
7
 
@@ -19,101 +19,4 @@ body {
19
19
  }
20
20
  }
21
21
 
22
- // Variables to customize the look and feel of Bootstrap
23
- // -----------------------------------------------------
24
-
25
-
26
-
27
- // GLOBAL VALUES
28
- // --------------------------------------------------
29
-
30
- // Links
31
- @linkColor: #08c;
32
- @linkColorHover: darken(@linkColor, 15%);
33
-
34
- // Grays
35
- @black: #000;
36
- @grayDarker: #222;
37
- @grayDark: #333;
38
- @gray: #555;
39
- @grayLight: #999;
40
- @grayLighter: #eee;
41
- @white: #fff;
42
-
43
- // Accent colors
44
- @blue: #049cdb;
45
- @blueDark: #0064cd;
46
- @green: #46a546;
47
- @red: #9d261d;
48
- @yellow: #ffc40d;
49
- @orange: #f89406;
50
- @pink: #c3325f;
51
- @purple: #7a43b6;
52
-
53
- // Typography
54
- @baseFontSize: 13px;
55
- @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
56
- @baseLineHeight: 18px;
57
- @textColor: @grayDark;
58
-
59
- // Buttons
60
- @primaryButtonBackground: @linkColor;
61
-
62
-
63
-
64
- // COMPONENT VARIABLES
65
- // --------------------------------------------------
66
-
67
- // Z-index master list
68
- // Used for a bird's eye view of components dependent on the z-axis
69
- // Try to avoid customizing these :)
70
- @zindexDropdown: 1000;
71
- @zindexPopover: 1010;
72
- @zindexTooltip: 1020;
73
- @zindexFixedNavbar: 1030;
74
- @zindexModalBackdrop: 1040;
75
- @zindexModal: 1050;
76
-
77
- // Input placeholder text color
78
- @placeholderText: @grayLight;
79
-
80
- // Navbar
81
- @navbarHeight: 40px;
82
- @navbarBackground: @grayDarker;
83
- @navbarBackgroundHighlight: @grayDark;
84
-
85
- @navbarText: @grayLight;
86
- @navbarLinkColor: @grayLight;
87
- @navbarLinkColorHover: @white;
88
-
89
- // Form states and alerts
90
- @warningText: #c09853;
91
- @warningBackground: #fcf8e3;
92
- @warningBorder: darken(spin(@warningBackground, -10), 3%);
93
-
94
- @errorText: #b94a48;
95
- @errorBackground: #f2dede;
96
- @errorBorder: darken(spin(@errorBackground, -10), 3%);
97
-
98
- @successText: #468847;
99
- @successBackground: #dff0d8;
100
- @successBorder: darken(spin(@successBackground, -10), 5%);
101
-
102
- @infoText: #3a87ad;
103
- @infoBackground: #d9edf7;
104
- @infoBorder: darken(spin(@infoBackground, -10), 7%);
105
-
106
-
107
-
108
- // GRID
109
- // --------------------------------------------------
110
-
111
- // Default 940px grid
112
- @gridColumns: 12;
113
- @gridColumnWidth: 60px;
114
- @gridGutterWidth: 20px;
115
- @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
116
-
117
- // Fluid grid
118
- @fluidGridColumnWidth: 6.382978723%;
119
- @fluidGridGutterWidth: 2.127659574%;
22
+ @import "less/bootstrap";
@@ -1,9 +1,7 @@
1
- /*
2
- *= require bootstrap
3
- */
1
+ @import "bootstrap-variables";
4
2
 
5
3
  body {
6
- padding-top: 60px;
4
+ padding-top: $navbarHeight + 20px;
7
5
  padding-bottom: 40px;
8
6
  }
9
7
 
@@ -20,3 +18,5 @@ body {
20
18
  margin-right: 8px;
21
19
  }
22
20
  }
21
+
22
+ @import "scss/bootstrap";
@@ -4,6 +4,7 @@
4
4
 
5
5
  body {
6
6
  padding-top: 60px;
7
+ padding-bottom: 40px;
7
8
  }
8
9
 
9
10
  .page-header a.btn {
@@ -1,7 +1,8 @@
1
- @import "less/bootstrap";
1
+ @import "bootstrap-variables"
2
2
 
3
3
  body {
4
- padding-top: 60px;
4
+ padding-top: $navbarHeight + 20px;
5
+ padding-bottom: 40px;
5
6
  }
6
7
 
7
8
  .page-header {
@@ -14,101 +15,4 @@ body {
14
15
  }
15
16
  }
16
17
 
17
- // Variables to customize the look and feel of Bootstrap
18
- // -----------------------------------------------------
19
-
20
-
21
-
22
- // GLOBAL VALUES
23
- // --------------------------------------------------
24
-
25
- // Links
26
- @linkColor: #08c;
27
- @linkColorHover: darken(@linkColor, 15%);
28
-
29
- // Grays
30
- @black: #000;
31
- @grayDarker: #222;
32
- @grayDark: #333;
33
- @gray: #555;
34
- @grayLight: #999;
35
- @grayLighter: #eee;
36
- @white: #fff;
37
-
38
- // Accent colors
39
- @blue: #049cdb;
40
- @blueDark: #0064cd;
41
- @green: #46a546;
42
- @red: #9d261d;
43
- @yellow: #ffc40d;
44
- @orange: #f89406;
45
- @pink: #c3325f;
46
- @purple: #7a43b6;
47
-
48
- // Typography
49
- @baseFontSize: 13px;
50
- @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
51
- @baseLineHeight: 18px;
52
- @textColor: @grayDark;
53
-
54
- // Buttons
55
- @primaryButtonBackground: @linkColor;
56
-
57
-
58
-
59
- // COMPONENT VARIABLES
60
- // --------------------------------------------------
61
-
62
- // Z-index master list
63
- // Used for a bird's eye view of components dependent on the z-axis
64
- // Try to avoid customizing these :)
65
- @zindexDropdown: 1000;
66
- @zindexPopover: 1010;
67
- @zindexTooltip: 1020;
68
- @zindexFixedNavbar: 1030;
69
- @zindexModalBackdrop: 1040;
70
- @zindexModal: 1050;
71
-
72
- // Input placeholder text color
73
- @placeholderText: @grayLight;
74
-
75
- // Navbar
76
- @navbarHeight: 40px;
77
- @navbarBackground: @grayDarker;
78
- @navbarBackgroundHighlight: @grayDark;
79
-
80
- @navbarText: @grayLight;
81
- @navbarLinkColor: @grayLight;
82
- @navbarLinkColorHover: @white;
83
-
84
- // Form states and alerts
85
- @warningText: #c09853;
86
- @warningBackground: #fcf8e3;
87
- @warningBorder: darken(spin(@warningBackground, -10), 3%);
88
-
89
- @errorText: #b94a48;
90
- @errorBackground: #f2dede;
91
- @errorBorder: darken(spin(@errorBackground, -10), 3%);
92
-
93
- @successText: #468847;
94
- @successBackground: #dff0d8;
95
- @successBorder: darken(spin(@successBackground, -10), 5%);
96
-
97
- @infoText: #3a87ad;
98
- @infoBackground: #d9edf7;
99
- @infoBorder: darken(spin(@infoBackground, -10), 7%);
100
-
101
-
102
-
103
- // GRID
104
- // --------------------------------------------------
105
-
106
- // Default 940px grid
107
- @gridColumns: 12;
108
- @gridColumnWidth: 60px;
109
- @gridGutterWidth: 20px;
110
- @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
111
-
112
- // Fluid grid
113
- @fluidGridColumnWidth: 6.382978723%;
114
- @fluidGridGutterWidth: 2.127659574%;
18
+ @import "less/bootstrap";
@@ -1,9 +1,8 @@
1
- /*
2
- *= require bootstrap
3
- */
1
+ @import "bootstrap-variables";
4
2
 
5
3
  body {
6
- padding-top: 60px;
4
+ padding-top: $navbarHeight + 20px;
5
+ padding-bottom: 40px;
7
6
  }
8
7
 
9
8
  .page-header {
@@ -15,3 +14,5 @@ body {
15
14
  margin-right: 8px;
16
15
  }
17
16
  }
17
+
18
+ @import "scss/bootstrap";
@@ -41,41 +41,41 @@ SimpleForm.setup do |config|
41
41
 
42
42
  ## Inputs
43
43
  b.use :label_input
44
- b.use :hint, :tag => :span, :class => :hint
45
- b.use :error, :tag => :span, :class => :error
44
+ b.use :hint, :wrap_with => { :tag => :span, :class => :hint }
45
+ b.use :error, :wrap_with => { :tag => :span, :class => :error }
46
46
  end
47
47
 
48
48
  config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
49
49
  b.use :placeholder
50
- b.use :label, :class => 'control-label'
51
- b.use :tag => 'div', :class => 'controls' do |ba|
50
+ b.use :label
51
+ b.wrapper :tag => 'div', :class => 'controls' do |ba|
52
52
  ba.use :input
53
- ba.use :error, :tag => 'span', :class => 'help-inline'
54
- ba.use :hint, :tag => 'p', :class => 'help-block'
53
+ ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
54
+ ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
55
55
  end
56
56
  end
57
57
 
58
58
  config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
59
59
  b.use :placeholder
60
- b.use :label, :class => 'control-label'
61
- b.use :hint, :tag => 'span', :class => 'help-block'
62
- b.use :tag => 'div', :class => 'controls' do |input|
63
- input.use :tag => 'div', :class => 'input-prepend' do |prepend|
60
+ b.use :label
61
+ b.wrapper :tag => 'div', :class => 'controls' do |input|
62
+ input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
64
63
  prepend.use :input
65
64
  end
66
- input.use :error, :tag => 'span', :class => 'help-inline'
65
+ input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
66
+ input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
67
67
  end
68
68
  end
69
69
 
70
70
  config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
71
71
  b.use :placeholder
72
- b.use :label, :class => 'control-label'
73
- b.use :hint, :tag => 'span', :class => 'help-block'
74
- b.use :tag => 'div', :class => 'controls' do |input|
75
- input.use :tag => 'div', :class => 'input-append' do |append|
72
+ b.use :label
73
+ b.wrapper :tag => 'div', :class => 'controls' do |input|
74
+ input.wrapper :tag => 'div', :class => 'input-append' do |append|
76
75
  append.use :input
77
76
  end
78
- input.use :error, :tag => 'span', :class => 'help-inline'
77
+ input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
78
+ input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
79
79
  end
80
80
  end
81
81
 
@@ -98,12 +98,10 @@ SimpleForm.setup do |config|
98
98
  # config.error_method = :first
99
99
 
100
100
  # Default tag used for error notification helper.
101
- # config.error_notification_tag = :p
102
- config.error_notification_tag = :span
101
+ config.error_notification_tag = :div
103
102
 
104
103
  # CSS class to add for error notification helper.
105
- # config.error_notification_class = :error_notification
106
- config.error_notification_class = nil
104
+ config.error_notification_class = 'alert alert-error'
107
105
 
108
106
  # ID to add for error notification helper.
109
107
  # config.error_notification_id = nil
@@ -132,11 +130,14 @@ SimpleForm.setup do |config|
132
130
  # config.label_text = lambda { |label, required| "#{required} #{label}" }
133
131
 
134
132
  # You can define the class to use on all labels. Default is nil.
135
- # config.label_class = nil
133
+ config.label_class = 'control-label'
136
134
 
137
135
  # You can define the class to use on all forms. Default is simple_form.
138
136
  config.form_class = 'form-horizontal'
139
137
 
138
+ # You can define which elements should obtain additional classes
139
+ # config.generate_additional_classes_for = [:wrapper, :label, :input]
140
+
140
141
  # Whether attributes are required by default (or not). Default is true.
141
142
  # config.required_by_default = true
142
143
 
@@ -167,6 +168,6 @@ SimpleForm.setup do |config|
167
168
  # Automatically discover new inputs in Rails' autoload path.
168
169
  # config.inputs_discovery = true
169
170
 
170
- # Cache simple form inputs discovery
171
+ # Cache SimpleForm inputs discovery
171
172
  # config.cache_discovery = !Rails.env.development?
172
173
  end
@@ -1,16 +1,13 @@
1
1
  <%%= simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f| %>
2
- <%% if @<%= singular_table_name %>.errors.any? %>
3
- <div class="alert alert-error">
4
- <a class="close" data-dismiss="alert" href="#">×</a>
5
- <%%= f.error_notification %>
6
- </div>
7
- <%% end %>
2
+ <%%= f.error_notification %>
8
3
 
4
+ <div class="form-inputs">
9
5
  <%- attributes.each do |attribute| -%>
10
6
  <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
11
7
  <%- end -%>
8
+ </div>
12
9
 
13
10
  <div class="form-actions">
14
- <%%= f.button :submit, :class => "btn btn-primary" %>
11
+ <%%= f.button :submit, :class => "btn-primary" %>
15
12
  </div>
16
13
  <%% end %>
@@ -1,12 +1,10 @@
1
1
  = simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f|
2
- -if @<%= singular_table_name %>.errors.any?
3
- .alert.alert-error
4
- %a.close{:href => "#", :"data-dismiss" => "alert"} ×
5
- = f.error_notification
2
+ = f.error_notification
6
3
 
4
+ .form-inputs
7
5
  <%- attributes.each do |attribute| -%>
8
- = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
6
+ = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
9
7
  <%- end -%>
10
8
 
11
9
  .form-actions
12
- = f.button :submit, :class => "btn btn-primary"
10
+ = f.button :submit, :class => "btn-primary"
@@ -3,12 +3,13 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>Bootstrap, from Twitter</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
7
  <meta name="description" content="">
7
8
  <meta name="author" content="">
8
9
 
9
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
10
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
10
11
  <!--[if lt IE 9]>
11
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
13
  <![endif]-->
13
14
 
14
15
  <%%= stylesheet_link_tag "application" %>
@@ -3,12 +3,13 @@
3
3
  %head
4
4
  %meta{:charset => "utf-8"}
5
5
  %title Bootstrap, from Twitter
6
+ %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
6
7
  %meta{:content => "", :name => "description"}
7
8
  %meta{:content => "", :name => "author"}
8
9
 
9
- / Le HTML5 shim, for IE6-8 support of HTML elements
10
+ / Le HTML5 shim, for IE6-8 support of HTML5 elements
10
11
  /[if lt IE 9]
11
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
13
  = stylesheet_link_tag "application"
13
14
  = javascript_include_tag "application"
14
15
  = csrf_meta_tags
@@ -3,12 +3,13 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>Bootstrap, from Twitter</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
7
  <meta name="description" content="">
7
8
  <meta name="author" content="">
8
9
 
9
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
10
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
10
11
  <!--[if lt IE 9]>
11
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
13
  <![endif]-->
13
14
 
14
15
  <%%= stylesheet_link_tag "application" %>
@@ -19,12 +20,19 @@
19
20
  <div class="navbar navbar-fixed-top">
20
21
  <div class="navbar-inner">
21
22
  <div class="container">
23
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
24
+ <span class="icon-bar"></span>
25
+ <span class="icon-bar"></span>
26
+ <span class="icon-bar"></span>
27
+ </a>
22
28
  <%%= link_to "Project name", "#", :class => "brand" %>
23
- <ul class="nav">
24
- <li class="active"><a href="#">Home</a></li>
25
- <li><a href="#about">About</a></li>
26
- <li><a href="#contact">Contact</a></li>
27
- </ul>
29
+ <div class="nav-collapse">
30
+ <ul class="nav">
31
+ <li class="active"><a href="#">Home</a></li>
32
+ <li><a href="#about">About</a></li>
33
+ <li><a href="#contact">Contact</a></li>
34
+ </ul>
35
+ </div>
28
36
  </div>
29
37
  </div>
30
38
  </div>