bootstrap-generators 3.2.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/Rakefile +9 -18
  4. data/lib/bootstrap/generators/version.rb +1 -1
  5. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +31 -21
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +38 -24
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/starter.scss +2 -1
  8. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +3 -3
  9. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +5 -3
  10. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.slim +7 -4
  11. data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +10 -9
  12. data/lib/generators/bootstrap/install/templates/layouts/starter.html.haml +12 -9
  13. data/lib/generators/bootstrap/install/templates/layouts/starter.html.slim +15 -11
  14. data/readme-template.md.erb +3 -1
  15. data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +1 -1
  16. data/vendor/assets/javascripts/bootstrap/affix.js +43 -23
  17. data/vendor/assets/javascripts/bootstrap/alert.js +6 -4
  18. data/vendor/assets/javascripts/bootstrap/button.js +16 -10
  19. data/vendor/assets/javascripts/bootstrap/carousel.js +27 -10
  20. data/vendor/assets/javascripts/bootstrap/collapse.js +69 -28
  21. data/vendor/assets/javascripts/bootstrap/dropdown.js +20 -10
  22. data/vendor/assets/javascripts/bootstrap/modal.js +67 -23
  23. data/vendor/assets/javascripts/bootstrap/popover.js +13 -7
  24. data/vendor/assets/javascripts/bootstrap/scrollspy.js +12 -7
  25. data/vendor/assets/javascripts/bootstrap/tab.js +41 -16
  26. data/vendor/assets/javascripts/bootstrap/tooltip.js +60 -39
  27. data/vendor/assets/javascripts/bootstrap/transition.js +1 -1
  28. data/vendor/assets/stylesheets/bootstrap.css.erb +332 -203
  29. data/vendor/assets/stylesheets/bootstrap.css.map +1 -0
  30. data/vendor/twitter/bootstrap/less/badges.less +7 -1
  31. data/vendor/twitter/bootstrap/less/button-groups.less +16 -13
  32. data/vendor/twitter/bootstrap/less/buttons.less +7 -4
  33. data/vendor/twitter/bootstrap/less/carousel.less +24 -0
  34. data/vendor/twitter/bootstrap/less/code.less +1 -0
  35. data/vendor/twitter/bootstrap/less/component-animations.less +5 -2
  36. data/vendor/twitter/bootstrap/less/dropdowns.less +3 -5
  37. data/vendor/twitter/bootstrap/less/forms.less +46 -40
  38. data/vendor/twitter/bootstrap/less/glyphicons.less +2 -1
  39. data/vendor/twitter/bootstrap/less/jumbotron.less +6 -5
  40. data/vendor/twitter/bootstrap/less/list-group.less +1 -8
  41. data/vendor/twitter/bootstrap/less/media.less +27 -36
  42. data/vendor/twitter/bootstrap/less/mixins/buttons.less +2 -0
  43. data/vendor/twitter/bootstrap/less/mixins/forms.less +5 -1
  44. data/vendor/twitter/bootstrap/less/mixins/grid-framework.less +2 -2
  45. data/vendor/twitter/bootstrap/less/mixins/image.less +0 -1
  46. data/vendor/twitter/bootstrap/less/mixins/labels.less +1 -1
  47. data/vendor/twitter/bootstrap/less/mixins/vendor-prefixes.less +6 -3
  48. data/vendor/twitter/bootstrap/less/modals.less +3 -5
  49. data/vendor/twitter/bootstrap/less/navbar.less +30 -25
  50. data/vendor/twitter/bootstrap/less/navs.less +3 -1
  51. data/vendor/twitter/bootstrap/less/normalize.less +5 -3
  52. data/vendor/twitter/bootstrap/less/pager.less +1 -2
  53. data/vendor/twitter/bootstrap/less/pagination.less +1 -1
  54. data/vendor/twitter/bootstrap/less/panels.less +21 -3
  55. data/vendor/twitter/bootstrap/less/popovers.less +6 -4
  56. data/vendor/twitter/bootstrap/less/print.less +102 -96
  57. data/vendor/twitter/bootstrap/less/progress-bars.less +1 -19
  58. data/vendor/twitter/bootstrap/less/responsive-embed.less +2 -1
  59. data/vendor/twitter/bootstrap/less/scaffolding.less +1 -1
  60. data/vendor/twitter/bootstrap/less/tables.less +11 -10
  61. data/vendor/twitter/bootstrap/less/theme.less +23 -9
  62. data/vendor/twitter/bootstrap/less/thumbnails.less +1 -1
  63. data/vendor/twitter/bootstrap/less/tooltip.less +12 -4
  64. data/vendor/twitter/bootstrap/less/type.less +0 -11
  65. data/vendor/twitter/bootstrap/less/utilities.less +0 -1
  66. data/vendor/twitter/bootstrap/less/variables.less +31 -21
  67. data/vendor/twitter/bootstrap/sass/_bootstrap-compass.scss +7 -0
  68. data/vendor/twitter/bootstrap/sass/_bootstrap-mincer.scss +17 -0
  69. data/vendor/twitter/bootstrap/sass/_bootstrap-sprockets.scss +7 -0
  70. data/vendor/twitter/bootstrap/sass/_bootstrap.scss +50 -0
  71. data/vendor/twitter/bootstrap/sass/{_alerts.scss → bootstrap/_alerts.scss} +0 -0
  72. data/vendor/twitter/bootstrap/sass/{_badges.scss → bootstrap/_badges.scss} +7 -1
  73. data/vendor/twitter/bootstrap/sass/{_breadcrumbs.scss → bootstrap/_breadcrumbs.scss} +0 -0
  74. data/vendor/twitter/bootstrap/sass/{_button-groups.scss → bootstrap/_button-groups.scss} +18 -15
  75. data/vendor/twitter/bootstrap/sass/{_buttons.scss → bootstrap/_buttons.scss} +8 -5
  76. data/vendor/twitter/bootstrap/sass/{_carousel.scss → bootstrap/_carousel.scss} +25 -1
  77. data/vendor/twitter/bootstrap/sass/{_close.scss → bootstrap/_close.scss} +0 -0
  78. data/vendor/twitter/bootstrap/sass/{_code.scss → bootstrap/_code.scss} +1 -0
  79. data/vendor/twitter/bootstrap/sass/{_component-animations.scss → bootstrap/_component-animations.scss} +5 -2
  80. data/vendor/twitter/bootstrap/sass/{_dropdowns.scss → bootstrap/_dropdowns.scss} +4 -6
  81. data/vendor/twitter/bootstrap/sass/{_forms.scss → bootstrap/_forms.scss} +53 -43
  82. data/vendor/twitter/bootstrap/sass/{_glyphicons.scss → bootstrap/_glyphicons.scss} +7 -10
  83. data/vendor/twitter/bootstrap/sass/{_grid.scss → bootstrap/_grid.scss} +4 -4
  84. data/vendor/twitter/bootstrap/sass/{_input-groups.scss → bootstrap/_input-groups.scss} +0 -0
  85. data/vendor/twitter/bootstrap/sass/{_jumbotron.scss → bootstrap/_jumbotron.scss} +6 -5
  86. data/vendor/twitter/bootstrap/sass/{_labels.scss → bootstrap/_labels.scss} +0 -0
  87. data/vendor/twitter/bootstrap/sass/{_list-group.scss → bootstrap/_list-group.scss} +1 -8
  88. data/vendor/twitter/bootstrap/sass/bootstrap/_media.scss +47 -0
  89. data/vendor/twitter/bootstrap/sass/{_mixins.scss → bootstrap/_mixins.scss} +0 -0
  90. data/vendor/twitter/bootstrap/sass/{_modals.scss → bootstrap/_modals.scss} +4 -6
  91. data/vendor/twitter/bootstrap/sass/{_navbar.scss → bootstrap/_navbar.scss} +36 -33
  92. data/vendor/twitter/bootstrap/sass/{_navs.scss → bootstrap/_navs.scss} +5 -3
  93. data/vendor/twitter/bootstrap/sass/{_normalize.scss → bootstrap/_normalize.scss} +5 -3
  94. data/vendor/twitter/bootstrap/sass/{_pager.scss → bootstrap/_pager.scss} +2 -3
  95. data/vendor/twitter/bootstrap/sass/{_pagination.scss → bootstrap/_pagination.scss} +1 -1
  96. data/vendor/twitter/bootstrap/sass/{_panels.scss → bootstrap/_panels.scss} +22 -4
  97. data/vendor/twitter/bootstrap/sass/{_popovers.scss → bootstrap/_popovers.scss} +6 -4
  98. data/vendor/twitter/bootstrap/sass/bootstrap/_print.scss +107 -0
  99. data/vendor/twitter/bootstrap/sass/{_progress-bars.scss → bootstrap/_progress-bars.scss} +2 -20
  100. data/vendor/twitter/bootstrap/sass/{_responsive-embed.scss → bootstrap/_responsive-embed.scss} +2 -1
  101. data/vendor/twitter/bootstrap/sass/{_responsive-utilities.scss → bootstrap/_responsive-utilities.scss} +0 -0
  102. data/vendor/twitter/bootstrap/sass/{_scaffolding.scss → bootstrap/_scaffolding.scss} +3 -3
  103. data/vendor/twitter/bootstrap/sass/{_tables.scss → bootstrap/_tables.scss} +11 -10
  104. data/vendor/twitter/bootstrap/sass/{_theme.scss → bootstrap/_theme.scss} +27 -13
  105. data/vendor/twitter/bootstrap/sass/{_thumbnails.scss → bootstrap/_thumbnails.scss} +2 -2
  106. data/vendor/twitter/bootstrap/sass/{_tooltip.scss → bootstrap/_tooltip.scss} +12 -4
  107. data/vendor/twitter/bootstrap/sass/{_type.scss → bootstrap/_type.scss} +10 -16
  108. data/vendor/twitter/bootstrap/sass/{_utilities.scss → bootstrap/_utilities.scss} +3 -4
  109. data/vendor/twitter/bootstrap/sass/{_variables.scss → bootstrap/_variables.scss} +38 -24
  110. data/vendor/twitter/bootstrap/sass/{_wells.scss → bootstrap/_wells.scss} +0 -0
  111. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_alerts.scss +0 -0
  112. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_background-variant.scss +0 -0
  113. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_border-radius.scss +0 -0
  114. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_buttons.scss +2 -0
  115. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_center-block.scss +0 -0
  116. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_clearfix.scss +0 -0
  117. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_forms.scss +5 -1
  118. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_gradients.scss +0 -0
  119. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_grid-framework.scss +0 -0
  120. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_grid.scss +2 -2
  121. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_hide-text.scss +1 -1
  122. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_image.scss +0 -1
  123. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_labels.scss +1 -1
  124. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_list-group.scss +0 -0
  125. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_nav-divider.scss +0 -0
  126. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_nav-vertical-align.scss +0 -0
  127. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_opacity.scss +0 -0
  128. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_pagination.scss +0 -0
  129. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_panels.scss +0 -0
  130. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_progress-bar.scss +1 -1
  131. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_reset-filter.scss +0 -0
  132. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_resize.scss +0 -0
  133. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_responsive-visibility.scss +0 -0
  134. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_size.scss +0 -0
  135. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_tab-focus.scss +0 -0
  136. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_table-row.scss +0 -0
  137. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_text-emphasis.scss +0 -0
  138. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_text-overflow.scss +0 -0
  139. data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_vendor-prefixes.scss +6 -3
  140. metadata +76 -72
  141. data/vendor/twitter/bootstrap/sass/_media.scss +0 -56
  142. data/vendor/twitter/bootstrap/sass/_print.scss +0 -101
  143. data/vendor/twitter/bootstrap/sass/bootstrap.scss +0 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2db931a4ec9d8f5111e57a87f449443db3b5c206
4
- data.tar.gz: 5926eeb864865015636be43974b91790b41a5558
3
+ metadata.gz: 6cff101b0f3c336c4dc668c9fc174938a3089771
4
+ data.tar.gz: 416e1baf6efa343ad79b8c18d783008d68838a4e
5
5
  SHA512:
6
- metadata.gz: 724fd58a4885a66d7b931b4ac45995fe76a87dd23fcd4061068175b3a3f6062b597c63747d23512ac1feccbc983495b38bb5aff97206c81b546c5db521ef02de
7
- data.tar.gz: 1313efc958fafc3c73727abd4bd8838e8a4a0641d1a11ea4f1a2d2d015795c3dd998442bc5b10cd95630bcbbed8efd0f1c7b2e3fea96c35b2cb38063ced76dc8
6
+ metadata.gz: a417da5dc22e34a4cb0649132b1fe8089d4fa796d3cd4498dca087137b98694ddf0cf35b0f30bb0e7e2524537794f736bc01e2762f640c285413b863504f9f0d
7
+ data.tar.gz: 97eb67dc8e8b583224e4d98e68fda3aaba4b4139732a4a83c44bb503ac53a70eb5975af3771aad12a7d13fbac49be17e3204f2a66c02d095ae0db52a03602f3e
data/README.md CHANGED
@@ -6,13 +6,13 @@ Bootstrap-generators provides [Twitter Bootstrap](http://getbootstrap.com/) gene
6
6
 
7
7
  ## Current Twitter Bootstrap version
8
8
 
9
- The current supported version of Twitter Bootstrap is 3.2.0.
9
+ The current supported version of Twitter Bootstrap is 3.3.1.
10
10
 
11
11
  ## Installing Gem
12
12
 
13
13
  In your Gemfile, add this line:
14
14
 
15
- gem 'bootstrap-generators', '~> 3.2.0'
15
+ gem 'bootstrap-generators', '~> 3.3.1'
16
16
 
17
17
  Or you can install from latest build:
18
18
 
@@ -26,7 +26,9 @@ Run bundle install:
26
26
 
27
27
  Get started:
28
28
 
29
- rails generate bootstrap:install -f
29
+ rails generate bootstrap:install
30
+
31
+ To overwrite files that already exist, pass the `--force` (`-f`) option.
30
32
 
31
33
  Once you've done that, any time you generate a controller or scaffold, you'll get [Bootstrap](http://twitter.github.com/bootstrap/) templates.
32
34
 
data/Rakefile CHANGED
@@ -13,8 +13,8 @@ task :default => :test
13
13
  namespace :bootstrap do
14
14
  desc "Update to a new version of Twitter Bootstrap"
15
15
  task :update do
16
- bootstrap_version = "3.2.0"
17
- striped_bootstrap_generators_version = "3.2.0"
16
+ bootstrap_version = "3.3.1"
17
+ striped_bootstrap_generators_version = "3.3.1"
18
18
 
19
19
  twitter_latest_dist_zip_url = "https://github.com/twbs/bootstrap/archive/v#{bootstrap_version}.zip"
20
20
  twitter_sass_lastest_dist_zip_url = "https://github.com/twbs/bootstrap-sass/archive/v#{bootstrap_version}.zip"
@@ -57,17 +57,6 @@ namespace :bootstrap do
57
57
  require_files << File.basename(js_file, '.*')
58
58
  end
59
59
 
60
- # Make sure that tooltip.js is before popover.js (Popover requires tooltip.js)
61
- tooltip_position = require_files.index('tooltip')
62
- popover_position = require_files.index('popover')
63
- require_files.insert(tooltip_position, require_files.delete_at(popover_position)) if tooltip_position > popover_position
64
-
65
- File.open(bootstrap_main_javascript, 'w') do |file|
66
- require_files.each do |require_file|
67
- file.write("//= require bootstrap/#{require_file}\n")
68
- end
69
- end
70
-
71
60
  # Reset Twitter Bootstrap Fonts
72
61
  bootstrap_fonts_dir = 'vendor/assets/fonts/bootstrap'
73
62
 
@@ -76,6 +65,7 @@ namespace :bootstrap do
76
65
 
77
66
  # Reset Twitter Bootstrap CSS file
78
67
  FileUtils.cp "#{twitter_bootstrap_dir}/dist/css/bootstrap.css", "vendor/assets/stylesheets/bootstrap.css.erb"
68
+ FileUtils.cp "#{twitter_bootstrap_dir}/dist/css/bootstrap.css.map", "vendor/assets/stylesheets/bootstrap.css.map"
79
69
 
80
70
  # Reset Twitter Bootstrap LESS files
81
71
  bootstrap_less_dir = 'vendor/twitter/bootstrap/less'
@@ -88,12 +78,13 @@ namespace :bootstrap do
88
78
  bootstrap_sass_dir = 'vendor/twitter/bootstrap/sass'
89
79
 
90
80
  FileUtils.rm Dir.glob("#{bootstrap_sass_dir}/**/*.scss")
91
- FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/*.scss"), bootstrap_sass_dir
92
- FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/mixins/*.scss"), "#{bootstrap_sass_dir}/mixins"
81
+ FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/*.scss"), bootstrap_sass_dir
82
+ FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/*.scss"), "#{bootstrap_sass_dir}/bootstrap"
83
+ FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/mixins/*.scss"), "#{bootstrap_sass_dir}/bootstrap/mixins"
93
84
 
94
85
  # Copy bootstrap variables
95
86
  FileUtils.cp "#{bootstrap_less_dir}/variables.less", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less"
96
- FileUtils.cp "#{bootstrap_sass_dir}/_variables.scss", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss"
87
+ FileUtils.cp "#{bootstrap_sass_dir}/bootstrap/_variables.scss", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss"
97
88
 
98
89
  # Asset helpers
99
90
  Dir.glob('**/*.css.erb').each do |filepath|
@@ -113,10 +104,10 @@ namespace :bootstrap do
113
104
  file_content = File.read(filepath)
114
105
 
115
106
  # Remove fonts path
116
- file_content.gsub!("../fonts/", "bootstrap/")
107
+ file_content.gsub!("../fonts/", "")
117
108
 
118
109
  # Asset helpers for fonts
119
- file_content.gsub!(%r{(["'\w\-@{}$#\/]+\.(eot|woff|ttf|svg)(\??#[\w\-@{}$#]+)?["'])}, 'font-path(\1)')
110
+ file_content.gsub!(%r{(["'\w\-@{}$#\/]+\.(eot|woff|ttf|svg)(\??#[\w\-@{}$#]+)?["'])}, '\1')
120
111
 
121
112
  # Asset helpers for images
122
113
  file_content.gsub!(%r{image: url\(}, 'image: image-url(')
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- VERSION = '3.2.0'
3
+ VERSION = '3.3.1'
4
4
  end
5
5
  end
@@ -7,13 +7,14 @@
7
7
  //
8
8
  //## Gray and brand colors for use across Bootstrap.
9
9
 
10
- @gray-darker: lighten(#000, 13.5%); // #222
11
- @gray-dark: lighten(#000, 20%); // #333
12
- @gray: lighten(#000, 33.5%); // #555
13
- @gray-light: lighten(#000, 46.7%); // #777
14
- @gray-lighter: lighten(#000, 93.5%); // #eee
15
-
16
- @brand-primary: #428bca;
10
+ @gray-base: #000;
11
+ @gray-darker: lighten(@gray-base, 13.5%); // #222
12
+ @gray-dark: lighten(@gray-base, 20%); // #333
13
+ @gray: lighten(@gray-base, 33.5%); // #555
14
+ @gray-light: lighten(@gray-base, 46.7%); // #777
15
+ @gray-lighter: lighten(@gray-base, 93.5%); // #eee
16
+
17
+ @brand-primary: darken(#428bca, 6.5%);
17
18
  @brand-success: #5cb85c;
18
19
  @brand-info: #5bc0de;
19
20
  @brand-warning: #f0ad4e;
@@ -33,6 +34,8 @@
33
34
  @link-color: @brand-primary;
34
35
  //** Link hover color set via `darken()` function.
35
36
  @link-hover-color: darken(@link-color, 15%);
37
+ //** Link hover decoration.
38
+ @link-hover-decoration: underline;
36
39
 
37
40
 
38
41
  //== Typography
@@ -181,13 +184,20 @@
181
184
  @input-color: @gray;
182
185
  //** `<input>` border color
183
186
  @input-border: #ccc;
184
- //** `<input>` border radius
187
+
188
+ // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
+ //** Default `.form-control` border radius
185
190
  @input-border-radius: @border-radius-base;
191
+ //** Large `.form-control` border radius
192
+ @input-border-radius-large: @border-radius-large;
193
+ //** Small `.form-control` border radius
194
+ @input-border-radius-small: @border-radius-small;
195
+
186
196
  //** Border color for inputs on focus
187
197
  @input-border-focus: #66afe9;
188
198
 
189
199
  //** Placeholder text color
190
- @input-color-placeholder: @gray-light;
200
+ @input-color-placeholder: #999;
191
201
 
192
202
  //** Default `.form-control` height
193
203
  @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
@@ -204,6 +214,9 @@
204
214
  //** Border color for textual input addons
205
215
  @input-group-addon-border-color: @input-border;
206
216
 
217
+ //** Disabled cursor for form controls and buttons.
218
+ @cursor-disabled: not-allowed;
219
+
207
220
 
208
221
  //== Dropdowns
209
222
  //
@@ -252,8 +265,7 @@
252
265
  @zindex-popover: 1060;
253
266
  @zindex-tooltip: 1070;
254
267
  @zindex-navbar-fixed: 1030;
255
- @zindex-modal-background: 1040;
256
- @zindex-modal: 1050;
268
+ @zindex-modal: 1040;
257
269
 
258
270
 
259
271
  //== Media queries breakpoints
@@ -315,17 +327,17 @@
315
327
  //## Define the maximum width of `.container` for different screen sizes.
316
328
 
317
329
  // Small screen / tablet
318
- @container-tablet: ((720px + @grid-gutter-width));
330
+ @container-tablet: (720px + @grid-gutter-width);
319
331
  //** For `@screen-sm-min` and up.
320
332
  @container-sm: @container-tablet;
321
333
 
322
334
  // Medium screen / desktop
323
- @container-desktop: ((940px + @grid-gutter-width));
335
+ @container-desktop: (940px + @grid-gutter-width);
324
336
  //** For `@screen-md-min` and up.
325
337
  @container-md: @container-desktop;
326
338
 
327
339
  // Large screen / wide desktop
328
- @container-large-desktop: ((1140px + @grid-gutter-width));
340
+ @container-large-desktop: (1140px + @grid-gutter-width);
329
341
  //** For `@screen-lg-min` and up.
330
342
  @container-lg: @container-large-desktop;
331
343
 
@@ -368,12 +380,12 @@
368
380
 
369
381
  // Inverted navbar
370
382
  // Reset inverted navbar basics
371
- @navbar-inverse-color: @gray-light;
383
+ @navbar-inverse-color: lighten(@gray-light, 15%);
372
384
  @navbar-inverse-bg: #222;
373
385
  @navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
374
386
 
375
387
  // Inverted navbar links
376
- @navbar-inverse-link-color: @gray-light;
388
+ @navbar-inverse-link-color: lighten(@gray-light, 15%);
377
389
  @navbar-inverse-link-hover-color: #fff;
378
390
  @navbar-inverse-link-hover-bg: transparent;
379
391
  @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
@@ -403,8 +415,6 @@
403
415
  @nav-disabled-link-color: @gray-light;
404
416
  @nav-disabled-link-hover-color: @gray-light;
405
417
 
406
- @nav-open-link-hover-color: #fff;
407
-
408
418
  //== Tabs
409
419
  @nav-tabs-border-color: #ddd;
410
420
 
@@ -529,7 +539,7 @@
529
539
  //** Popover arrow width
530
540
  @popover-arrow-width: 10px;
531
541
  //** Popover arrow color
532
- @popover-arrow-color: #fff;
542
+ @popover-arrow-color: @popover-bg;
533
543
 
534
544
  //** Popover outer arrow width
535
545
  @popover-arrow-outer-width: (@popover-arrow-width + 1);
@@ -628,6 +638,8 @@
628
638
  @progress-bg: #f5f5f5;
629
639
  //** Progress bar text color
630
640
  @progress-bar-color: #fff;
641
+ //** Variable for setting rounded corners on progress bar.
642
+ @progress-border-radius: @border-radius-base;
631
643
 
632
644
  //** Default progress bar color
633
645
  @progress-bar-bg: @brand-primary;
@@ -842,5 +854,3 @@
842
854
  @dl-horizontal-offset: @component-offset-horizontal;
843
855
  //** Horizontal line color.
844
856
  @hr-border: @gray-lighter;
845
-
846
-
@@ -1,7 +1,8 @@
1
- // a flag to toggle asset pipeline / compass integration
2
- // defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side)
3
- // in Sass 3.3 this can be improved with: function-exists(twbs-font-path)
1
+ // When true, asset path helpers are used, otherwise the regular CSS `url()` is used.
2
+ // When there no function is defined, `fn('')` is parsed as string that equals the right hand side
3
+ // NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
4
4
  $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")')) !default;
5
+
5
6
  //
6
7
  // Variables
7
8
  // --------------------------------------------------
@@ -11,13 +12,14 @@ $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")
11
12
  //
12
13
  //## Gray and brand colors for use across Bootstrap.
13
14
 
14
- $gray-darker: lighten(#000, 13.5%) !default; // #222
15
- $gray-dark: lighten(#000, 20%) !default; // #333
16
- $gray: lighten(#000, 33.5%) !default; // #555
17
- $gray-light: lighten(#000, 46.7%) !default; // #777
18
- $gray-lighter: lighten(#000, 93.5%) !default; // #eee
15
+ $gray-base: #000 !default;
16
+ $gray-darker: lighten($gray-base, 13.5%) !default; // #222
17
+ $gray-dark: lighten($gray-base, 20%) !default; // #333
18
+ $gray: lighten($gray-base, 33.5%) !default; // #555
19
+ $gray-light: lighten($gray-base, 46.7%) !default; // #777
20
+ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
19
21
 
20
- $brand-primary: #428bca !default;
22
+ $brand-primary: darken(#428bca, 6.5%) !default;
21
23
  $brand-success: #5cb85c !default;
22
24
  $brand-info: #5bc0de !default;
23
25
  $brand-warning: #f0ad4e !default;
@@ -37,6 +39,8 @@ $text-color: $gray-dark !default;
37
39
  $link-color: $brand-primary !default;
38
40
  //** Link hover color set via `darken()` function.
39
41
  $link-hover-color: darken($link-color, 15%) !default;
42
+ //** Link hover decoration.
43
+ $link-hover-decoration: underline !default;
40
44
 
41
45
 
42
46
  //== Typography
@@ -77,7 +81,10 @@ $headings-color: inherit !default;
77
81
  //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
78
82
 
79
83
  //** Load fonts from this directory.
80
- $icon-font-path: "bootstrap/" !default;
84
+
85
+ // [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
86
+ $icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "bootstrap/") !default;
87
+
81
88
  //** File name for all font files.
82
89
  $icon-font-name: "glyphicons-halflings-regular" !default;
83
90
  //** Element ID within SVG icon file.
@@ -185,13 +192,20 @@ $input-bg-disabled: $gray-lighter !default;
185
192
  $input-color: $gray !default;
186
193
  //** `<input>` border color
187
194
  $input-border: #ccc !default;
188
- //** `<input>` border radius
195
+
196
+ // TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
197
+ //** Default `.form-control` border radius
189
198
  $input-border-radius: $border-radius-base !default;
199
+ //** Large `.form-control` border radius
200
+ $input-border-radius-large: $border-radius-large !default;
201
+ //** Small `.form-control` border radius
202
+ $input-border-radius-small: $border-radius-small !default;
203
+
190
204
  //** Border color for inputs on focus
191
205
  $input-border-focus: #66afe9 !default;
192
206
 
193
207
  //** Placeholder text color
194
- $input-color-placeholder: $gray-light !default;
208
+ $input-color-placeholder: #999 !default;
195
209
 
196
210
  //** Default `.form-control` height
197
211
  $input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
@@ -208,6 +222,9 @@ $input-group-addon-bg: $gray-lighter !default;
208
222
  //** Border color for textual input addons
209
223
  $input-group-addon-border-color: $input-border !default;
210
224
 
225
+ //** Disabled cursor for form controls and buttons.
226
+ $cursor-disabled: not-allowed !default;
227
+
211
228
 
212
229
  //== Dropdowns
213
230
  //
@@ -256,8 +273,7 @@ $zindex-dropdown: 1000 !default;
256
273
  $zindex-popover: 1060 !default;
257
274
  $zindex-tooltip: 1070 !default;
258
275
  $zindex-navbar-fixed: 1030 !default;
259
- $zindex-modal-background: 1040 !default;
260
- $zindex-modal: 1050 !default;
276
+ $zindex-modal: 1040 !default;
261
277
 
262
278
 
263
279
  //== Media queries breakpoints
@@ -319,17 +335,17 @@ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
319
335
  //## Define the maximum width of `.container` for different screen sizes.
320
336
 
321
337
  // Small screen / tablet
322
- $container-tablet: ((720px + $grid-gutter-width)) !default;
338
+ $container-tablet: (720px + $grid-gutter-width) !default;
323
339
  //** For `$screen-sm-min` and up.
324
340
  $container-sm: $container-tablet !default;
325
341
 
326
342
  // Medium screen / desktop
327
- $container-desktop: ((940px + $grid-gutter-width)) !default;
343
+ $container-desktop: (940px + $grid-gutter-width) !default;
328
344
  //** For `$screen-md-min` and up.
329
345
  $container-md: $container-desktop !default;
330
346
 
331
347
  // Large screen / wide desktop
332
- $container-large-desktop: ((1140px + $grid-gutter-width)) !default;
348
+ $container-large-desktop: (1140px + $grid-gutter-width) !default;
333
349
  //** For `$screen-lg-min` and up.
334
350
  $container-lg: $container-large-desktop !default;
335
351
 
@@ -372,12 +388,12 @@ $navbar-default-toggle-border-color: #ddd !default;
372
388
 
373
389
  // Inverted navbar
374
390
  // Reset inverted navbar basics
375
- $navbar-inverse-color: $gray-light !default;
391
+ $navbar-inverse-color: lighten($gray-light, 15%) !default;
376
392
  $navbar-inverse-bg: #222 !default;
377
393
  $navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
378
394
 
379
395
  // Inverted navbar links
380
- $navbar-inverse-link-color: $gray-light !default;
396
+ $navbar-inverse-link-color: lighten($gray-light, 15%) !default;
381
397
  $navbar-inverse-link-hover-color: #fff !default;
382
398
  $navbar-inverse-link-hover-bg: transparent !default;
383
399
  $navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
@@ -407,8 +423,6 @@ $nav-link-hover-bg: $gray-lighter !default;
407
423
  $nav-disabled-link-color: $gray-light !default;
408
424
  $nav-disabled-link-hover-color: $gray-light !default;
409
425
 
410
- $nav-open-link-hover-color: #fff !default;
411
-
412
426
  //== Tabs
413
427
  $nav-tabs-border-color: #ddd !default;
414
428
 
@@ -533,7 +547,7 @@ $popover-title-bg: darken($popover-bg, 3%) !default;
533
547
  //** Popover arrow width
534
548
  $popover-arrow-width: 10px !default;
535
549
  //** Popover arrow color
536
- $popover-arrow-color: #fff !default;
550
+ $popover-arrow-color: $popover-bg !default;
537
551
 
538
552
  //** Popover outer arrow width
539
553
  $popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
@@ -632,6 +646,8 @@ $alert-danger-border: $state-danger-border !default;
632
646
  $progress-bg: #f5f5f5 !default;
633
647
  //** Progress bar text color
634
648
  $progress-bar-color: #fff !default;
649
+ //** Variable for setting rounded corners on progress bar.
650
+ $progress-border-radius: $border-radius-base !default;
635
651
 
636
652
  //** Default progress bar color
637
653
  $progress-bar-bg: $brand-primary !default;
@@ -846,5 +862,3 @@ $page-header-border-color: $gray-lighter !default;
846
862
  $dl-horizontal-offset: $component-offset-horizontal !default;
847
863
  //** Horizontal line color.
848
864
  $hr-border: $gray-lighter !default;
849
-
850
-
@@ -1,4 +1,5 @@
1
- @import "bootstrap-variables";
1
+ @import "bootstrap-variables.scss";
2
+ @import "bootstrap-sprockets.scss";
2
3
  @import "bootstrap.scss";
3
4
 
4
5
  body {
@@ -1,7 +1,7 @@
1
- <%%= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal" }) do |f| %>
1
+ <%%= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" }) do |f| %>
2
2
  <%% if @<%= singular_table_name %>.errors.any? %>
3
- <div class="alert alert-danger alert-dismissable">
4
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
3
+ <div class="alert alert-danger alert-dismissable" role="alert">
4
+ <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
5
5
  <h4><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h4>
6
6
 
7
7
  <ul>
@@ -1,7 +1,9 @@
1
- = form_for @<%= singular_table_name %>, :html => { :class => "form-horizontal" } do |f|
1
+ = form_for @<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" } do |f|
2
2
  -if @<%= singular_table_name %>.errors.any?
3
- .alert.alert-danger.alert-dismissable
4
- %button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} &times;
3
+ .alert.alert-danger.alert-dismissable{:role => "alert"}
4
+ %button.close{:type => "button", :data => {:dismiss => "alert"} }
5
+ span{:aria => {:hidden => "true"} } &times;
6
+ span.sr-only Close
5
7
  %h4= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
6
8
 
7
9
  %ul
@@ -1,8 +1,11 @@
1
- = form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal" }) do |f|
1
+ = form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" }) do |f|
2
2
  - if @<%= singular_table_name %>.errors.any?
3
- .alert.alert-danger.alert-dismissable
4
- button.close type="button" data-dismiss="alert" aria-hidden="true"
5
- | &times;
3
+ .alert.alert-danger.alert-dismissable role="alert"
4
+ button.close type="button" data-dismiss="alert"
5
+ span aria-hidden="true"
6
+ | &times;
7
+ span.sr-only
8
+ | Close
6
9
  h4= "#{pluralize(@<%= singular_table_name %>.errors.count,"error")} prohibited this <%= singular_table_name %> from being saved:"
7
10
  ul
8
11
  - @<%= singular_table_name %>.errors.full_messages.each do |msg|