rails-bootstrap-engine 0.0.2

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 (217) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +35 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/font/FontAwesome.ttf +0 -0
  6. data/app/assets/font/fontawesome-webfont.eot +0 -0
  7. data/app/assets/font/fontawesome-webfont.svg +525 -0
  8. data/app/assets/font/fontawesome-webfont.ttf +0 -0
  9. data/app/assets/font/fontawesome-webfont.woff +0 -0
  10. data/app/assets/font/glyphicons-regular-0.eot +0 -0
  11. data/app/assets/font/glyphicons-regular.eot +0 -0
  12. data/app/assets/font/glyphicons-regular.svg +435 -0
  13. data/app/assets/font/glyphicons-regular.ttf +0 -0
  14. data/app/assets/font/glyphicons-regular.woff +0 -0
  15. data/app/assets/font/glyphiconshalflings-regular-0.eot +0 -0
  16. data/app/assets/font/glyphiconshalflings-regular.eot +0 -0
  17. data/app/assets/font/glyphiconshalflings-regular.svg +175 -0
  18. data/app/assets/font/glyphiconshalflings-regular.ttf +0 -0
  19. data/app/assets/font/glyphiconshalflings-regular.woff +0 -0
  20. data/app/assets/images/apple-touch-icon-114x114-precomposed.png +0 -0
  21. data/app/assets/images/apple-touch-icon-144x144-precomposed.png +0 -0
  22. data/app/assets/images/apple-touch-icon-57x57-precomposed.png +0 -0
  23. data/app/assets/images/apple-touch-icon-72x72-precomposed.png +0 -0
  24. data/app/assets/images/apple-touch-icon-precomposed.png +0 -0
  25. data/app/assets/images/devise.png +0 -0
  26. data/app/assets/javascripts/behaviors.js +23 -0
  27. data/app/assets/javascripts/bootstrap.js +2159 -0
  28. data/app/assets/javascripts/plugins/holder.js +342 -0
  29. data/app/assets/javascripts/plugins/jquery.autosize.js +181 -0
  30. data/app/assets/javascripts/plugins/jquery.toggle.buttons.js +289 -0
  31. data/app/assets/javascripts/rails-bootstrap-engine.js +17 -0
  32. data/app/assets/stylesheets/bootstrap-plugins/bootstrap-jumbotrons.css +95 -0
  33. data/app/assets/stylesheets/bootstrap-plugins/bootstrap-toggle-buttons.css +155 -0
  34. data/app/assets/stylesheets/bootstrap-responsive.css +1092 -0
  35. data/app/assets/stylesheets/bootstrap.css +6044 -0
  36. data/app/assets/stylesheets/devise.css +3 -0
  37. data/app/assets/stylesheets/font-awesome-more-ie7.css +288 -0
  38. data/app/assets/stylesheets/font-awesome-more.css +853 -0
  39. data/app/assets/stylesheets/glyphicons-pro.css +2382 -0
  40. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-background.css +147 -0
  41. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-color.css +28 -0
  42. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-navigation.css +27 -0
  43. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-overrides.css +4 -0
  44. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-table.css +29 -0
  45. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-typography.css +30 -0
  46. data/app/assets/stylesheets/rails-bootstrap-engine.css +20 -0
  47. data/app/helpers/bootstrap_alert_helper.rb +64 -0
  48. data/app/helpers/bootstrap_badge_helper.rb +145 -0
  49. data/app/helpers/bootstrap_breadcrumbs_helper.rb +97 -0
  50. data/app/helpers/bootstrap_button_helper.rb +121 -0
  51. data/app/helpers/bootstrap_engine_helper.rb +66 -0
  52. data/app/helpers/bootstrap_form_helpers.rb +55 -0
  53. data/app/helpers/bootstrap_grid_helper.rb +119 -0
  54. data/app/helpers/bootstrap_icon_helper.rb +51 -0
  55. data/app/helpers/bootstrap_label_helper.rb +116 -0
  56. data/app/helpers/bootstrap_link_helper.rb +81 -0
  57. data/app/helpers/bootstrap_nav_helper.rb +90 -0
  58. data/app/helpers/bootstrap_popover_helper.rb +52 -0
  59. data/app/helpers/bootstrap_progressbar_helper.rb +62 -0
  60. data/app/helpers/bootstrap_searchbar_helper.rb +70 -0
  61. data/app/helpers/bootstrap_text_helper.rb +128 -0
  62. data/app/views/devise/confirmations/new.html.erb +16 -0
  63. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  64. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  65. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  66. data/app/views/devise/passwords/edit.html.erb +19 -0
  67. data/app/views/devise/passwords/new.html.erb +15 -0
  68. data/app/views/devise/registrations/edit.html.erb +79 -0
  69. data/app/views/devise/registrations/new.html.erb +7 -0
  70. data/app/views/devise/sessions/new.html.erb +14 -0
  71. data/app/views/devise/shared/_links.erb +25 -0
  72. data/app/views/devise/unlocks/new.html.erb +16 -0
  73. data/app/views/layouts/application.html.erb +96 -0
  74. data/app/views/layouts/devise.html.erb +180 -0
  75. data/config/initializers/simple_form.rb +142 -0
  76. data/config/initializers/simple_form_bootstrap.rb +45 -0
  77. data/config/initializers/will_paginate.rb +28 -0
  78. data/config/locales/pt-BR.yml +217 -0
  79. data/config/locales/simple_form.en.yml +26 -0
  80. data/config/locales/will_paginate.pt-br.yml +5 -0
  81. data/config/routes.rb +2 -0
  82. data/lib/generators/bootstrap_engine/devise/install/install_generator.rb +47 -0
  83. data/lib/generators/bootstrap_engine/devise/install/templates/devise.html.erb +180 -0
  84. data/lib/rails-bootstrap-engine.rb +4 -0
  85. data/lib/rails-bootstrap-engine/engine.rb +4 -0
  86. data/lib/rails-bootstrap-engine/version.rb +3 -0
  87. data/lib/tasks/rails-bootstrap-engine_tasks.rake +4 -0
  88. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  89. data/test/dummy/README.rdoc +261 -0
  90. data/test/dummy/Rakefile +7 -0
  91. data/test/dummy/app/assets/javascripts/application.js +16 -0
  92. data/test/dummy/app/assets/javascripts/test.js +2 -0
  93. data/test/dummy/app/assets/stylesheets/application.css +14 -0
  94. data/test/dummy/app/assets/stylesheets/test.css +4 -0
  95. data/test/dummy/app/controllers/application_controller.rb +7 -0
  96. data/test/dummy/app/controllers/test_controller.rb +4 -0
  97. data/test/dummy/app/helpers/application_helper.rb +2 -0
  98. data/test/dummy/app/helpers/test_helper.rb +2 -0
  99. data/test/dummy/app/models/user.rb +11 -0
  100. data/test/dummy/app/views/layouts/application.html.erb +90 -0
  101. data/test/dummy/app/views/layouts/devise.html.erb +180 -0
  102. data/test/dummy/app/views/test/index.html.erb +2 -0
  103. data/test/dummy/config.ru +4 -0
  104. data/test/dummy/config/application.rb +62 -0
  105. data/test/dummy/config/boot.rb +10 -0
  106. data/test/dummy/config/database.yml +25 -0
  107. data/test/dummy/config/environment.rb +5 -0
  108. data/test/dummy/config/environments/development.rb +37 -0
  109. data/test/dummy/config/environments/production.rb +67 -0
  110. data/test/dummy/config/environments/test.rb +37 -0
  111. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  112. data/test/dummy/config/initializers/devise.rb +240 -0
  113. data/test/dummy/config/initializers/inflections.rb +15 -0
  114. data/test/dummy/config/initializers/mime_types.rb +5 -0
  115. data/test/dummy/config/initializers/secret_token.rb +7 -0
  116. data/test/dummy/config/initializers/session_store.rb +8 -0
  117. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  118. data/test/dummy/config/locales/devise.en.yml +60 -0
  119. data/test/dummy/config/locales/en.yml +5 -0
  120. data/test/dummy/config/routes.rb +61 -0
  121. data/test/dummy/db/development.sqlite3 +0 -0
  122. data/test/dummy/db/migrate/20130128020557_devise_create_users.rb +46 -0
  123. data/test/dummy/db/schema.rb +34 -0
  124. data/test/dummy/log/development.log +42375 -0
  125. data/test/dummy/public/404.html +26 -0
  126. data/test/dummy/public/422.html +26 -0
  127. data/test/dummy/public/500.html +25 -0
  128. data/test/dummy/public/favicon.ico +0 -0
  129. data/test/dummy/script/rails +6 -0
  130. data/test/dummy/test/fixtures/users.yml +11 -0
  131. data/test/dummy/test/functional/test_controller_test.rb +9 -0
  132. data/test/dummy/test/unit/helpers/test_helper_test.rb +4 -0
  133. data/test/dummy/test/unit/user_test.rb +7 -0
  134. data/test/dummy/tmp/cache/assets/C3E/300/sprockets%2F2e344c0677be6b7212b140861750a434 +0 -0
  135. data/test/dummy/tmp/cache/assets/C51/500/sprockets%2F54522a51515e196c0ea74c652393948d +0 -0
  136. data/test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364 +0 -0
  137. data/test/dummy/tmp/cache/assets/C79/BC0/sprockets%2F4285c677a500a056b055c187bd551e66 +0 -0
  138. data/test/dummy/tmp/cache/assets/C7F/310/sprockets%2F90949831299d2c1b73a43a1442bed906 +0 -0
  139. data/test/dummy/tmp/cache/assets/C82/E50/sprockets%2F183827018621a62ba5ff81fd772276c5 +0 -0
  140. data/test/dummy/tmp/cache/assets/C89/360/sprockets%2Fbcd93c6868260f0834225e8c57034b59 +0 -0
  141. data/test/dummy/tmp/cache/assets/C9F/670/sprockets%2Fa5133a772163e7f1321877bca922d31a +0 -0
  142. data/test/dummy/tmp/cache/assets/CA4/C80/sprockets%2F1d8eb08550b4245a12704ccb9f068274 +0 -0
  143. data/test/dummy/tmp/cache/assets/CB1/E50/sprockets%2F28c397f922d0af81b393fbf206056462 +0 -0
  144. data/test/dummy/tmp/cache/assets/CC9/FB0/sprockets%2F19690891f5b6cc724835fb913fe779e0 +0 -0
  145. data/test/dummy/tmp/cache/assets/CD4/D10/sprockets%2F6143a55e947c5d1d36b647ba5222d31c +0 -0
  146. data/test/dummy/tmp/cache/assets/CD6/D30/sprockets%2F2237e207a9f1ae1e983e15a0f1b99132 +0 -0
  147. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  148. data/test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f +0 -0
  149. data/test/dummy/tmp/cache/assets/CDD/A30/sprockets%2Fcd69a2143c13a93e76db54ed63422908 +0 -0
  150. data/test/dummy/tmp/cache/assets/CDE/4F0/sprockets%2F8ee5b8c8107426b362b54e84be04063e +0 -0
  151. data/test/dummy/tmp/cache/assets/CDE/930/sprockets%2Fc8ab20177199ce39d3c2570d7111e59c +0 -0
  152. data/test/dummy/tmp/cache/assets/CDE/CF0/sprockets%2F7bf6411e56a335b96e439a238b4da462 +0 -0
  153. data/test/dummy/tmp/cache/assets/CE0/7A0/sprockets%2F021578f8253d2eedd55bd063684dd334 +0 -0
  154. data/test/dummy/tmp/cache/assets/CE3/050/sprockets%2Fce67f45bf13e27654e882270b21463ec +0 -0
  155. data/test/dummy/tmp/cache/assets/CEA/A80/sprockets%2F4a745d213d993e1185d55e26c68deb74 +0 -0
  156. data/test/dummy/tmp/cache/assets/CEF/500/sprockets%2F0d17117bfaf665390bbb203530ce01d2 +0 -0
  157. data/test/dummy/tmp/cache/assets/CF1/C60/sprockets%2Fb888b526e547356dbf4f16835d8a2f34 +0 -0
  158. data/test/dummy/tmp/cache/assets/CF7/A10/sprockets%2F2e3a5af78ce42be8252314603b6c00b1 +0 -0
  159. data/test/dummy/tmp/cache/assets/CF9/2A0/sprockets%2F99d62669bd0b471738e99e43ae564ef1 +0 -0
  160. data/test/dummy/tmp/cache/assets/D04/8E0/sprockets%2F33617ca614d80c0cfe33277e05a5f35d +0 -0
  161. data/test/dummy/tmp/cache/assets/D0E/2B0/sprockets%2F859557e033595cf5b9eb2e73330bba0a +0 -0
  162. data/test/dummy/tmp/cache/assets/D15/9D0/sprockets%2F270af34895cfd4b388c9aad55e043464 +0 -0
  163. data/test/dummy/tmp/cache/assets/D15/D20/sprockets%2F952bcc41195db55c99be6c93f40b7513 +0 -0
  164. data/test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9 +0 -0
  165. data/test/dummy/tmp/cache/assets/D19/EF0/sprockets%2F895b6d0967c1205395e5b9a6bd56a4dc +0 -0
  166. data/test/dummy/tmp/cache/assets/D1A/C00/sprockets%2F9599a6464c5dac7fd6093f1a46fb0444 +0 -0
  167. data/test/dummy/tmp/cache/assets/D25/5A0/sprockets%2Fbf2f92c27945d0f2897f94e546346cda +0 -0
  168. data/test/dummy/tmp/cache/assets/D2B/E00/sprockets%2Febafd146d810419e351347cae0001ed8 +0 -0
  169. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  170. data/test/dummy/tmp/cache/assets/D3A/F20/sprockets%2F04a7fb58c68be319d3f3b5c7f14200d6 +0 -0
  171. data/test/dummy/tmp/cache/assets/D3B/440/sprockets%2F9d61f7f02a3a5dab16a07f463d95563c +0 -0
  172. data/test/dummy/tmp/cache/assets/D3D/C40/sprockets%2F427a390419acfd9b1dbf265e6e6f3430 +0 -0
  173. data/test/dummy/tmp/cache/assets/D3E/210/sprockets%2F6ad484a0d5fd94a6970ca33e2cc15297 +0 -0
  174. data/test/dummy/tmp/cache/assets/D3E/300/sprockets%2F66271e5e0e2a7aa2937ba5d8e4a2962f +0 -0
  175. data/test/dummy/tmp/cache/assets/D3F/CB0/sprockets%2Fc58312cf90fc5e15d416de5bd74e9411 +0 -0
  176. data/test/dummy/tmp/cache/assets/D42/9F0/sprockets%2F956410b8172fa4592bc3cbf5f71a6f5f +0 -0
  177. data/test/dummy/tmp/cache/assets/D43/B00/sprockets%2Ff724bee040039676a1aae696a8f06e7f +0 -0
  178. data/test/dummy/tmp/cache/assets/D45/930/sprockets%2F9593e26322d3ac909618faa6fc8cf50b +0 -0
  179. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  180. data/test/dummy/tmp/cache/assets/D52/8C0/sprockets%2F24944cec626a1b59d98e9b46b7cd91e6 +0 -0
  181. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  182. data/test/dummy/tmp/cache/assets/D61/1C0/sprockets%2Fa159272faca84b51889c6ab0ca11c3d6 +0 -0
  183. data/test/dummy/tmp/cache/assets/D63/EA0/sprockets%2Ffc8a31fb16444bc623a7afd34b27f065 +0 -0
  184. data/test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80 +0 -0
  185. data/test/dummy/tmp/cache/assets/D66/B00/sprockets%2Fa9c44b4284c7b601c36ba69562accfb4 +0 -0
  186. data/test/dummy/tmp/cache/assets/D68/7C0/sprockets%2F1866195f0d2b5f990a3a2131acdffdb7 +0 -0
  187. data/test/dummy/tmp/cache/assets/D6A/940/sprockets%2Ff12f9168fe02cef00d215dc87d5e7c11 +0 -0
  188. data/test/dummy/tmp/cache/assets/D70/530/sprockets%2Faa6133344adde2f6796dd06c2378f9ca +0 -0
  189. data/test/dummy/tmp/cache/assets/D71/D40/sprockets%2Fdf25d07e57783faca718d3355e12caf5 +0 -0
  190. data/test/dummy/tmp/cache/assets/D86/090/sprockets%2Faad76d1c0cd8f8a86962f721f999b09f +0 -0
  191. data/test/dummy/tmp/cache/assets/D8A/770/sprockets%2Fad6b282a5df70217f707adde40a0a17d +0 -0
  192. data/test/dummy/tmp/cache/assets/D90/440/sprockets%2F7fa7e142c264fa45fe720aa47b5b0dd2 +0 -0
  193. data/test/dummy/tmp/cache/assets/D97/250/sprockets%2F45bb8c0384f075aecc8dc2e5670ef0a2 +0 -0
  194. data/test/dummy/tmp/cache/assets/D9C/C10/sprockets%2F462dea729a9984d242ab7b6ace1fc0b6 +0 -0
  195. data/test/dummy/tmp/cache/assets/DA6/D40/sprockets%2Fa6d2c6c99e2fa333eb87ee7560ae941b +0 -0
  196. data/test/dummy/tmp/cache/assets/DAA/D20/sprockets%2F1df903901857cf4ceb8bee9d1ec42d68 +0 -0
  197. data/test/dummy/tmp/cache/assets/DAC/770/sprockets%2F473547f2b9f6b2bc6d0fa06f79af57fd +0 -0
  198. data/test/dummy/tmp/cache/assets/DB8/D70/sprockets%2F2aae8f796d8b8290c88e66fffb09c14e +0 -0
  199. data/test/dummy/tmp/cache/assets/DBC/2C0/sprockets%2Fb7023d141154daa082e2fceeaaf99ea4 +0 -0
  200. data/test/dummy/tmp/cache/assets/DC6/3A0/sprockets%2F692eb3cc77b2eeba07ab6c36295a6bd1 +0 -0
  201. data/test/dummy/tmp/cache/assets/DC7/F30/sprockets%2F6c6f0bca21e5a0e8f4b54d3de3f3a478 +0 -0
  202. data/test/dummy/tmp/cache/assets/DCA/AC0/sprockets%2F409ab48cd1b8b124e8f6e0b5cb3ff35f +0 -0
  203. data/test/dummy/tmp/cache/assets/DCD/210/sprockets%2Fff66c21af8a114cfaa477375cfbe6e51 +0 -0
  204. data/test/dummy/tmp/cache/assets/DCF/360/sprockets%2F60babcedd5e76636d61b5849d3cc7c0d +0 -0
  205. data/test/dummy/tmp/cache/assets/DDA/5A0/sprockets%2Feffe9d8758c34ac5b08d5ab37107e6de +0 -0
  206. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  207. data/test/dummy/tmp/cache/assets/DDC/A10/sprockets%2Faac7e62fb8f54520e0fd8fdace647877 +0 -0
  208. data/test/dummy/tmp/cache/assets/DDF/9F0/sprockets%2Fe4c64d625c9988fc2ecc7fb0c6196bdc +0 -0
  209. data/test/dummy/tmp/cache/assets/DFB/510/sprockets%2Fbaa9a5abc4aeafa76fa6076c476b5099 +0 -0
  210. data/test/dummy/tmp/cache/assets/DFE/1E0/sprockets%2Fafc6a7ac607cdccf69b2f41c81462c9d +0 -0
  211. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  212. data/test/dummy/tmp/cache/assets/E20/550/sprockets%2Fe1b1ce6c37d22bb088bb09c6eddfa51d +0 -0
  213. data/test/dummy/tmp/cache/assets/E7B/7F0/sprockets%2Fb5adae1ffa3fd56d153fea3a52aaff23 +0 -0
  214. data/test/integration/navigation_test.rb +10 -0
  215. data/test/rails-bootstrap-engine_test.rb +7 -0
  216. data/test/test_helper.rb +15 -0
  217. metadata +423 -0
@@ -0,0 +1,147 @@
1
+ /*
2
+ Bootstrap Toolkit
3
+ Copyright (C) 2013 AgĂȘncia Orangeweb <luizeof@gmail.com>, < atendimento@orangeweb.com.br >
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+
20
+ /* Backgrounds Extras */
21
+
22
+
23
+ /* from http://lea.verou.me/css3patterns */
24
+
25
+ .background-lined-paper{
26
+ background-color: #fff;
27
+ background-image:
28
+ linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
29
+ linear-gradient(#eee .1em, transparent .1em);
30
+ background-size: 100% 1.2em;
31
+ }
32
+
33
+
34
+ .background-blueprint{
35
+ background-color:#269;
36
+ background-image: linear-gradient(white 2px, transparent 2px),
37
+ linear-gradient(90deg, white 2px, transparent 2px),
38
+ linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
39
+ linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
40
+ background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
41
+ background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px
42
+ }
43
+
44
+
45
+ /* from http://css3pie.com/demos/gradient-patterns */
46
+
47
+ .background-horizontal-stripes{
48
+ background-size: 50px 50px;
49
+ background-color: #0ae;
50
+ background-image: -webkit-linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
51
+ background-image: -moz-linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
52
+ background-image: -ms-linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
53
+ background-image: -o-linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
54
+ background-image: linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
55
+ -pie-background: linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%, transparent) 0 0 / 50px #0ae;
56
+ behavior: url(/pie/PIE.htc);
57
+ }
58
+
59
+ .background-horizontal-stripes{
60
+ background-size: 50px 50px;
61
+ background-color: #f90;
62
+ background-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
63
+ background-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
64
+ background-image: -mslinear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
65
+ background-image: -olinear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
66
+ background-image: linear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent);
67
+ -pie-background: linear-gradient(0deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent) 0 0 / 50px 50px #f90;
68
+ behavior: url(/pie/PIE.htc);
69
+ }
70
+
71
+
72
+ .background-angled-stripes{
73
+ background-size: 50px 50px;
74
+ background-color: #ac0;
75
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
76
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
77
+ transparent 75%, transparent);
78
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
79
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
80
+ transparent 75%, transparent);
81
+ background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
82
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
83
+ transparent 75%, transparent);
84
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
85
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
86
+ transparent 75%, transparent);
87
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
88
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
89
+ transparent 75%, transparent);
90
+ -pie-background: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
91
+ transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
92
+ transparent 75%, transparent) 0 0 / 50px 50px #ac0;
93
+ behavior: url(/pie/PIE.htc);
94
+ }
95
+
96
+
97
+ .background-bricked{
98
+ background-color: silver;
99
+ background-size: 58px 58px;
100
+ background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
101
+ background-image: -webkit-linear-gradient(115deg, #b00 23px, transparent 23px),
102
+ -webkit-linear-gradient(295deg, #d00 23px, transparent 23px),
103
+ -webkit-linear-gradient(115deg, #b00 23px, transparent 23px),
104
+ -webkit-linear-gradient(295deg, #d00 23px, transparent 23px);
105
+ background-image: -moz-linear-gradient(115deg, #b00 23px, transparent 23px),
106
+ -moz-linear-gradient(295deg, #d00 23px, transparent 23px),
107
+ -moz-linear-gradient(115deg, #b00 23px, transparent 23px),
108
+ -moz-linear-gradient(295deg, #d00 23px, transparent 23px);
109
+ background-image: -ms-linear-gradient(115deg, #b00 23px, transparent 23px),
110
+ -ms-linear-gradient(295deg, #d00 23px, transparent 23px),
111
+ -ms-linear-gradient(115deg, #b00 23px, transparent 23px),
112
+ -ms-linear-gradient(295deg, #d00 23px, transparent 23px);
113
+ background-image: -o-linear-gradient(115deg, #b00 23px, transparent 23px),
114
+ -o-linear-gradient(295deg, #d00 23px, transparent 23px),
115
+ -o-linear-gradient(115deg, #b00 23px, transparent 23px),
116
+ -o-linear-gradient(295deg, #d00 23px, transparent 23px);
117
+ background-image: linear-gradient(115deg, #b00 23px, transparent 23px),
118
+ linear-gradient(295deg, #d00 23px, transparent 23px),
119
+ linear-gradient(115deg, #b00 23px, transparent 23px),
120
+ linear-gradient(295deg, #d00 23px, transparent 23px);
121
+ -pie-background: linear-gradient(115deg, #b00 23px, transparent 23px) 0 2px / 58px,
122
+ linear-gradient(295deg, #d00 23px, transparent 23px) 4px 35px / 58px,
123
+ linear-gradient(115deg, #b00 23px, transparent 23px) 29px 31px / 58px,
124
+ linear-gradient(295deg, #d00 23px, transparent 23px) 34px 6px / 58px,
125
+ silver;
126
+ behavior: url(/pie/PIE.htc);
127
+ }
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
@@ -0,0 +1,28 @@
1
+ /*
2
+ Bootstrap Toolkit
3
+ Copyright (C) 2013 AgĂȘncia Orangeweb <luizeof@gmail.com>, < atendimento@orangeweb.com.br >
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+
20
+ /* Color Extras */
21
+
22
+ .delete-link{
23
+ color: red;
24
+ }
25
+
26
+ .edit-link{
27
+ color: #10c22a;
28
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ Bootstrap Toolkit
3
+ Copyright (C) 2013 AgĂȘncia Orangeweb <luizeof@gmail.com>, < atendimento@orangeweb.com.br >
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+
20
+ /* Nav Extras */
21
+
22
+
23
+ /* Toolbar for Links */
24
+
25
+ .nav.nav-toolbar {
26
+ margin: 1em 0 2em 0;
27
+ }
@@ -0,0 +1,4 @@
1
+
2
+ /* Bootstrap Labels and Badges */
3
+
4
+ label.pull-left { padding-right: 20px; }
@@ -0,0 +1,29 @@
1
+ /*
2
+ Bootstrap Toolkit
3
+ Copyright (C) 2013 AgĂȘncia Orangeweb <luizeof@gmail.com>, < atendimento@orangeweb.com.br >
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+
20
+ /* Table Extras */
21
+
22
+ table tr td.action-buttons {
23
+ text-align: center;
24
+ }
25
+
26
+ table tr td.action-buttons a{
27
+
28
+ margin-right: 6px;
29
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ Bootstrap Toolkit
3
+ Copyright (C) 2013 AgĂȘncia Orangeweb <luizeof@gmail.com>, < atendimento@orangeweb.com.br >
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+
19
+ /* Typography Extras */
20
+
21
+ .align-left { text-align: left; }
22
+ .align-center { text-align: center; }
23
+ .align-right { text-align: right; }
24
+ .align-justify { text-align: justify; }
25
+
26
+ .font-sans-serif { font-family: 'Liberation Sans', 'DejaVu Sans', Arial, Helvetica, 'Helvetica Neue', sans-serif; }
27
+ .font-serif { font-family: 'Liberation Serif','DejaVu Serif', Times, 'Times New Roman', serif; }
28
+ .font-monospace { font-family: 'Liberation Mono','DejaVu Sans Mono', Courier, 'Courier New', Monaco, monospace; }
29
+
30
+ .small-caps { font-variant: small-caps; }
@@ -0,0 +1,20 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require bootstrap
13
+ *= require bootstrap-responsive
14
+ *= require font-awesome-more
15
+ *= require font-awesome-more-ie7
16
+ *= require glyphicons-pro
17
+ *= require_tree ./bootstrap-plugins
18
+ *= require_tree ./orangeweb-bootstrap-toolkit
19
+ *= require_tree .
20
+ */
@@ -0,0 +1,64 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # ============================================================================
3
+ #
4
+ # RAILS BOOTSTRAP ENGINE
5
+ #
6
+ # Bootstrap Alerts & Messages
7
+ # http://twitter.github.com/bootstrap/components.html#alerts
8
+ #
9
+ #
10
+ # Copyright 2012-2013 Luiz Eduardo de Oliveira Fonseca, AgĂȘncia Orangeweb
11
+ # Licensed under The MIT License
12
+ # http://opensource.org/licenses/MIT
13
+ #
14
+ module BootstrapAlertHelper
15
+
16
+
17
+
18
+
19
+ # Show Flash Messages with Bootstrap Alerts
20
+ def flash_messages
21
+ messages = []
22
+
23
+ flash.each do |type, message|
24
+ next if type == :timeout
25
+ next if type == :timedout
26
+ type = :success if type == :notice
27
+ type = :error if type == :alert
28
+ text = content_tag(:div,
29
+ content_tag(:button, raw("&times;"), :class => "close", "data-dismiss" => "alert") +
30
+ message, :class => "alert fade in alert-#{type}")
31
+ messages << text if message
32
+ end
33
+ messages.join("\n").html_safe
34
+ end
35
+
36
+
37
+
38
+
39
+
40
+ # Alert Blocks
41
+ def alert_block title, alert_context = :alert, &block
42
+ raw '<div class="alert alert-block alert-' + alert_context.to_s + '" >' +
43
+ ' <a class="close" data-dismiss="alert" href="#">&times;</a>' +
44
+ ' <h4 class="alert-heading">' + title + '</h4>' +
45
+ capture(&block) +
46
+ '</div>'
47
+ end
48
+
49
+
50
+
51
+
52
+
53
+ # Alert Blocks
54
+ def alert_inline title, alert_context = :alert, &block
55
+ raw '<div class="alert alert-' + alert_context.to_s + '" >' +
56
+ ' <a class="close" data-dismiss="alert" href="#">&times;</a>' +
57
+ ' <strong class="alert-heading">' + title + '</strong>' +
58
+ capture(&block) +
59
+ '</div>'
60
+ end
61
+
62
+
63
+
64
+ end
@@ -0,0 +1,145 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # ============================================================================
3
+ #
4
+ # RAILS BOOTSTRAP ENGINE
5
+ #
6
+ # Bootstrap Badges
7
+ # http://twitter.github.com/bootstrap/components.html#labels-badges
8
+ #
9
+ #
10
+ # Copyright 2012-2013 Luiz Eduardo de Oliveira Fonseca, AgĂȘncia Orangeweb
11
+ # Licensed under The MIT License
12
+ # http://opensource.org/licenses/MIT
13
+ #
14
+ module BootstrapBadgeHelper
15
+
16
+
17
+
18
+
19
+ # Generates default badge markup
20
+ #
21
+ # <span class="badge badge-default">Text</span>
22
+ #
23
+ def bootstrap_badge(value, type = :default, show_if_nil = false)
24
+
25
+ out = (content_tag :span, value, :class => "badge badge-#{type.to_s}")
26
+
27
+ if value.nil? then
28
+ if (show_if_nil == false) then
29
+ out = ""
30
+ end
31
+ end
32
+
33
+ raw out
34
+ end
35
+
36
+
37
+
38
+
39
+
40
+
41
+ # Generates default badge markup
42
+ #
43
+ # <span class="badge badge-default">Text</span>
44
+ #
45
+ def badge_default value, show_if_nil = false
46
+ bootstrap_badge value, :default, show_if_nil
47
+ end
48
+
49
+
50
+
51
+
52
+
53
+
54
+ # Generates success badge markup
55
+ #
56
+ # <span class="badge badge-success">Text</span>
57
+ #
58
+ def badge_success value, show_if_nil = false
59
+ bootstrap_badge value, :success, show_if_nil
60
+ end
61
+
62
+
63
+
64
+
65
+
66
+ # Generates warning badge markup
67
+ #
68
+ # <span class="badge badge-warning">Text</span>
69
+ #
70
+ def badge_warning value, show_if_nil = false
71
+ bootstrap_badge value, :warning, show_if_nil
72
+ end
73
+
74
+
75
+
76
+
77
+
78
+ # Generates important badge markup
79
+ #
80
+ # <span class="badge badge-important">Text</span>
81
+ #
82
+ def badge_important value, show_if_nil = false
83
+ bootstrap_badge value, :important, show_if_nil
84
+ end
85
+
86
+
87
+
88
+
89
+
90
+ # Generates info badge markup
91
+ #
92
+ # <span class="badge badge-info">Text</span>
93
+ #
94
+ def badge_info value, show_if_nil = false
95
+ bootstrap_badge value, :info, show_if_nil
96
+ end
97
+
98
+
99
+
100
+
101
+
102
+ # Generates inverse badge markup
103
+ #
104
+ # <span class="badge badge-inverse">Text</span>
105
+ #
106
+ def badge_inverse value, show_if_nil = false
107
+ bootstrap_badge value, :inverse, show_if_nil
108
+ end
109
+
110
+
111
+
112
+
113
+
114
+ # Generates a percent badge
115
+ #
116
+ # <span class="badge badge-type">0%</span>
117
+ #
118
+ def percent_badge(val, opts={})
119
+
120
+ show_sign = false
121
+ show_sign = opts[:sign] unless opts[:sign].nil?
122
+
123
+ if show_sign then
124
+ out_text = "#{val.to_s}%"
125
+ else
126
+ out_text = val.to_s
127
+ end
128
+
129
+ case val
130
+ when 0..29
131
+ type = :danger
132
+ when 30..59
133
+ type = :warning
134
+ when 60..99
135
+ type = :info
136
+ when 100
137
+ type = :success
138
+ end #case val
139
+
140
+ bootstrap_badge(out_text, type)
141
+ end
142
+
143
+
144
+
145
+ end