bootstrap_it 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +5 -0
  5. data/Gemfile +9 -0
  6. data/README.md +582 -0
  7. data/Rakefile +6 -0
  8. data/bootstrap_it.gemspec +33 -0
  9. data/config.ru +7 -0
  10. data/lib/bootstrap_it.rb +9 -0
  11. data/lib/bootstrap_it/assets.rb +67 -0
  12. data/lib/bootstrap_it/config.rb +50 -0
  13. data/lib/bootstrap_it/engine.rb +25 -0
  14. data/lib/bootstrap_it/locales/en.yml +4 -0
  15. data/lib/bootstrap_it/locales/ru.yml +4 -0
  16. data/lib/bootstrap_it/version.rb +6 -0
  17. data/lib/bootstrap_it/view_helpers.rb +55 -0
  18. data/lib/bootstrap_it/view_helpers/breadcrumb.rb +19 -0
  19. data/lib/bootstrap_it/view_helpers/button.rb +116 -0
  20. data/lib/bootstrap_it/view_helpers/button_group.rb +32 -0
  21. data/lib/bootstrap_it/view_helpers/button_toolbar.rb +21 -0
  22. data/lib/bootstrap_it/view_helpers/dropdown_menu.rb +30 -0
  23. data/lib/bootstrap_it/view_helpers/form.rb +127 -0
  24. data/lib/bootstrap_it/view_helpers/grid.rb +75 -0
  25. data/lib/bootstrap_it/view_helpers/icon.rb +24 -0
  26. data/lib/bootstrap_it/view_helpers/list.rb +47 -0
  27. data/lib/bootstrap_it/view_helpers/misc.rb +144 -0
  28. data/lib/bootstrap_it/view_helpers/mixin.rb +279 -0
  29. data/lib/bootstrap_it/view_helpers/nav.rb +96 -0
  30. data/lib/bootstrap_it/view_helpers/pagination.rb +34 -0
  31. data/lib/bootstrap_it/view_helpers/table.rb +72 -0
  32. data/lib/bootstrap_it/view_helpers/text.rb +46 -0
  33. data/spec/assets/assets_spec.rb +51 -0
  34. data/spec/internal/app/assets/javascript/application.js +7 -0
  35. data/spec/internal/app/assets/javascript/user.js +1 -0
  36. data/spec/internal/app/assets/javascript/userfont.eot +0 -0
  37. data/spec/internal/app/assets/stylesheets/application.css +6 -0
  38. data/spec/internal/app/assets/stylesheets/user.css +1 -0
  39. data/spec/internal/config/database.yml +3 -0
  40. data/spec/internal/config/routes.rb +3 -0
  41. data/spec/internal/db/schema.rb +3 -0
  42. data/spec/internal/log/.gitignore +1 -0
  43. data/spec/internal/public/favicon.ico +0 -0
  44. data/spec/lib/config_spec.rb +10 -0
  45. data/spec/lib/view_helpers_spec.rb +12 -0
  46. data/spec/spec_helper.rb +37 -0
  47. data/spec/support/example_groups/assets_example_group.rb +84 -0
  48. data/spec/support/example_groups/view_helpers_example_group.rb +124 -0
  49. data/spec/view_helpers/breadcrumb_spec.rb +12 -0
  50. data/spec/view_helpers/button_group_spec.rb +40 -0
  51. data/spec/view_helpers/button_spec.rb +169 -0
  52. data/spec/view_helpers/button_toolbar_spec.rb +14 -0
  53. data/spec/view_helpers/dropdown_menu_spec.rb +41 -0
  54. data/spec/view_helpers/form_spec.rb +27 -0
  55. data/spec/view_helpers/grid_spec.rb +47 -0
  56. data/spec/view_helpers/icon_spec.rb +6 -0
  57. data/spec/view_helpers/list_spec.rb +50 -0
  58. data/spec/view_helpers/misc_spec.rb +117 -0
  59. data/spec/view_helpers/mixin_spec.rb +177 -0
  60. data/spec/view_helpers/nav_spec.rb +63 -0
  61. data/spec/view_helpers/pagination_spec.rb +36 -0
  62. data/spec/view_helpers/table_spec.rb +59 -0
  63. data/spec/view_helpers/text_spec.rb +13 -0
  64. data/spec/views/examples_spec.rb +250 -0
  65. data/upstream/bootstrap-3.0.3-dist.zip +0 -0
  66. data/upstream/bootstrap/3.0.3/fonts/glyphicons-halflings-regular.eot +0 -0
  67. data/upstream/bootstrap/3.0.3/fonts/glyphicons-halflings-regular.svg +229 -0
  68. data/upstream/bootstrap/3.0.3/fonts/glyphicons-halflings-regular.ttf +0 -0
  69. data/upstream/bootstrap/3.0.3/fonts/glyphicons-halflings-regular.woff +0 -0
  70. data/upstream/bootstrap/3.0.3/javascript/bootstrap.js +2006 -0
  71. data/upstream/bootstrap/3.0.3/javascript/bootstrap.min.js +7 -0
  72. data/upstream/bootstrap/3.0.3/src/.editorconfig +11 -0
  73. data/upstream/bootstrap/3.0.3/src/.gitattributes +8 -0
  74. data/upstream/bootstrap/3.0.3/src/.gitignore +42 -0
  75. data/upstream/bootstrap/3.0.3/src/.travis.yml +10 -0
  76. data/upstream/bootstrap/3.0.3/src/CNAME +1 -0
  77. data/upstream/bootstrap/3.0.3/src/CONTRIBUTING.md +79 -0
  78. data/upstream/bootstrap/3.0.3/src/DOCS-LICENSE +319 -0
  79. data/upstream/bootstrap/3.0.3/src/Gruntfile.js +337 -0
  80. data/upstream/bootstrap/3.0.3/src/LICENSE +176 -0
  81. data/upstream/bootstrap/3.0.3/src/LICENSE-MIT +21 -0
  82. data/upstream/bootstrap/3.0.3/src/README.md +166 -0
  83. data/upstream/bootstrap/3.0.3/src/_config.yml +25 -0
  84. data/upstream/bootstrap/3.0.3/src/_includes/ads.html +1 -0
  85. data/upstream/bootstrap/3.0.3/src/_includes/footer.html +48 -0
  86. data/upstream/bootstrap/3.0.3/src/_includes/header.html +42 -0
  87. data/upstream/bootstrap/3.0.3/src/_includes/nav-about.html +12 -0
  88. data/upstream/bootstrap/3.0.3/src/_includes/nav-components.html +137 -0
  89. data/upstream/bootstrap/3.0.3/src/_includes/nav-css.html +99 -0
  90. data/upstream/bootstrap/3.0.3/src/_includes/nav-customize.html +40 -0
  91. data/upstream/bootstrap/3.0.3/src/_includes/nav-getting-started.html +48 -0
  92. data/upstream/bootstrap/3.0.3/src/_includes/nav-javascript.html +88 -0
  93. data/upstream/bootstrap/3.0.3/src/_includes/nav-main.html +37 -0
  94. data/upstream/bootstrap/3.0.3/src/_includes/old-bs-docs.html +8 -0
  95. data/upstream/bootstrap/3.0.3/src/_includes/social-buttons.html +16 -0
  96. data/upstream/bootstrap/3.0.3/src/_layouts/default.html +79 -0
  97. data/upstream/bootstrap/3.0.3/src/_layouts/home.html +47 -0
  98. data/upstream/bootstrap/3.0.3/src/about.html +94 -0
  99. data/upstream/bootstrap/3.0.3/src/bower.json +30 -0
  100. data/upstream/bootstrap/3.0.3/src/components.html +3714 -0
  101. data/upstream/bootstrap/3.0.3/src/composer.json +25 -0
  102. data/upstream/bootstrap/3.0.3/src/css.html +2673 -0
  103. data/upstream/bootstrap/3.0.3/src/customize.html +1715 -0
  104. data/upstream/bootstrap/3.0.3/src/dist/css/bootstrap-theme.css +397 -0
  105. data/upstream/bootstrap/3.0.3/src/dist/css/bootstrap-theme.min.css +7 -0
  106. data/upstream/bootstrap/3.0.3/src/dist/css/bootstrap.css +7118 -0
  107. data/upstream/bootstrap/3.0.3/src/dist/css/bootstrap.min.css +7 -0
  108. data/upstream/bootstrap/3.0.3/src/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  109. data/upstream/bootstrap/3.0.3/src/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  110. data/upstream/bootstrap/3.0.3/src/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  111. data/upstream/bootstrap/3.0.3/src/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  112. data/upstream/bootstrap/3.0.3/src/dist/js/bootstrap.js +2006 -0
  113. data/upstream/bootstrap/3.0.3/src/dist/js/bootstrap.min.js +7 -0
  114. data/upstream/bootstrap/3.0.3/src/docs-assets/css/docs.css +1196 -0
  115. data/upstream/bootstrap/3.0.3/src/docs-assets/css/pygments-manni.css +66 -0
  116. data/upstream/bootstrap/3.0.3/src/docs-assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  117. data/upstream/bootstrap/3.0.3/src/docs-assets/ico/favicon.png +0 -0
  118. data/upstream/bootstrap/3.0.3/src/docs-assets/js/application.js +103 -0
  119. data/upstream/bootstrap/3.0.3/src/docs-assets/js/customizer.js +332 -0
  120. data/upstream/bootstrap/3.0.3/src/docs-assets/js/filesaver.js +399 -0
  121. data/upstream/bootstrap/3.0.3/src/docs-assets/js/holder.js +500 -0
  122. data/upstream/bootstrap/3.0.3/src/docs-assets/js/ie8-responsive-file-warning.js +12 -0
  123. data/upstream/bootstrap/3.0.3/src/docs-assets/js/jszip.js +1474 -0
  124. data/upstream/bootstrap/3.0.3/src/docs-assets/js/less.js +9 -0
  125. data/upstream/bootstrap/3.0.3/src/docs-assets/js/raw-files.js +3 -0
  126. data/upstream/bootstrap/3.0.3/src/docs-assets/js/uglify.js +14 -0
  127. data/upstream/bootstrap/3.0.3/src/examples/carousel/carousel.css +148 -0
  128. data/upstream/bootstrap/3.0.3/src/examples/carousel/index.html +206 -0
  129. data/upstream/bootstrap/3.0.3/src/examples/grid/grid.css +28 -0
  130. data/upstream/bootstrap/3.0.3/src/examples/grid/index.html +148 -0
  131. data/upstream/bootstrap/3.0.3/src/examples/jumbotron-narrow/index.html +82 -0
  132. data/upstream/bootstrap/3.0.3/src/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
  133. data/upstream/bootstrap/3.0.3/src/examples/jumbotron/index.html +99 -0
  134. data/upstream/bootstrap/3.0.3/src/examples/jumbotron/jumbotron.css +5 -0
  135. data/upstream/bootstrap/3.0.3/src/examples/justified-nav/index.html +84 -0
  136. data/upstream/bootstrap/3.0.3/src/examples/justified-nav/justified-nav.css +88 -0
  137. data/upstream/bootstrap/3.0.3/src/examples/navbar-fixed-top/index.html +91 -0
  138. data/upstream/bootstrap/3.0.3/src/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
  139. data/upstream/bootstrap/3.0.3/src/examples/navbar-static-top/index.html +92 -0
  140. data/upstream/bootstrap/3.0.3/src/examples/navbar-static-top/navbar-static-top.css +7 -0
  141. data/upstream/bootstrap/3.0.3/src/examples/navbar/index.html +88 -0
  142. data/upstream/bootstrap/3.0.3/src/examples/navbar/navbar.css +8 -0
  143. data/upstream/bootstrap/3.0.3/src/examples/non-responsive/index.html +101 -0
  144. data/upstream/bootstrap/3.0.3/src/examples/non-responsive/non-responsive.css +120 -0
  145. data/upstream/bootstrap/3.0.3/src/examples/offcanvas/index.html +130 -0
  146. data/upstream/bootstrap/3.0.3/src/examples/offcanvas/offcanvas.css +51 -0
  147. data/upstream/bootstrap/3.0.3/src/examples/offcanvas/offcanvas.js +5 -0
  148. data/upstream/bootstrap/3.0.3/src/examples/screenshots/carousel.jpg +0 -0
  149. data/upstream/bootstrap/3.0.3/src/examples/screenshots/grid.jpg +0 -0
  150. data/upstream/bootstrap/3.0.3/src/examples/screenshots/jumbotron-narrow.jpg +0 -0
  151. data/upstream/bootstrap/3.0.3/src/examples/screenshots/jumbotron.jpg +0 -0
  152. data/upstream/bootstrap/3.0.3/src/examples/screenshots/justified-nav.jpg +0 -0
  153. data/upstream/bootstrap/3.0.3/src/examples/screenshots/navbar-fixed.jpg +0 -0
  154. data/upstream/bootstrap/3.0.3/src/examples/screenshots/navbar-static.jpg +0 -0
  155. data/upstream/bootstrap/3.0.3/src/examples/screenshots/navbar.jpg +0 -0
  156. data/upstream/bootstrap/3.0.3/src/examples/screenshots/non-responsive.jpg +0 -0
  157. data/upstream/bootstrap/3.0.3/src/examples/screenshots/offcanvas.jpg +0 -0
  158. data/upstream/bootstrap/3.0.3/src/examples/screenshots/sign-in.jpg +0 -0
  159. data/upstream/bootstrap/3.0.3/src/examples/screenshots/starter-template.jpg +0 -0
  160. data/upstream/bootstrap/3.0.3/src/examples/screenshots/sticky-footer-navbar.jpg +0 -0
  161. data/upstream/bootstrap/3.0.3/src/examples/screenshots/sticky-footer.jpg +0 -0
  162. data/upstream/bootstrap/3.0.3/src/examples/screenshots/theme.jpg +0 -0
  163. data/upstream/bootstrap/3.0.3/src/examples/signin/index.html +50 -0
  164. data/upstream/bootstrap/3.0.3/src/examples/signin/signin.css +40 -0
  165. data/upstream/bootstrap/3.0.3/src/examples/starter-template/index.html +68 -0
  166. data/upstream/bootstrap/3.0.3/src/examples/starter-template/starter-template.css +7 -0
  167. data/upstream/bootstrap/3.0.3/src/examples/sticky-footer-navbar/index.html +91 -0
  168. data/upstream/bootstrap/3.0.3/src/examples/sticky-footer-navbar/sticky-footer-navbar.css +45 -0
  169. data/upstream/bootstrap/3.0.3/src/examples/sticky-footer/index.html +55 -0
  170. data/upstream/bootstrap/3.0.3/src/examples/sticky-footer/sticky-footer.css +38 -0
  171. data/upstream/bootstrap/3.0.3/src/examples/theme/index.html +384 -0
  172. data/upstream/bootstrap/3.0.3/src/examples/theme/theme.css +14 -0
  173. data/upstream/bootstrap/3.0.3/src/fonts/glyphicons-halflings-regular.eot +0 -0
  174. data/upstream/bootstrap/3.0.3/src/fonts/glyphicons-halflings-regular.svg +229 -0
  175. data/upstream/bootstrap/3.0.3/src/fonts/glyphicons-halflings-regular.ttf +0 -0
  176. data/upstream/bootstrap/3.0.3/src/fonts/glyphicons-halflings-regular.woff +0 -0
  177. data/upstream/bootstrap/3.0.3/src/getting-started.html +1057 -0
  178. data/upstream/bootstrap/3.0.3/src/index.html +16 -0
  179. data/upstream/bootstrap/3.0.3/src/javascript.html +1995 -0
  180. data/upstream/bootstrap/3.0.3/src/js/.jshintrc +14 -0
  181. data/upstream/bootstrap/3.0.3/src/js/affix.js +126 -0
  182. data/upstream/bootstrap/3.0.3/src/js/alert.js +98 -0
  183. data/upstream/bootstrap/3.0.3/src/js/button.js +115 -0
  184. data/upstream/bootstrap/3.0.3/src/js/carousel.js +217 -0
  185. data/upstream/bootstrap/3.0.3/src/js/collapse.js +179 -0
  186. data/upstream/bootstrap/3.0.3/src/js/dropdown.js +154 -0
  187. data/upstream/bootstrap/3.0.3/src/js/modal.js +246 -0
  188. data/upstream/bootstrap/3.0.3/src/js/popover.js +117 -0
  189. data/upstream/bootstrap/3.0.3/src/js/scrollspy.js +158 -0
  190. data/upstream/bootstrap/3.0.3/src/js/tab.js +135 -0
  191. data/upstream/bootstrap/3.0.3/src/js/tests/index.html +52 -0
  192. data/upstream/bootstrap/3.0.3/src/js/tests/unit/affix.js +25 -0
  193. data/upstream/bootstrap/3.0.3/src/js/tests/unit/alert.js +62 -0
  194. data/upstream/bootstrap/3.0.3/src/js/tests/unit/button.js +122 -0
  195. data/upstream/bootstrap/3.0.3/src/js/tests/unit/carousel.js +87 -0
  196. data/upstream/bootstrap/3.0.3/src/js/tests/unit/collapse.js +164 -0
  197. data/upstream/bootstrap/3.0.3/src/js/tests/unit/dropdown.js +219 -0
  198. data/upstream/bootstrap/3.0.3/src/js/tests/unit/modal.js +196 -0
  199. data/upstream/bootstrap/3.0.3/src/js/tests/unit/phantom.js +69 -0
  200. data/upstream/bootstrap/3.0.3/src/js/tests/unit/popover.js +133 -0
  201. data/upstream/bootstrap/3.0.3/src/js/tests/unit/scrollspy.js +37 -0
  202. data/upstream/bootstrap/3.0.3/src/js/tests/unit/tab.js +86 -0
  203. data/upstream/bootstrap/3.0.3/src/js/tests/unit/tooltip.js +437 -0
  204. data/upstream/bootstrap/3.0.3/src/js/tests/unit/transition.js +13 -0
  205. data/upstream/bootstrap/3.0.3/src/js/tests/vendor/jquery.js +6 -0
  206. data/upstream/bootstrap/3.0.3/src/js/tests/vendor/qunit.css +232 -0
  207. data/upstream/bootstrap/3.0.3/src/js/tests/vendor/qunit.js +1510 -0
  208. data/upstream/bootstrap/3.0.3/src/js/tooltip.js +386 -0
  209. data/upstream/bootstrap/3.0.3/src/js/transition.js +56 -0
  210. data/upstream/bootstrap/3.0.3/src/less/alerts.less +67 -0
  211. data/upstream/bootstrap/3.0.3/src/less/badges.less +51 -0
  212. data/upstream/bootstrap/3.0.3/src/less/bootstrap.less +49 -0
  213. data/upstream/bootstrap/3.0.3/src/less/breadcrumbs.less +23 -0
  214. data/upstream/bootstrap/3.0.3/src/less/button-groups.less +227 -0
  215. data/upstream/bootstrap/3.0.3/src/less/buttons.less +155 -0
  216. data/upstream/bootstrap/3.0.3/src/less/carousel.less +232 -0
  217. data/upstream/bootstrap/3.0.3/src/less/close.less +33 -0
  218. data/upstream/bootstrap/3.0.3/src/less/code.less +53 -0
  219. data/upstream/bootstrap/3.0.3/src/less/component-animations.less +29 -0
  220. data/upstream/bootstrap/3.0.3/src/less/dropdowns.less +187 -0
  221. data/upstream/bootstrap/3.0.3/src/less/forms.less +375 -0
  222. data/upstream/bootstrap/3.0.3/src/less/glyphicons.less +237 -0
  223. data/upstream/bootstrap/3.0.3/src/less/grid.less +79 -0
  224. data/upstream/bootstrap/3.0.3/src/less/input-groups.less +136 -0
  225. data/upstream/bootstrap/3.0.3/src/less/jumbotron.less +46 -0
  226. data/upstream/bootstrap/3.0.3/src/less/labels.less +64 -0
  227. data/upstream/bootstrap/3.0.3/src/less/list-group.less +88 -0
  228. data/upstream/bootstrap/3.0.3/src/less/media.less +56 -0
  229. data/upstream/bootstrap/3.0.3/src/less/mixins.less +845 -0
  230. data/upstream/bootstrap/3.0.3/src/less/modals.less +129 -0
  231. data/upstream/bootstrap/3.0.3/src/less/navbar.less +612 -0
  232. data/upstream/bootstrap/3.0.3/src/less/navs.less +242 -0
  233. data/upstream/bootstrap/3.0.3/src/less/normalize.less +406 -0
  234. data/upstream/bootstrap/3.0.3/src/less/pager.less +55 -0
  235. data/upstream/bootstrap/3.0.3/src/less/pagination.less +85 -0
  236. data/upstream/bootstrap/3.0.3/src/less/panels.less +182 -0
  237. data/upstream/bootstrap/3.0.3/src/less/popovers.less +133 -0
  238. data/upstream/bootstrap/3.0.3/src/less/print.less +105 -0
  239. data/upstream/bootstrap/3.0.3/src/less/progress-bars.less +80 -0
  240. data/upstream/bootstrap/3.0.3/src/less/responsive-utilities.less +209 -0
  241. data/upstream/bootstrap/3.0.3/src/less/scaffolding.less +119 -0
  242. data/upstream/bootstrap/3.0.3/src/less/tables.less +231 -0
  243. data/upstream/bootstrap/3.0.3/src/less/theme.less +247 -0
  244. data/upstream/bootstrap/3.0.3/src/less/thumbnails.less +36 -0
  245. data/upstream/bootstrap/3.0.3/src/less/tooltip.less +95 -0
  246. data/upstream/bootstrap/3.0.3/src/less/type.less +281 -0
  247. data/upstream/bootstrap/3.0.3/src/less/utilities.less +56 -0
  248. data/upstream/bootstrap/3.0.3/src/less/variables.less +642 -0
  249. data/upstream/bootstrap/3.0.3/src/less/wells.less +29 -0
  250. data/upstream/bootstrap/3.0.3/src/package.json +51 -0
  251. data/upstream/bootstrap/3.0.3/stylesheets/bootstrap-theme.css +397 -0
  252. data/upstream/bootstrap/3.0.3/stylesheets/bootstrap-theme.min.css +7 -0
  253. data/upstream/bootstrap/3.0.3/stylesheets/bootstrap.css +7118 -0
  254. data/upstream/bootstrap/3.0.3/stylesheets/bootstrap.min.css +7 -0
  255. data/upstream/font-awesome-4.0.3.zip +0 -0
  256. data/upstream/font-awesome/4.0.3/fonts/FontAwesome.otf +0 -0
  257. data/upstream/font-awesome/4.0.3/fonts/fontawesome-webfont.eot +0 -0
  258. data/upstream/font-awesome/4.0.3/fonts/fontawesome-webfont.svg +414 -0
  259. data/upstream/font-awesome/4.0.3/fonts/fontawesome-webfont.ttf +0 -0
  260. data/upstream/font-awesome/4.0.3/fonts/fontawesome-webfont.woff +0 -0
  261. data/upstream/font-awesome/4.0.3/stylesheets/font-awesome.css +1338 -0
  262. data/upstream/font-awesome/4.0.3/stylesheets/font-awesome.min.css +4 -0
  263. data/upstream/font-awesome/4.0.3/stylesheets/less/bordered-pulled.less +16 -0
  264. data/upstream/font-awesome/4.0.3/stylesheets/less/core.less +12 -0
  265. data/upstream/font-awesome/4.0.3/stylesheets/less/fixed-width.less +6 -0
  266. data/upstream/font-awesome/4.0.3/stylesheets/less/font-awesome.less +17 -0
  267. data/upstream/font-awesome/4.0.3/stylesheets/less/icons.less +412 -0
  268. data/upstream/font-awesome/4.0.3/stylesheets/less/larger.less +13 -0
  269. data/upstream/font-awesome/4.0.3/stylesheets/less/list.less +19 -0
  270. data/upstream/font-awesome/4.0.3/stylesheets/less/mixins.less +20 -0
  271. data/upstream/font-awesome/4.0.3/stylesheets/less/path.less +14 -0
  272. data/upstream/font-awesome/4.0.3/stylesheets/less/rotated-flipped.less +9 -0
  273. data/upstream/font-awesome/4.0.3/stylesheets/less/spinning.less +30 -0
  274. data/upstream/font-awesome/4.0.3/stylesheets/less/stacked.less +20 -0
  275. data/upstream/font-awesome/4.0.3/stylesheets/less/variables.less +381 -0
  276. data/upstream/font-awesome/4.0.3/stylesheets/scss/_bordered-pulled.scss +16 -0
  277. data/upstream/font-awesome/4.0.3/stylesheets/scss/_core.scss +12 -0
  278. data/upstream/font-awesome/4.0.3/stylesheets/scss/_fixed-width.scss +6 -0
  279. data/upstream/font-awesome/4.0.3/stylesheets/scss/_icons.scss +412 -0
  280. data/upstream/font-awesome/4.0.3/stylesheets/scss/_larger.scss +13 -0
  281. data/upstream/font-awesome/4.0.3/stylesheets/scss/_list.scss +19 -0
  282. data/upstream/font-awesome/4.0.3/stylesheets/scss/_mixins.scss +20 -0
  283. data/upstream/font-awesome/4.0.3/stylesheets/scss/_path.scss +14 -0
  284. data/upstream/font-awesome/4.0.3/stylesheets/scss/_rotated-flipped.scss +9 -0
  285. data/upstream/font-awesome/4.0.3/stylesheets/scss/_spinning.scss +30 -0
  286. data/upstream/font-awesome/4.0.3/stylesheets/scss/_stacked.scss +20 -0
  287. data/upstream/font-awesome/4.0.3/stylesheets/scss/_variables.scss +381 -0
  288. data/upstream/font-awesome/4.0.3/stylesheets/scss/font-awesome.scss +17 -0
  289. metadata +505 -0
@@ -0,0 +1,25 @@
1
+ $(function () {
2
+
3
+ module("affix")
4
+
5
+ test("should provide no conflict", function () {
6
+ var affix = $.fn.affix.noConflict()
7
+ ok(!$.fn.affix, 'affix was set back to undefined (org value)')
8
+ $.fn.affix = affix
9
+ })
10
+
11
+ test("should be defined on jquery object", function () {
12
+ ok($(document.body).affix, 'affix method is defined')
13
+ })
14
+
15
+ test("should return element", function () {
16
+ ok($(document.body).affix()[0] == document.body, 'document.body returned')
17
+ })
18
+
19
+ test("should exit early if element is not visible", function () {
20
+ var $affix = $('<div style="display: none"></div>').affix()
21
+ $affix.data('bs.affix').checkPosition()
22
+ ok(!$affix.hasClass('affix'), 'affix class was not added')
23
+ })
24
+
25
+ })
@@ -0,0 +1,62 @@
1
+ $(function () {
2
+
3
+ module("alert")
4
+
5
+ test("should provide no conflict", function () {
6
+ var alert = $.fn.alert.noConflict()
7
+ ok(!$.fn.alert, 'alert was set back to undefined (org value)')
8
+ $.fn.alert = alert
9
+ })
10
+
11
+ test("should be defined on jquery object", function () {
12
+ ok($(document.body).alert, 'alert method is defined')
13
+ })
14
+
15
+ test("should return element", function () {
16
+ ok($(document.body).alert()[0] == document.body, 'document.body returned')
17
+ })
18
+
19
+ test("should fade element out on clicking .close", function () {
20
+ var alertHTML = '<div class="alert-message warning fade in">'
21
+ + '<a class="close" href="#" data-dismiss="alert">×</a>'
22
+ + '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
23
+ + '</div>'
24
+ , alert = $(alertHTML).alert()
25
+
26
+ alert.find('.close').click()
27
+
28
+ ok(!alert.hasClass('in'), 'remove .in class on .close click')
29
+ })
30
+
31
+ test("should remove element when clicking .close", function () {
32
+ $.support.transition = false
33
+
34
+ var alertHTML = '<div class="alert-message warning fade in">'
35
+ + '<a class="close" href="#" data-dismiss="alert">×</a>'
36
+ + '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
37
+ + '</div>'
38
+ , alert = $(alertHTML).appendTo('#qunit-fixture').alert()
39
+
40
+ ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom')
41
+
42
+ alert.find('.close').click()
43
+
44
+ ok(!$('#qunit-fixture').find('.alert-message').length, 'element removed from dom')
45
+ })
46
+
47
+ test("should not fire closed when close is prevented", function () {
48
+ $.support.transition = false
49
+ stop();
50
+ $('<div class="alert"/>')
51
+ .on('close.bs.alert', function (e) {
52
+ e.preventDefault();
53
+ ok(true);
54
+ start();
55
+ })
56
+ .on('closed.bs.alert', function () {
57
+ ok(false);
58
+ })
59
+ .alert('close')
60
+ })
61
+
62
+ })
@@ -0,0 +1,122 @@
1
+ $(function () {
2
+
3
+ module("button")
4
+
5
+ test("should provide no conflict", function () {
6
+ var button = $.fn.button.noConflict()
7
+ ok(!$.fn.button, 'button was set back to undefined (org value)')
8
+ $.fn.button = button
9
+ })
10
+
11
+ test("should be defined on jquery object", function () {
12
+ ok($(document.body).button, 'button method is defined')
13
+ })
14
+
15
+ test("should return element", function () {
16
+ ok($(document.body).button()[0] == document.body, 'document.body returned')
17
+ })
18
+
19
+ test("should return set state to loading", function () {
20
+ var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
21
+ equal(btn.html(), 'mdo', 'btn text equals mdo')
22
+ btn.button('loading')
23
+ equal(btn.html(), 'fat', 'btn text equals fat')
24
+ stop()
25
+ setTimeout(function () {
26
+ ok(btn.attr('disabled'), 'btn is disabled')
27
+ ok(btn.hasClass('disabled'), 'btn has disabled class')
28
+ start()
29
+ }, 0)
30
+ })
31
+
32
+ test("should return reset state", function () {
33
+ var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
34
+ equal(btn.html(), 'mdo', 'btn text equals mdo')
35
+ btn.button('loading')
36
+ equal(btn.html(), 'fat', 'btn text equals fat')
37
+ stop()
38
+ setTimeout(function () {
39
+ ok(btn.attr('disabled'), 'btn is disabled')
40
+ ok(btn.hasClass('disabled'), 'btn has disabled class')
41
+ start()
42
+ stop()
43
+ btn.button('reset')
44
+ equal(btn.html(), 'mdo', 'btn text equals mdo')
45
+ setTimeout(function () {
46
+ ok(!btn.attr('disabled'), 'btn is not disabled')
47
+ ok(!btn.hasClass('disabled'), 'btn does not have disabled class')
48
+ start()
49
+ }, 0)
50
+ }, 0)
51
+
52
+ })
53
+
54
+ test("should toggle active", function () {
55
+ var btn = $('<button class="btn">mdo</button>')
56
+ ok(!btn.hasClass('active'), 'btn does not have active class')
57
+ btn.button('toggle')
58
+ ok(btn.hasClass('active'), 'btn has class active')
59
+ })
60
+
61
+ test("should toggle active when btn children are clicked", function () {
62
+ var btn = $('<button class="btn" data-toggle="button">mdo</button>')
63
+ , inner = $('<i></i>')
64
+ btn
65
+ .append(inner)
66
+ .appendTo($('#qunit-fixture'))
67
+ ok(!btn.hasClass('active'), 'btn does not have active class')
68
+ inner.click()
69
+ ok(btn.hasClass('active'), 'btn has class active')
70
+ })
71
+
72
+ test("should toggle active when btn children are clicked within btn-group", function () {
73
+ var btngroup = $('<div class="btn-group" data-toggle="buttons"></div>')
74
+ , btn = $('<button class="btn">fat</button>')
75
+ , inner = $('<i></i>')
76
+ btngroup
77
+ .append(btn.append(inner))
78
+ .appendTo($('#qunit-fixture'))
79
+ ok(!btn.hasClass('active'), 'btn does not have active class')
80
+ inner.click()
81
+ ok(btn.hasClass('active'), 'btn has class active')
82
+ })
83
+
84
+ test("should check for closest matching toggle", function () {
85
+ var group = '<div class="btn-group" data-toggle="buttons">' +
86
+ '<label class="btn btn-primary active">' +
87
+ '<input type="radio" name="options" id="option1" checked="true"> Option 1' +
88
+ '</label>' +
89
+ '<label class="btn btn-primary">' +
90
+ '<input type="radio" name="options" id="option2"> Option 2' +
91
+ '</label>' +
92
+ '<label class="btn btn-primary">' +
93
+ '<input type="radio" name="options" id="option3"> Option 3' +
94
+ '</label>' +
95
+ '</div>'
96
+
97
+ group = $(group)
98
+
99
+ var btn1 = $(group.children()[0])
100
+ var btn2 = $(group.children()[1])
101
+ var btn3 = $(group.children()[2])
102
+
103
+ group.appendTo($('#qunit-fixture'))
104
+
105
+ ok(btn1.hasClass('active'), 'btn1 has active class')
106
+ ok(btn1.find('input').prop('checked'), 'btn1 is checked')
107
+ ok(!btn2.hasClass('active'), 'btn2 does not have active class')
108
+ ok(!btn2.find('input').prop('checked'), 'btn2 is not checked')
109
+ btn2.find('input').click()
110
+ ok(!btn1.hasClass('active'), 'btn1 does not have active class')
111
+ ok(!btn1.find('input').prop('checked'), 'btn1 is checked')
112
+ ok(btn2.hasClass('active'), 'btn2 has active class')
113
+ ok(btn2.find('input').prop('checked'), 'btn2 is checked')
114
+
115
+ btn2.find('input').click() /* clicking an already checked radio should not un-check it */
116
+ ok(!btn1.hasClass('active'), 'btn1 does not have active class')
117
+ ok(!btn1.find('input').prop('checked'), 'btn1 is checked')
118
+ ok(btn2.hasClass('active'), 'btn2 has active class')
119
+ ok(btn2.find('input').prop('checked'), 'btn2 is checked')
120
+ })
121
+
122
+ })
@@ -0,0 +1,87 @@
1
+ $(function () {
2
+
3
+ module("carousel")
4
+
5
+ test("should provide no conflict", function () {
6
+ var carousel = $.fn.carousel.noConflict()
7
+ ok(!$.fn.carousel, 'carousel was set back to undefined (org value)')
8
+ $.fn.carousel = carousel
9
+ })
10
+
11
+ test("should be defined on jquery object", function () {
12
+ ok($(document.body).carousel, 'carousel method is defined')
13
+ })
14
+
15
+ test("should return element", function () {
16
+ ok($(document.body).carousel()[0] == document.body, 'document.body returned')
17
+ })
18
+
19
+ test("should not fire sliden when slide is prevented", function () {
20
+ $.support.transition = false
21
+ stop()
22
+ $('<div class="carousel"/>')
23
+ .on('slide.bs.carousel', function (e) {
24
+ e.preventDefault();
25
+ ok(true);
26
+ start();
27
+ })
28
+ .on('slid.bs.carousel', function () {
29
+ ok(false);
30
+ })
31
+ .carousel('next')
32
+ })
33
+
34
+ test("should fire slide event with direction", function () {
35
+ var template = '<div id="myCarousel" class="carousel slide"><div class="carousel-inner"><div class="item active"><img alt=""><div class="carousel-caption"><h4>{{_i}}First Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Second Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Third Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div></div><a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a><a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a></div>'
36
+ $.support.transition = false
37
+ stop()
38
+ $(template).on('slide.bs.carousel', function (e) {
39
+ e.preventDefault()
40
+ ok(e.direction)
41
+ ok(e.direction === 'right' || e.direction === 'left')
42
+ start()
43
+ }).carousel('next')
44
+ })
45
+
46
+ test("should fire slide event with relatedTarget", function () {
47
+ var template = '<div id="myCarousel" class="carousel slide"><div class="carousel-inner"><div class="item active"><img alt=""><div class="carousel-caption"><h4>{{_i}}First Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Second Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Third Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div></div><a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a><a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a></div>'
48
+ $.support.transition = false
49
+ stop()
50
+ $(template)
51
+ .on('slide.bs.carousel', function (e) {
52
+ e.preventDefault();
53
+ ok(e.relatedTarget);
54
+ ok($(e.relatedTarget).hasClass('item'));
55
+ start();
56
+ })
57
+ .carousel('next')
58
+ })
59
+
60
+ test("should set interval from data attribute", 4, function () {
61
+ var template = $('<div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> <div class="item active"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}First Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> <div class="item"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}Second Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> <div class="item"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}Third Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a> <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a> </div>');
62
+ template.attr("data-interval", 1814);
63
+
64
+ template.appendTo("body");
65
+ $('[data-slide]').first().click();
66
+ ok($('#myCarousel').data('bs.carousel').options.interval == 1814);
67
+ $('#myCarousel').remove();
68
+
69
+ template.appendTo("body").attr("data-modal", "foobar");
70
+ $('[data-slide]').first().click();
71
+ ok($('#myCarousel').data('bs.carousel').options.interval == 1814, "even if there is an data-modal attribute set");
72
+ $('#myCarousel').remove();
73
+
74
+ template.appendTo("body");
75
+ $('[data-slide]').first().click();
76
+ $('#myCarousel').attr('data-interval', 1860);
77
+ $('[data-slide]').first().click();
78
+ ok($('#myCarousel').data('bs.carousel').options.interval == 1814, "attributes should be read only on intitialization");
79
+ $('#myCarousel').remove();
80
+
81
+ template.attr("data-interval", false);
82
+ template.appendTo("body");
83
+ $('#myCarousel').carousel(1);
84
+ ok($('#myCarousel').data('bs.carousel').options.interval === false, "data attribute has higher priority than default options");
85
+ $('#myCarousel').remove();
86
+ })
87
+ })
@@ -0,0 +1,164 @@
1
+ $(function () {
2
+
3
+ module("collapse")
4
+
5
+ test("should provide no conflict", function () {
6
+ var collapse = $.fn.collapse.noConflict()
7
+ ok(!$.fn.collapse, 'collapse was set back to undefined (org value)')
8
+ $.fn.collapse = collapse
9
+ })
10
+
11
+ test("should be defined on jquery object", function () {
12
+ ok($(document.body).collapse, 'collapse method is defined')
13
+ })
14
+
15
+ test("should return element", function () {
16
+ ok($(document.body).collapse()[0] == document.body, 'document.body returned')
17
+ })
18
+
19
+ test("should show a collapsed element", function () {
20
+ var el = $('<div class="collapse"></div>').collapse('show')
21
+ ok(el.hasClass('in'), 'has class in')
22
+ ok(/height/.test(el.attr('style')), 'has height set')
23
+ })
24
+
25
+ test("should hide a collapsed element", function () {
26
+ var el = $('<div class="collapse"></div>').collapse('hide')
27
+ ok(!el.hasClass('in'), 'does not have class in')
28
+ ok(/height/.test(el.attr('style')), 'has height set')
29
+ })
30
+
31
+ test("should not fire shown when show is prevented", function () {
32
+ $.support.transition = false
33
+ stop()
34
+ $('<div class="collapse"/>')
35
+ .on('show.bs.collapse', function (e) {
36
+ e.preventDefault();
37
+ ok(true);
38
+ start();
39
+ })
40
+ .on('shown.bs.collapse', function () {
41
+ ok(false);
42
+ })
43
+ .collapse('show')
44
+ })
45
+
46
+ test("should reset style to auto after finishing opening collapse", function () {
47
+ $.support.transition = false
48
+ stop()
49
+ $('<div class="collapse" style="height: 0px"/>')
50
+ .on('show.bs.collapse', function () {
51
+ ok(this.style.height == '0px')
52
+ })
53
+ .on('shown.bs.collapse', function () {
54
+ ok(this.style.height == 'auto')
55
+ start()
56
+ })
57
+ .collapse('show')
58
+ })
59
+
60
+ test("should add active class to target when collapse shown", function () {
61
+ $.support.transition = false
62
+ stop()
63
+
64
+ var target = $('<a data-toggle="collapse" href="#test1"></a>')
65
+ .appendTo($('#qunit-fixture'))
66
+
67
+ var collapsible = $('<div id="test1"></div>')
68
+ .appendTo($('#qunit-fixture'))
69
+ .on('show.bs.collapse', function () {
70
+ ok(!target.hasClass('collapsed'))
71
+ start()
72
+ })
73
+
74
+ target.click()
75
+ })
76
+
77
+ test("should remove active class to target when collapse hidden", function () {
78
+ $.support.transition = false
79
+ stop()
80
+
81
+ var target = $('<a data-toggle="collapse" href="#test1"></a>')
82
+ .appendTo($('#qunit-fixture'))
83
+
84
+ var collapsible = $('<div id="test1" class="in"></div>')
85
+ .appendTo($('#qunit-fixture'))
86
+ .on('hide.bs.collapse', function () {
87
+ ok(target.hasClass('collapsed'))
88
+ start()
89
+ })
90
+
91
+ target.click()
92
+ })
93
+
94
+ test("should remove active class from inactive accordion targets", function () {
95
+ $.support.transition = false
96
+ stop()
97
+
98
+ var accordion = $('<div id="accordion"><div class="accordion-group"></div><div class="accordion-group"></div><div class="accordion-group"></div></div>')
99
+ .appendTo($('#qunit-fixture'))
100
+
101
+ var target1 = $('<a data-toggle="collapse" href="#body1" data-parent="#accordion"></a>')
102
+ .appendTo(accordion.find('.accordion-group').eq(0))
103
+
104
+ var collapsible1 = $('<div id="body1" class="in"></div>')
105
+ .appendTo(accordion.find('.accordion-group').eq(0))
106
+
107
+ var target2 = $('<a class="collapsed" data-toggle="collapse" href="#body2" data-parent="#accordion"></a>')
108
+ .appendTo(accordion.find('.accordion-group').eq(1))
109
+
110
+ var collapsible2 = $('<div id="body2"></div>')
111
+ .appendTo(accordion.find('.accordion-group').eq(1))
112
+
113
+ var target3 = $('<a class="collapsed" data-toggle="collapse" href="#body3" data-parent="#accordion"></a>')
114
+ .appendTo(accordion.find('.accordion-group').eq(2))
115
+
116
+ var collapsible3 = $('<div id="body3"></div>')
117
+ .appendTo(accordion.find('.accordion-group').eq(2))
118
+ .on('show.bs.collapse', function () {
119
+ ok(target1.hasClass('collapsed'))
120
+ ok(target2.hasClass('collapsed'))
121
+ ok(!target3.hasClass('collapsed'))
122
+
123
+ start()
124
+ })
125
+
126
+ target3.click()
127
+ })
128
+
129
+ test("should allow dots in data-parent", function () {
130
+ $.support.transition = false
131
+ stop()
132
+
133
+ var accordion = $('<div class="accordion"><div class="accordion-group"></div><div class="accordion-group"></div><div class="accordion-group"></div></div>')
134
+ .appendTo($('#qunit-fixture'))
135
+
136
+ var target1 = $('<a data-toggle="collapse" href="#body1" data-parent=".accordion"></a>')
137
+ .appendTo(accordion.find('.accordion-group').eq(0))
138
+
139
+ var collapsible1 = $('<div id="body1" class="in"></div>')
140
+ .appendTo(accordion.find('.accordion-group').eq(0))
141
+
142
+ var target2 = $('<a class="collapsed" data-toggle="collapse" href="#body2" data-parent=".accordion"></a>')
143
+ .appendTo(accordion.find('.accordion-group').eq(1))
144
+
145
+ var collapsible2 = $('<div id="body2"></div>')
146
+ .appendTo(accordion.find('.accordion-group').eq(1))
147
+
148
+ var target3 = $('<a class="collapsed" data-toggle="collapse" href="#body3" data-parent=".accordion"></a>')
149
+ .appendTo(accordion.find('.accordion-group').eq(2))
150
+
151
+ var collapsible3 = $('<div id="body3"></div>')
152
+ .appendTo(accordion.find('.accordion-group').eq(2))
153
+ .on('show.bs.collapse', function () {
154
+ ok(target1.hasClass('collapsed'))
155
+ ok(target2.hasClass('collapsed'))
156
+ ok(!target3.hasClass('collapsed'))
157
+
158
+ start()
159
+ })
160
+
161
+ target3.click()
162
+ })
163
+
164
+ })