bh 1.3.5 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +8 -138
  4. data/app/assets/stylesheets/bh.css +29 -0
  5. data/app/javascript/controllers/bh/theme_controller.js +17 -0
  6. data/app/views/bh/_grid.html.erb +6 -0
  7. data/app/views/bh/_table.html.erb +46 -0
  8. data/bh.gemspec +5 -31
  9. data/gemfiles/Gemfile.rails-3.x +0 -1
  10. data/lib/bh/bootstrap_helpers.rb +131 -0
  11. data/lib/bh/engine.rb +13 -0
  12. data/lib/bh/version.rb +3 -1
  13. data/lib/bh.rb +6 -14
  14. data/spec/spec_helper.rb +1 -1
  15. metadata +14 -298
  16. data/examples/middleman/.gitignore +0 -18
  17. data/examples/middleman/Gemfile +0 -6
  18. data/examples/middleman/config.rb +0 -1
  19. data/examples/middleman/source/index.html.erb +0 -158
  20. data/examples/padrino/Gemfile +0 -9
  21. data/examples/padrino/app/app.rb +0 -16
  22. data/examples/padrino/app/views/index.html.erb +0 -155
  23. data/examples/padrino/config/apps.rb +0 -5
  24. data/examples/padrino/config/boot.rb +0 -8
  25. data/examples/padrino/config.ru +0 -5
  26. data/examples/rails/.gitignore +0 -12
  27. data/examples/rails/Gemfile +0 -5
  28. data/examples/rails/app/controllers/application_controller.rb +0 -6
  29. data/examples/rails/app/controllers/users_controller.rb +0 -2
  30. data/examples/rails/app/models/user.rb +0 -15
  31. data/examples/rails/app/views/application/index.html.erb +0 -160
  32. data/examples/rails/bin/rails +0 -4
  33. data/examples/rails/config/application.rb +0 -12
  34. data/examples/rails/config/boot.rb +0 -3
  35. data/examples/rails/config/environment.rb +0 -5
  36. data/examples/rails/config/environments/development.rb +0 -7
  37. data/examples/rails/config/routes.rb +0 -4
  38. data/examples/rails/config/secrets.yml +0 -22
  39. data/examples/rails/config.ru +0 -4
  40. data/examples/rails/log/.keep +0 -0
  41. data/lib/bh/classes/alert_box.rb +0 -35
  42. data/lib/bh/classes/base.rb +0 -125
  43. data/lib/bh/classes/button.rb +0 -58
  44. data/lib/bh/classes/button_to.rb +0 -33
  45. data/lib/bh/classes/cdn.rb +0 -35
  46. data/lib/bh/classes/dropdown.rb +0 -56
  47. data/lib/bh/classes/icon.rb +0 -34
  48. data/lib/bh/classes/link_to.rb +0 -26
  49. data/lib/bh/classes/modal.rb +0 -68
  50. data/lib/bh/classes/nav.rb +0 -37
  51. data/lib/bh/classes/navbar.rb +0 -78
  52. data/lib/bh/classes/panel.rb +0 -72
  53. data/lib/bh/classes/panel_row.rb +0 -13
  54. data/lib/bh/classes/progress_bar.rb +0 -89
  55. data/lib/bh/classes/stack.rb +0 -19
  56. data/lib/bh/classes/vertical.rb +0 -27
  57. data/lib/bh/core_ext/middleman.rb +0 -24
  58. data/lib/bh/core_ext/padrino.rb +0 -25
  59. data/lib/bh/core_ext/rails/base_helper.rb +0 -21
  60. data/lib/bh/core_ext/rails/form/base_helper.rb +0 -150
  61. data/lib/bh/core_ext/rails/form/check_box_helper.rb +0 -35
  62. data/lib/bh/core_ext/rails/form/field_helper.rb +0 -15
  63. data/lib/bh/core_ext/rails/form/fields_for_helper.rb +0 -23
  64. data/lib/bh/core_ext/rails/form/fieldset_helper.rb +0 -16
  65. data/lib/bh/core_ext/rails/form/file_field_helper.rb +0 -15
  66. data/lib/bh/core_ext/rails/form/legend_helper.rb +0 -17
  67. data/lib/bh/core_ext/rails/form/radio_button_helper.rb +0 -19
  68. data/lib/bh/core_ext/rails/form/select_helper.rb +0 -16
  69. data/lib/bh/core_ext/rails/form/static_control_helper.rb +0 -43
  70. data/lib/bh/core_ext/rails/form/submit_helper.rb +0 -23
  71. data/lib/bh/core_ext/rails/form_builder.rb +0 -46
  72. data/lib/bh/core_ext/rails/form_for_helper.rb +0 -41
  73. data/lib/bh/core_ext/railtie.rb +0 -27
  74. data/lib/bh/helpers/alert_box_helper.rb +0 -40
  75. data/lib/bh/helpers/button_helper.rb +0 -40
  76. data/lib/bh/helpers/button_to_helper.rb +0 -65
  77. data/lib/bh/helpers/cdn_helper.rb +0 -46
  78. data/lib/bh/helpers/dropdown_helper.rb +0 -49
  79. data/lib/bh/helpers/glyphicon_helper.rb +0 -18
  80. data/lib/bh/helpers/horizontal_helper.rb +0 -35
  81. data/lib/bh/helpers/icon_helper.rb +0 -27
  82. data/lib/bh/helpers/link_to_helper.rb +0 -59
  83. data/lib/bh/helpers/modal_helper.rb +0 -55
  84. data/lib/bh/helpers/nav_helper.rb +0 -36
  85. data/lib/bh/helpers/navbar_helper.rb +0 -48
  86. data/lib/bh/helpers/panel_helper.rb +0 -53
  87. data/lib/bh/helpers/panel_row_helper.rb +0 -28
  88. data/lib/bh/helpers/progress_bar_helper.rb +0 -55
  89. data/lib/bh/helpers/vertical_helper.rb +0 -33
  90. data/lib/bh/views/bh/_alert_dismiss_button.html +0 -4
  91. data/lib/bh/views/bh/_dropdown.html.erb +0 -9
  92. data/lib/bh/views/bh/_dropdown_split.html.erb +0 -10
  93. data/lib/bh/views/bh/_modal.html.erb +0 -14
  94. data/lib/bh/views/bh/_navbar.html.erb +0 -5
@@ -1,14 +0,0 @@
1
- <button class="<%= button[:class] %>" data-toggle="modal" data-target="#<%= div[:id] %>"><%= button[:caption] %></button>
2
- <div class="modal fade" id="<%= div[:id] %>" tabindex="-1" role="dialog" aria-labelledby="label-<%= div[:id] %>" aria-hidden="true">
3
- <div class="<%= div[:class] %>">
4
- <div class="modal-content">
5
- <div class="modal-header">
6
- <button type="button" class="close" data-dismiss="modal">
7
- <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
8
- </button>
9
- <h4 class="modal-title" id="label-<%= div[:id] %>"><%= div[:title] %></h4>
10
- </div>
11
- <%= content %>
12
- </div>
13
- </div>
14
- </div>
@@ -1,5 +0,0 @@
1
- <nav class="<%= navigation[:class] %>" role="navigation">
2
- <div class="<%= div[:class] %>">
3
- <%= content %>
4
- </div>
5
- </nav>