sass-twitter-bootstrap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +14 -0
  4. data/LICENSE +176 -0
  5. data/Makefile +94 -0
  6. data/README.md +217 -0
  7. data/Rakefile +52 -0
  8. data/bootstrap-2.0.4.css +4661 -0
  9. data/bootstrap-2.0.4.min.css +9 -0
  10. data/bootstrap-responsive-2.0.4.css +932 -0
  11. data/bootstrap-responsive-2.0.4.min.css +9 -0
  12. data/docs/assets/css/bootstrap-responsive.css +932 -0
  13. data/docs/assets/css/bootstrap.css +4661 -0
  14. data/docs/assets/css/docs.css +846 -0
  15. data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  16. data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  17. data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  18. data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  19. data/docs/assets/ico/favicon.ico +0 -0
  20. data/docs/assets/img/bird.png +0 -0
  21. data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  22. data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  23. data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  24. data/docs/assets/img/browsers.png +0 -0
  25. data/docs/assets/img/example-sites/fleetio.png +0 -0
  26. data/docs/assets/img/example-sites/jshint.png +0 -0
  27. data/docs/assets/img/example-sites/kippt.png +0 -0
  28. data/docs/assets/img/example-sites/soundready.png +0 -0
  29. data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  30. data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  31. data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  32. data/docs/assets/img/github-16px.png +0 -0
  33. data/docs/assets/img/glyphicons-halflings-white.png +0 -0
  34. data/docs/assets/img/glyphicons-halflings.png +0 -0
  35. data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  36. data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  37. data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  38. data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  39. data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  40. data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  41. data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  42. data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  43. data/docs/assets/img/grid-18px-masked.png +0 -0
  44. data/docs/assets/img/icon-css3.png +0 -0
  45. data/docs/assets/img/icon-github.png +0 -0
  46. data/docs/assets/img/icon-html5.png +0 -0
  47. data/docs/assets/img/icon-twitter.png +0 -0
  48. data/docs/assets/img/less-logo-large.png +0 -0
  49. data/docs/assets/img/less-small.png +0 -0
  50. data/docs/assets/img/responsive-illustrations.png +0 -0
  51. data/docs/assets/js/README.md +106 -0
  52. data/docs/assets/js/application.js +184 -0
  53. data/docs/assets/js/bootstrap-alert.js +90 -0
  54. data/docs/assets/js/bootstrap-button.js +96 -0
  55. data/docs/assets/js/bootstrap-carousel.js +169 -0
  56. data/docs/assets/js/bootstrap-collapse.js +157 -0
  57. data/docs/assets/js/bootstrap-dropdown.js +100 -0
  58. data/docs/assets/js/bootstrap-modal.js +218 -0
  59. data/docs/assets/js/bootstrap-popover.js +98 -0
  60. data/docs/assets/js/bootstrap-scrollspy.js +151 -0
  61. data/docs/assets/js/bootstrap-tab.js +135 -0
  62. data/docs/assets/js/bootstrap-tooltip.js +275 -0
  63. data/docs/assets/js/bootstrap-transition.js +61 -0
  64. data/docs/assets/js/bootstrap-typeahead.js +285 -0
  65. data/docs/assets/js/bootstrap.js +1825 -0
  66. data/docs/assets/js/bootstrap.min.js +6 -0
  67. data/docs/assets/js/google-code-prettify/prettify.css +30 -0
  68. data/docs/assets/js/google-code-prettify/prettify.js +28 -0
  69. data/docs/assets/js/jquery.js +9252 -0
  70. data/docs/base-css.html +1710 -0
  71. data/docs/build/index.js +44 -0
  72. data/docs/build/node_modules/.bin/hulk +93 -0
  73. data/docs/build/node_modules/hogan.js/.git_ignore +1 -0
  74. data/docs/build/node_modules/hogan.js/.gitmodules +3 -0
  75. data/docs/build/node_modules/hogan.js/LICENSE +177 -0
  76. data/docs/build/node_modules/hogan.js/Makefile +62 -0
  77. data/docs/build/node_modules/hogan.js/README.md +93 -0
  78. data/docs/build/node_modules/hogan.js/bin/hulk +93 -0
  79. data/docs/build/node_modules/hogan.js/lib/compiler.js +348 -0
  80. data/docs/build/node_modules/hogan.js/lib/hogan.js +20 -0
  81. data/docs/build/node_modules/hogan.js/lib/template.js +233 -0
  82. data/docs/build/node_modules/hogan.js/package.json +20 -0
  83. data/docs/build/node_modules/hogan.js/test/html/list.html +8 -0
  84. data/docs/build/node_modules/hogan.js/test/index.html +13 -0
  85. data/docs/build/node_modules/hogan.js/test/index.js +848 -0
  86. data/docs/build/node_modules/hogan.js/test/mustache.js +90 -0
  87. data/docs/build/node_modules/hogan.js/test/spec.js +77 -0
  88. data/docs/build/node_modules/hogan.js/test/spec/Changes +31 -0
  89. data/docs/build/node_modules/hogan.js/test/spec/README.md +65 -0
  90. data/docs/build/node_modules/hogan.js/test/spec/Rakefile +27 -0
  91. data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +46 -0
  92. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +1 -0
  93. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +103 -0
  94. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +1 -0
  95. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +158 -0
  96. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +1 -0
  97. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +230 -0
  98. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +1 -0
  99. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +193 -0
  100. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +1 -0
  101. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +109 -0
  102. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +1 -0
  103. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +256 -0
  104. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +1 -0
  105. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +149 -0
  106. data/docs/build/node_modules/hogan.js/test/templates/list.mustache +8 -0
  107. data/docs/build/node_modules/hogan.js/tools/release.js +74 -0
  108. data/docs/build/node_modules/hogan.js/tools/web_templates.js +32 -0
  109. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +500 -0
  110. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +14 -0
  111. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +500 -0
  112. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +14 -0
  113. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +545 -0
  114. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +5 -0
  115. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +576 -0
  116. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +576 -0
  117. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +572 -0
  118. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +5 -0
  119. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +5 -0
  120. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +5 -0
  121. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +5 -0
  122. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +619 -0
  123. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +233 -0
  124. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +5 -0
  125. data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  126. data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  127. data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  128. data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  129. data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  130. data/docs/build/node_modules/hogan.js/web/index.html.mustache +139 -0
  131. data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +206 -0
  132. data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +236 -0
  133. data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +21 -0
  134. data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +21 -0
  135. data/docs/build/node_modules/hogan.js/wrappers/js.mustache +17 -0
  136. data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +64 -0
  137. data/docs/build/package.json +6 -0
  138. data/docs/components.html +1931 -0
  139. data/docs/download.html +454 -0
  140. data/docs/examples.html +147 -0
  141. data/docs/examples/fluid.html +162 -0
  142. data/docs/examples/hero.html +109 -0
  143. data/docs/examples/starter-template.html +79 -0
  144. data/docs/index.html +259 -0
  145. data/docs/javascript.html +1520 -0
  146. data/docs/less.html +1060 -0
  147. data/docs/scaffolding.html +671 -0
  148. data/docs/templates/layout.mustache +146 -0
  149. data/docs/templates/pages/base-css.mustache +1594 -0
  150. data/docs/templates/pages/components.mustache +1815 -0
  151. data/docs/templates/pages/download.mustache +338 -0
  152. data/docs/templates/pages/examples.mustache +31 -0
  153. data/docs/templates/pages/index.mustache +144 -0
  154. data/docs/templates/pages/javascript.mustache +1405 -0
  155. data/docs/templates/pages/less.mustache +944 -0
  156. data/docs/templates/pages/scaffolding.mustache +555 -0
  157. data/docs/templates/pages/upgrading.mustache +194 -0
  158. data/docs/upgrading.html +310 -0
  159. data/js/tests/index.html +54 -0
  160. data/js/tests/phantom.js +63 -0
  161. data/js/tests/server.js +14 -0
  162. data/js/tests/unit/bootstrap-alert.js +56 -0
  163. data/js/tests/unit/bootstrap-button.js +77 -0
  164. data/js/tests/unit/bootstrap-carousel.js +28 -0
  165. data/js/tests/unit/bootstrap-collapse.js +54 -0
  166. data/js/tests/unit/bootstrap-dropdown.js +87 -0
  167. data/js/tests/unit/bootstrap-modal.js +114 -0
  168. data/js/tests/unit/bootstrap-phantom.js +21 -0
  169. data/js/tests/unit/bootstrap-popover.js +93 -0
  170. data/js/tests/unit/bootstrap-scrollspy.js +31 -0
  171. data/js/tests/unit/bootstrap-tab.js +61 -0
  172. data/js/tests/unit/bootstrap-tooltip.js +155 -0
  173. data/js/tests/unit/bootstrap-transition.js +13 -0
  174. data/js/tests/unit/bootstrap-typeahead.js +148 -0
  175. data/js/tests/vendor/jquery.js +9252 -0
  176. data/js/tests/vendor/qunit.css +232 -0
  177. data/js/tests/vendor/qunit.js +1510 -0
  178. data/lib/sass-twitter-bootstrap.rb +9 -0
  179. data/lib/sass/twitter/bootstrap/rails.rb +14 -0
  180. data/lib/sass/twitter/bootstrap/version.rb +7 -0
  181. data/package.json +25 -0
  182. data/sass-twitter-bootstrap.gemspec +19 -0
  183. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  184. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  185. data/vendor/assets/javascripts/README.md +112 -0
  186. data/vendor/assets/javascripts/twitter/bootstrap-alert.js +90 -0
  187. data/vendor/assets/javascripts/twitter/bootstrap-button.js +96 -0
  188. data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +169 -0
  189. data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +157 -0
  190. data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +100 -0
  191. data/vendor/assets/javascripts/twitter/bootstrap-modal.js +218 -0
  192. data/vendor/assets/javascripts/twitter/bootstrap-popover.js +98 -0
  193. data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +151 -0
  194. data/vendor/assets/javascripts/twitter/bootstrap-tab.js +135 -0
  195. data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +275 -0
  196. data/vendor/assets/javascripts/twitter/bootstrap-transition.js +61 -0
  197. data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +285 -0
  198. data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
  199. data/vendor/assets/stylesheets/tests/css-tests.css +52 -0
  200. data/vendor/assets/stylesheets/tests/css-tests.html +917 -0
  201. data/vendor/assets/stylesheets/tests/forms.html +179 -0
  202. data/vendor/assets/stylesheets/tests/navbar.html +108 -0
  203. data/vendor/assets/stylesheets/twitter/_accordion.scss +33 -0
  204. data/vendor/assets/stylesheets/twitter/_alerts.scss +58 -0
  205. data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +24 -0
  206. data/vendor/assets/stylesheets/twitter/_button-groups.scss +191 -0
  207. data/vendor/assets/stylesheets/twitter/_buttons.scss +191 -0
  208. data/vendor/assets/stylesheets/twitter/_carousel.scss +121 -0
  209. data/vendor/assets/stylesheets/twitter/_close.scss +29 -0
  210. data/vendor/assets/stylesheets/twitter/_code.scss +57 -0
  211. data/vendor/assets/stylesheets/twitter/_component-animations.scss +20 -0
  212. data/vendor/assets/stylesheets/twitter/_dropdowns.scss +143 -0
  213. data/vendor/assets/stylesheets/twitter/_forms.scss +582 -0
  214. data/vendor/assets/stylesheets/twitter/_grid.scss +5 -0
  215. data/vendor/assets/stylesheets/twitter/_hero-unit.scss +22 -0
  216. data/vendor/assets/stylesheets/twitter/_labels-badges.scss +52 -0
  217. data/vendor/assets/stylesheets/twitter/_layouts.scss +17 -0
  218. data/vendor/assets/stylesheets/twitter/_mixins.scss +643 -0
  219. data/vendor/assets/stylesheets/twitter/_modals.scss +90 -0
  220. data/vendor/assets/stylesheets/twitter/_navbar.scss +358 -0
  221. data/vendor/assets/stylesheets/twitter/_navs.scss +363 -0
  222. data/vendor/assets/stylesheets/twitter/_pager.scss +36 -0
  223. data/vendor/assets/stylesheets/twitter/_pagination.scss +56 -0
  224. data/vendor/assets/stylesheets/twitter/_popovers.scss +49 -0
  225. data/vendor/assets/stylesheets/twitter/_progress-bars.scss +117 -0
  226. data/vendor/assets/stylesheets/twitter/_reset.scss +131 -0
  227. data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +26 -0
  228. data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +149 -0
  229. data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +17 -0
  230. data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +153 -0
  231. data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +41 -0
  232. data/vendor/assets/stylesheets/twitter/_scaffolding.scss +29 -0
  233. data/vendor/assets/stylesheets/twitter/_sprites.scss +191 -0
  234. data/vendor/assets/stylesheets/twitter/_tables.scss +155 -0
  235. data/vendor/assets/stylesheets/twitter/_thumbnails.scss +47 -0
  236. data/vendor/assets/stylesheets/twitter/_tooltip.scss +35 -0
  237. data/vendor/assets/stylesheets/twitter/_type.scss +232 -0
  238. data/vendor/assets/stylesheets/twitter/_utilities.scss +23 -0
  239. data/vendor/assets/stylesheets/twitter/_variables.scss +204 -0
  240. data/vendor/assets/stylesheets/twitter/_wells.scss +27 -0
  241. data/vendor/assets/stylesheets/twitter/bootstrap.scss +62 -0
  242. data/vendor/assets/stylesheets/twitter/responsive.scss +48 -0
  243. metadata +304 -0
@@ -0,0 +1,61 @@
1
+ /* ===================================================
2
+ * bootstrap-transition.js v2.0.4
3
+ * http://twitter.github.com/bootstrap/javascript.html#transitions
4
+ * ===================================================
5
+ * Copyright 2012 Twitter, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * ========================================================== */
19
+
20
+
21
+ !function ($) {
22
+
23
+ $(function () {
24
+
25
+ "use strict"; // jshint ;_;
26
+
27
+
28
+ /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
29
+ * ======================================================= */
30
+
31
+ $.support.transition = (function () {
32
+
33
+ var transitionEnd = (function () {
34
+
35
+ var el = document.createElement('bootstrap')
36
+ , transEndEventNames = {
37
+ 'WebkitTransition' : 'webkitTransitionEnd'
38
+ , 'MozTransition' : 'transitionend'
39
+ , 'OTransition' : 'oTransitionEnd'
40
+ , 'msTransition' : 'MSTransitionEnd'
41
+ , 'transition' : 'transitionend'
42
+ }
43
+ , name
44
+
45
+ for (name in transEndEventNames){
46
+ if (el.style[name] !== undefined) {
47
+ return transEndEventNames[name]
48
+ }
49
+ }
50
+
51
+ }())
52
+
53
+ return transitionEnd && {
54
+ end: transitionEnd
55
+ }
56
+
57
+ })()
58
+
59
+ })
60
+
61
+ }(window.jQuery);
@@ -0,0 +1,285 @@
1
+ /* =============================================================
2
+ * bootstrap-typeahead.js v2.0.4
3
+ * http://twitter.github.com/bootstrap/javascript.html#typeahead
4
+ * =============================================================
5
+ * Copyright 2012 Twitter, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * ============================================================ */
19
+
20
+
21
+ !function($){
22
+
23
+ "use strict"; // jshint ;_;
24
+
25
+
26
+ /* TYPEAHEAD PUBLIC CLASS DEFINITION
27
+ * ================================= */
28
+
29
+ var Typeahead = function (element, options) {
30
+ this.$element = $(element)
31
+ this.options = $.extend({}, $.fn.typeahead.defaults, options)
32
+ this.matcher = this.options.matcher || this.matcher
33
+ this.sorter = this.options.sorter || this.sorter
34
+ this.highlighter = this.options.highlighter || this.highlighter
35
+ this.updater = this.options.updater || this.updater
36
+ this.$menu = $(this.options.menu).appendTo('body')
37
+ this.source = this.options.source
38
+ this.shown = false
39
+ this.listen()
40
+ }
41
+
42
+ Typeahead.prototype = {
43
+
44
+ constructor: Typeahead
45
+
46
+ , select: function () {
47
+ var val = this.$menu.find('.active').attr('data-value')
48
+ this.$element
49
+ .val(this.updater(val))
50
+ .change()
51
+ return this.hide()
52
+ }
53
+
54
+ , updater: function (item) {
55
+ return item
56
+ }
57
+
58
+ , show: function () {
59
+ var pos = $.extend({}, this.$element.offset(), {
60
+ height: this.$element[0].offsetHeight
61
+ })
62
+
63
+ this.$menu.css({
64
+ top: pos.top + pos.height
65
+ , left: pos.left
66
+ })
67
+
68
+ this.$menu.show()
69
+ this.shown = true
70
+ return this
71
+ }
72
+
73
+ , hide: function () {
74
+ this.$menu.hide()
75
+ this.shown = false
76
+ return this
77
+ }
78
+
79
+ , lookup: function (event) {
80
+ var that = this
81
+ , items
82
+ , q
83
+
84
+ this.query = this.$element.val()
85
+
86
+ if (!this.query) {
87
+ return this.shown ? this.hide() : this
88
+ }
89
+
90
+ items = $.grep(this.source, function (item) {
91
+ return that.matcher(item)
92
+ })
93
+
94
+ items = this.sorter(items)
95
+
96
+ if (!items.length) {
97
+ return this.shown ? this.hide() : this
98
+ }
99
+
100
+ return this.render(items.slice(0, this.options.items)).show()
101
+ }
102
+
103
+ , matcher: function (item) {
104
+ return ~item.toLowerCase().indexOf(this.query.toLowerCase())
105
+ }
106
+
107
+ , sorter: function (items) {
108
+ var beginswith = []
109
+ , caseSensitive = []
110
+ , caseInsensitive = []
111
+ , item
112
+
113
+ while (item = items.shift()) {
114
+ if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item)
115
+ else if (~item.indexOf(this.query)) caseSensitive.push(item)
116
+ else caseInsensitive.push(item)
117
+ }
118
+
119
+ return beginswith.concat(caseSensitive, caseInsensitive)
120
+ }
121
+
122
+ , highlighter: function (item) {
123
+ var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')
124
+ return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
125
+ return '<strong>' + match + '</strong>'
126
+ })
127
+ }
128
+
129
+ , render: function (items) {
130
+ var that = this
131
+
132
+ items = $(items).map(function (i, item) {
133
+ i = $(that.options.item).attr('data-value', item)
134
+ i.find('a').html(that.highlighter(item))
135
+ return i[0]
136
+ })
137
+
138
+ items.first().addClass('active')
139
+ this.$menu.html(items)
140
+ return this
141
+ }
142
+
143
+ , next: function (event) {
144
+ var active = this.$menu.find('.active').removeClass('active')
145
+ , next = active.next()
146
+
147
+ if (!next.length) {
148
+ next = $(this.$menu.find('li')[0])
149
+ }
150
+
151
+ next.addClass('active')
152
+ }
153
+
154
+ , prev: function (event) {
155
+ var active = this.$menu.find('.active').removeClass('active')
156
+ , prev = active.prev()
157
+
158
+ if (!prev.length) {
159
+ prev = this.$menu.find('li').last()
160
+ }
161
+
162
+ prev.addClass('active')
163
+ }
164
+
165
+ , listen: function () {
166
+ this.$element
167
+ .on('blur', $.proxy(this.blur, this))
168
+ .on('keypress', $.proxy(this.keypress, this))
169
+ .on('keyup', $.proxy(this.keyup, this))
170
+
171
+ if ($.browser.webkit || $.browser.msie) {
172
+ this.$element.on('keydown', $.proxy(this.keypress, this))
173
+ }
174
+
175
+ this.$menu
176
+ .on('click', $.proxy(this.click, this))
177
+ .on('mouseenter', 'li', $.proxy(this.mouseenter, this))
178
+ }
179
+
180
+ , keyup: function (e) {
181
+ switch(e.keyCode) {
182
+ case 40: // down arrow
183
+ case 38: // up arrow
184
+ break
185
+
186
+ case 9: // tab
187
+ case 13: // enter
188
+ if (!this.shown) return
189
+ this.select()
190
+ break
191
+
192
+ case 27: // escape
193
+ if (!this.shown) return
194
+ this.hide()
195
+ break
196
+
197
+ default:
198
+ this.lookup()
199
+ }
200
+
201
+ e.stopPropagation()
202
+ e.preventDefault()
203
+ }
204
+
205
+ , keypress: function (e) {
206
+ if (!this.shown) return
207
+
208
+ switch(e.keyCode) {
209
+ case 9: // tab
210
+ case 13: // enter
211
+ case 27: // escape
212
+ e.preventDefault()
213
+ break
214
+
215
+ case 38: // up arrow
216
+ if (e.type != 'keydown') break
217
+ e.preventDefault()
218
+ this.prev()
219
+ break
220
+
221
+ case 40: // down arrow
222
+ if (e.type != 'keydown') break
223
+ e.preventDefault()
224
+ this.next()
225
+ break
226
+ }
227
+
228
+ e.stopPropagation()
229
+ }
230
+
231
+ , blur: function (e) {
232
+ var that = this
233
+ setTimeout(function () { that.hide() }, 150)
234
+ }
235
+
236
+ , click: function (e) {
237
+ e.stopPropagation()
238
+ e.preventDefault()
239
+ this.select()
240
+ }
241
+
242
+ , mouseenter: function (e) {
243
+ this.$menu.find('.active').removeClass('active')
244
+ $(e.currentTarget).addClass('active')
245
+ }
246
+
247
+ }
248
+
249
+
250
+ /* TYPEAHEAD PLUGIN DEFINITION
251
+ * =========================== */
252
+
253
+ $.fn.typeahead = function (option) {
254
+ return this.each(function () {
255
+ var $this = $(this)
256
+ , data = $this.data('typeahead')
257
+ , options = typeof option == 'object' && option
258
+ if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
259
+ if (typeof option == 'string') data[option]()
260
+ })
261
+ }
262
+
263
+ $.fn.typeahead.defaults = {
264
+ source: []
265
+ , items: 8
266
+ , menu: '<ul class="typeahead dropdown-menu"></ul>'
267
+ , item: '<li><a href="#"></a></li>'
268
+ }
269
+
270
+ $.fn.typeahead.Constructor = Typeahead
271
+
272
+
273
+ /* TYPEAHEAD DATA-API
274
+ * ================== */
275
+
276
+ $(function () {
277
+ $('body').on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
278
+ var $this = $(this)
279
+ if ($this.data('typeahead')) return
280
+ e.preventDefault()
281
+ $this.typeahead($this.data())
282
+ })
283
+ })
284
+
285
+ }(window.jQuery);
@@ -0,0 +1,12 @@
1
+ //= require twitter/bootstrap-transition
2
+ //= require twitter/bootstrap-alert
3
+ //= require twitter/bootstrap-modal
4
+ //= require twitter/bootstrap-dropdown
5
+ //= require twitter/bootstrap-scrollspy
6
+ //= require twitter/bootstrap-tab
7
+ //= require twitter/bootstrap-tooltip
8
+ //= require twitter/bootstrap-popover
9
+ //= require twitter/bootstrap-button
10
+ //= require twitter/bootstrap-collapse
11
+ //= require twitter/bootstrap-carousel
12
+ //= require twitter/bootstrap-typeahead
@@ -0,0 +1,52 @@
1
+ /*!
2
+ * Bootstrap CSS Tests
3
+ */
4
+
5
+
6
+ /* Remove background image */
7
+ body {
8
+ background-image: none;
9
+ }
10
+
11
+ /* Space out subhead */
12
+ .subhead {
13
+ margin-bottom: 36px;
14
+ }
15
+ h4 {
16
+ margin-bottom: 5px;
17
+ }
18
+
19
+
20
+ /* colgroup tests */
21
+ .col1 {
22
+ background-color: rgba(255,0,0,.1);
23
+ }
24
+ .col2 {
25
+ background-color: rgba(0,255,0,.1);
26
+ }
27
+ .col3 {
28
+ background-color: rgba(0,0,255,.1);
29
+ }
30
+
31
+
32
+ /* Fluid row inputs */
33
+ #rowInputs .row > [class*=span],
34
+ #fluidRowInputs .row-fluid > [class*=span] {
35
+ background-color: rgba(255,0,0,.1);
36
+ }
37
+
38
+
39
+ /* Fluid grid */
40
+ .fluid-grid {
41
+ margin-bottom: 45px;
42
+ }
43
+ .fluid-grid .row {
44
+ height: 40px;
45
+ padding-top: 10px;
46
+ margin-top: 10px;
47
+ color: #ddd;
48
+ text-align: center;
49
+ }
50
+ .fluid-grid .span1 {
51
+ background-color: #999;
52
+ }
@@ -0,0 +1,917 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>CSS Tests · Twitter Bootstrap</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="">
8
+ <meta name="author" content="">
9
+
10
+ <!-- Le styles -->
11
+ <link href="../../docs/assets/css/bootstrap.css" rel="stylesheet">
12
+ <link href="../../docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
13
+ <link href="../../docs/assets/css/docs.css" rel="stylesheet">
14
+ <link href="../../docs/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
15
+
16
+ <!-- CSS just for the tests page -->
17
+ <link href="css-tests.css" rel="stylesheet">
18
+
19
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
20
+ <!--[if lt IE 9]>
21
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
+ <![endif]-->
23
+
24
+ <!-- Le fav and touch icons -->
25
+ <link rel="shortcut icon" href="../../docs/assets/ico/favicon.ico">
26
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../docs/assets/ico/apple-touch-icon-144-precomposed.png">
27
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../docs/assets/ico/apple-touch-icon-114-precomposed.png">
28
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../docs/assets/ico/apple-touch-icon-72-precomposed.png">
29
+ <link rel="apple-touch-icon-precomposed" href="../../docs/assets/ico/apple-touch-icon-57-precomposed.png">
30
+ </head>
31
+
32
+ <body>
33
+
34
+
35
+ <!-- Navbar
36
+ ================================================== -->
37
+ <div class="navbar navbar-fixed-top">
38
+ <div class="navbar-inner">
39
+ <div class="container">
40
+ <a class="brand" href="../../docs/index.html">Bootstrap</a>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+ <div class="container">
46
+
47
+
48
+ <!-- Masthead
49
+ ================================================== -->
50
+ <header class="jumbotron subhead" id="overview">
51
+ <h1>CSS Tests</h1>
52
+ <p class="lead">One stop shop for quick debugging and edge-case tests of CSS.</p>
53
+ </header>
54
+
55
+
56
+
57
+
58
+ <!-- Fluid grid
59
+ ================================================== -->
60
+
61
+ <div class="page-header">
62
+ <h1>Fluid grids</h1>
63
+ </div>
64
+
65
+ <div class="fluid-grid">
66
+ <div class="row">
67
+ <div class="span12">12
68
+ <div class="row-fluid">
69
+ <div class="span1">1</div>
70
+ <div class="span1">1</div>
71
+ <div class="span1">1</div>
72
+ <div class="span1">1</div>
73
+ <div class="span1">1</div>
74
+ <div class="span1">1</div>
75
+ <div class="span1">1</div>
76
+ <div class="span1">1</div>
77
+ <div class="span1">1</div>
78
+ <div class="span1">1</div>
79
+ <div class="span1">1</div>
80
+ <div class="span1">1</div>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ <div class="row">
85
+ <div class="span11">11
86
+ <div class="row-fluid">
87
+ <div class="span1">1</div>
88
+ <div class="span1">1</div>
89
+ <div class="span1">1</div>
90
+ <div class="span1">1</div>
91
+ <div class="span1">1</div>
92
+ <div class="span1">1</div>
93
+ <div class="span1">1</div>
94
+ <div class="span1">1</div>
95
+ <div class="span1">1</div>
96
+ <div class="span1">1</div>
97
+ <div class="span1">1</div>
98
+ <div class="span1">1</div>
99
+ </div>
100
+ </div>
101
+ <div class="span1">1
102
+ <div class="row-fluid">
103
+ <div class="span1">1</div>
104
+ <div class="span1">1</div>
105
+ <div class="span1">1</div>
106
+ <div class="span1">1</div>
107
+ <div class="span1">1</div>
108
+ <div class="span1">1</div>
109
+ <div class="span1">1</div>
110
+ <div class="span1">1</div>
111
+ <div class="span1">1</div>
112
+ <div class="span1">1</div>
113
+ <div class="span1">1</div>
114
+ <div class="span1">1</div>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ <div class="row">
119
+ <div class="span10">10
120
+ <div class="row-fluid">
121
+ <div class="span1">1</div>
122
+ <div class="span1">1</div>
123
+ <div class="span1">1</div>
124
+ <div class="span1">1</div>
125
+ <div class="span1">1</div>
126
+ <div class="span1">1</div>
127
+ <div class="span1">1</div>
128
+ <div class="span1">1</div>
129
+ <div class="span1">1</div>
130
+ <div class="span1">1</div>
131
+ <div class="span1">1</div>
132
+ <div class="span1">1</div>
133
+ </div>
134
+ </div>
135
+ <div class="span2">2
136
+ <div class="row-fluid">
137
+ <div class="span1">1</div>
138
+ <div class="span1">1</div>
139
+ <div class="span1">1</div>
140
+ <div class="span1">1</div>
141
+ <div class="span1">1</div>
142
+ <div class="span1">1</div>
143
+ <div class="span1">1</div>
144
+ <div class="span1">1</div>
145
+ <div class="span1">1</div>
146
+ <div class="span1">1</div>
147
+ <div class="span1">1</div>
148
+ <div class="span1">1</div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ <div class="row">
153
+ <div class="span9">9
154
+ <div class="row-fluid">
155
+ <div class="span1">1</div>
156
+ <div class="span1">1</div>
157
+ <div class="span1">1</div>
158
+ <div class="span1">1</div>
159
+ <div class="span1">1</div>
160
+ <div class="span1">1</div>
161
+ <div class="span1">1</div>
162
+ <div class="span1">1</div>
163
+ <div class="span1">1</div>
164
+ <div class="span1">1</div>
165
+ <div class="span1">1</div>
166
+ <div class="span1">1</div>
167
+ </div>
168
+ </div>
169
+ <div class="span3">3
170
+ <div class="row-fluid">
171
+ <div class="span1">1</div>
172
+ <div class="span1">1</div>
173
+ <div class="span1">1</div>
174
+ <div class="span1">1</div>
175
+ <div class="span1">1</div>
176
+ <div class="span1">1</div>
177
+ <div class="span1">1</div>
178
+ <div class="span1">1</div>
179
+ <div class="span1">1</div>
180
+ <div class="span1">1</div>
181
+ <div class="span1">1</div>
182
+ <div class="span1">1</div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ <div class="row">
187
+ <div class="span8">8
188
+ <div class="row-fluid">
189
+ <div class="span1">1</div>
190
+ <div class="span1">1</div>
191
+ <div class="span1">1</div>
192
+ <div class="span1">1</div>
193
+ <div class="span1">1</div>
194
+ <div class="span1">1</div>
195
+ <div class="span1">1</div>
196
+ <div class="span1">1</div>
197
+ <div class="span1">1</div>
198
+ <div class="span1">1</div>
199
+ <div class="span1">1</div>
200
+ <div class="span1">1</div>
201
+ </div>
202
+ </div>
203
+ <div class="span4">4
204
+ <div class="row-fluid">
205
+ <div class="span1">1</div>
206
+ <div class="span1">1</div>
207
+ <div class="span1">1</div>
208
+ <div class="span1">1</div>
209
+ <div class="span1">1</div>
210
+ <div class="span1">1</div>
211
+ <div class="span1">1</div>
212
+ <div class="span1">1</div>
213
+ <div class="span1">1</div>
214
+ <div class="span1">1</div>
215
+ <div class="span1">1</div>
216
+ <div class="span1">1</div>
217
+ </div>
218
+ </div>
219
+ </div>
220
+ <div class="row">
221
+ <div class="span7">7
222
+ <div class="row-fluid">
223
+ <div class="span1">1</div>
224
+ <div class="span1">1</div>
225
+ <div class="span1">1</div>
226
+ <div class="span1">1</div>
227
+ <div class="span1">1</div>
228
+ <div class="span1">1</div>
229
+ <div class="span1">1</div>
230
+ <div class="span1">1</div>
231
+ <div class="span1">1</div>
232
+ <div class="span1">1</div>
233
+ <div class="span1">1</div>
234
+ <div class="span1">1</div>
235
+ </div>
236
+ </div>
237
+ <div class="span5">5
238
+ <div class="row-fluid">
239
+ <div class="span1">1</div>
240
+ <div class="span1">1</div>
241
+ <div class="span1">1</div>
242
+ <div class="span1">1</div>
243
+ <div class="span1">1</div>
244
+ <div class="span1">1</div>
245
+ <div class="span1">1</div>
246
+ <div class="span1">1</div>
247
+ <div class="span1">1</div>
248
+ <div class="span1">1</div>
249
+ <div class="span1">1</div>
250
+ <div class="span1">1</div>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ <div class="row">
255
+ <div class="span6">6
256
+ <div class="row-fluid">
257
+ <div class="span1">1</div>
258
+ <div class="span1">1</div>
259
+ <div class="span1">1</div>
260
+ <div class="span1">1</div>
261
+ <div class="span1">1</div>
262
+ <div class="span1">1</div>
263
+ <div class="span1">1</div>
264
+ <div class="span1">1</div>
265
+ <div class="span1">1</div>
266
+ <div class="span1">1</div>
267
+ <div class="span1">1</div>
268
+ <div class="span1">1</div>
269
+ </div>
270
+ </div>
271
+ <div class="span6">6
272
+ <div class="row-fluid">
273
+ <div class="span1">1</div>
274
+ <div class="span1">1</div>
275
+ <div class="span1">1</div>
276
+ <div class="span1">1</div>
277
+ <div class="span1">1</div>
278
+ <div class="span1">1</div>
279
+ <div class="span1">1</div>
280
+ <div class="span1">1</div>
281
+ <div class="span1">1</div>
282
+ <div class="span1">1</div>
283
+ <div class="span1">1</div>
284
+ <div class="span1">1</div>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div> <!-- fluid grids -->
289
+
290
+
291
+
292
+ <!-- Tables
293
+ ================================================== -->
294
+
295
+ <div class="page-header">
296
+ <h1>Tables</h1>
297
+ </div>
298
+
299
+ <div class="row">
300
+ <div class="span6">
301
+ <h4>Bordered without thead</h4>
302
+ <table class="table table-bordered">
303
+ <tbody>
304
+ <tr>
305
+ <td>1</td>
306
+ <td>2</td>
307
+ <td>3</td>
308
+ </tr>
309
+ <tr>
310
+ <td>1</td>
311
+ <td>2</td>
312
+ <td>3</td>
313
+ </tr>
314
+ <tr>
315
+ <td>1</td>
316
+ <td>2</td>
317
+ <td>3</td>
318
+ </tr>
319
+ </tbody>
320
+ </table>
321
+ <h4>Bordered without thead, with caption</h4>
322
+ <table class="table table-bordered">
323
+ <caption>Table caption</caption>
324
+ <tbody>
325
+ <tr>
326
+ <td>1</td>
327
+ <td>2</td>
328
+ <td>3</td>
329
+ </tr>
330
+ <tr>
331
+ <td>1</td>
332
+ <td>2</td>
333
+ <td>3</td>
334
+ </tr>
335
+ <tr>
336
+ <td>1</td>
337
+ <td>2</td>
338
+ <td>3</td>
339
+ </tr>
340
+ </tbody>
341
+ </table>
342
+ <h4>Bordered without thead, with colgroup</h4>
343
+ <table class="table table-bordered">
344
+ <colgroup>
345
+ <col class="col1">
346
+ <col class="col2">
347
+ <col class="col3">
348
+ </colgroup>
349
+ <tbody>
350
+ <tr>
351
+ <td>1</td>
352
+ <td>2</td>
353
+ <td>3</td>
354
+ </tr>
355
+ <tr>
356
+ <td>1</td>
357
+ <td>2</td>
358
+ <td>3</td>
359
+ </tr>
360
+ <tr>
361
+ <td>1</td>
362
+ <td>2</td>
363
+ <td>3</td>
364
+ </tr>
365
+ </tbody>
366
+ </table>
367
+ <h4>Bordered with thead, with colgroup</h4>
368
+ <table class="table table-bordered">
369
+ <colgroup>
370
+ <col class="col1">
371
+ <col class="col2">
372
+ <col class="col3">
373
+ </colgroup>
374
+ <thead>
375
+ <tr>
376
+ <td>1</td>
377
+ <td>2</td>
378
+ <td>3</td>
379
+ </tr>
380
+ </thead>
381
+ <tbody>
382
+ <tr>
383
+ <td>1</td>
384
+ <td>2</td>
385
+ <td>3</td>
386
+ </tr>
387
+ <tr>
388
+ <td>1</td>
389
+ <td>2</td>
390
+ <td>3</td>
391
+ </tr>
392
+ <tr>
393
+ <td>1</td>
394
+ <td>2</td>
395
+ <td>3</td>
396
+ </tr>
397
+ </tbody>
398
+ </table>
399
+ </div><!--/span-->
400
+ <div class="span6">
401
+ <h4>Bordered with thead and caption</h4>
402
+ <table class="table table-bordered">
403
+ <caption>Table caption</caption>
404
+ <thead>
405
+ <tr>
406
+ <th>1</th>
407
+ <th>2</th>
408
+ <th>3</th>
409
+ </tr>
410
+ </thead>
411
+ <tbody>
412
+ <tr>
413
+ <td>1</td>
414
+ <td>2</td>
415
+ <td>3</td>
416
+ </tr>
417
+ <tr>
418
+ <td>1</td>
419
+ <td>2</td>
420
+ <td>3</td>
421
+ </tr>
422
+ <tr>
423
+ <td>1</td>
424
+ <td>2</td>
425
+ <td>3</td>
426
+ </tr>
427
+ </tbody>
428
+ </table>
429
+ <h4>Bordered with rowspan and colspan</h4>
430
+ <table class="table table-bordered">
431
+ <thead>
432
+ <tr>
433
+ <th>1</th>
434
+ <th>2</th>
435
+ <th>3</th>
436
+ </tr>
437
+ </thead>
438
+ <tbody>
439
+ <tr>
440
+ <td colspan="2">1 and 2</td>
441
+ <td>3</td>
442
+ </tr>
443
+ <tr>
444
+ <td>1</td>
445
+ <td rowspan="2">2</td>
446
+ <td>3</td>
447
+ </tr>
448
+ <tr>
449
+ <td rowspan="2">1</td>
450
+ <td>3</td>
451
+ </tr>
452
+ <tr>
453
+ <td colspan="2">2 and 3</td>
454
+ </tr>
455
+ </tbody>
456
+ </table>
457
+ </div><!--/span-->
458
+ </div><!--/row-->
459
+
460
+
461
+
462
+ <!-- Forms
463
+ ================================================== -->
464
+
465
+ <div class="page-header">
466
+ <h1>Forms</h1>
467
+ </div>
468
+
469
+ <div class="row">
470
+ <div class="span4">
471
+ <h4>Prepend and append on inputs</h4>
472
+ <form>
473
+ <div class="controls">
474
+ <div class="input-prepend">
475
+ <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text">
476
+ </div>
477
+ </div>
478
+ <div class="controls">
479
+ <div class="input-append">
480
+ <input class="span2" id="prependedInput" size="16" type="text"><span class="add-on">@</span>
481
+ </div>
482
+ </div>
483
+ <div class="controls">
484
+ <div class="input-prepend input-append">
485
+ <span class="add-on">$</span><input class="span2" id="prependedInput" size="16" type="text"><span class="add-on">.00</span>
486
+ </div>
487
+ </div>
488
+ </form>
489
+ </div><!--/span-->
490
+ <div class="span6">
491
+ <h4>Prepend and append with uneditable</h4>
492
+ <form>
493
+ <div class="input-prepend">
494
+ <span class="add-on">$</span><span class="span2 uneditable-input">Some value here</span>
495
+ </div>
496
+ <div class="input-append">
497
+ <span class="span2 uneditable-input">Some value here</span><span class="add-on">.00</span>
498
+ </div>
499
+ </form>
500
+ </div><!--/span-->
501
+ </div><!--/row-->
502
+
503
+ <h4>Fluid prepended and appended inputs</h4>
504
+ <div class="row-fluid">
505
+ <div class="span6">
506
+ <form>
507
+ <div class="controls">
508
+ <div class="input-prepend">
509
+ <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text">
510
+ </div>
511
+ </div>
512
+ <div class="controls">
513
+ <div class="input-append">
514
+ <input class="span2" id="prependedInput" size="16" type="text"><span class="add-on">@</span>
515
+ </div>
516
+ </div>
517
+ <div class="controls">
518
+ <div class="input-prepend input-append">
519
+ <span class="add-on">$</span><input class="span2" id="prependedInput" size="16" type="text"><span class="add-on">.00</span>
520
+ </div>
521
+ </div>
522
+ </form>
523
+ </div>
524
+ </div>
525
+
526
+ <h4>Fixed row with inputs</h4>
527
+ <p>Inputs should not extend past the light red background, set on their parent, a <code>.span*</code> column.</p>
528
+
529
+ <div class="rowInputs">
530
+ <div class="row">
531
+ <div class="span12">
532
+ <input type="text" class="span1" placeholder="span1">
533
+ </div><!--/span-->
534
+ </div><!--/row-->
535
+ <div class="row">
536
+ <div class="span12">
537
+ <input type="text" class="span2" placeholder="span2">
538
+ </div><!--/span-->
539
+ </div><!--/row-->
540
+ <div class="row">
541
+ <div class="span12">
542
+ <input type="text" class="span3" placeholder="span3">
543
+ </div><!--/span-->
544
+ </div><!--/row-->
545
+ <div class="row">
546
+ <div class="span12">
547
+ <input type="text" class="span4" placeholder="span4">
548
+ </div><!--/span-->
549
+ </div><!--/row-->
550
+ <div class="row">
551
+ <div class="span12">
552
+ <input type="text" class="span5" placeholder="span5">
553
+ </div><!--/span-->
554
+ </div><!--/row-->
555
+ <div class="row">
556
+ <div class="span12">
557
+ <input type="text" class="span6" placeholder="span6">
558
+ </div><!--/span-->
559
+ </div><!--/row-->
560
+ <div class="row">
561
+ <div class="span12">
562
+ <input type="text" class="span7" placeholder="span7">
563
+ </div><!--/span-->
564
+ </div><!--/row-->
565
+ <div class="row">
566
+ <div class="span12">
567
+ <input type="text" class="span8" placeholder="span8">
568
+ </div><!--/span-->
569
+ </div><!--/row-->
570
+ <div class="row">
571
+ <div class="span12">
572
+ <input type="text" class="span9" placeholder="span9">
573
+ </div><!--/span-->
574
+ </div><!--/row-->
575
+ <div class="row">
576
+ <div class="span12">
577
+ <input type="text" class="span10" placeholder="span10">
578
+ </div><!--/span-->
579
+ </div><!--/row-->
580
+ <div class="row">
581
+ <div class="span12">
582
+ <input type="text" class="span11" placeholder="span11">
583
+ </div><!--/span-->
584
+ </div><!--/row-->
585
+ <div class="row">
586
+ <div class="span12">
587
+ <input type="text" class="span12" placeholder="span12">
588
+ </div><!--/span-->
589
+ </div><!--/row-->
590
+ </div>
591
+ <br>
592
+
593
+ <h4>Fluid row with inputs</h4>
594
+ <p>Inputs should not extend past the light red background, set on their parent, a <code>.span*</code> column.</p>
595
+ <div id="fluidRowInputs">
596
+ <div class="row-fluid">
597
+ <div class="span12">
598
+ <input type="text" class="span1" placeholder="span1">
599
+ </div><!--/span-->
600
+ </div><!--/row-->
601
+ <div class="row-fluid">
602
+ <div class="span12">
603
+ <input type="text" class="span2" placeholder="span2">
604
+ </div><!--/span-->
605
+ </div><!--/row-->
606
+ <div class="row-fluid">
607
+ <div class="span12">
608
+ <input type="text" class="span3" placeholder="span3">
609
+ </div><!--/span-->
610
+ </div><!--/row-->
611
+ <div class="row-fluid">
612
+ <div class="span12">
613
+ <input type="text" class="span4" placeholder="span4">
614
+ </div><!--/span-->
615
+ </div><!--/row-->
616
+ <div class="row-fluid">
617
+ <div class="span12">
618
+ <input type="text" class="span5" placeholder="span5">
619
+ </div><!--/span-->
620
+ </div><!--/row-->
621
+ <div class="row-fluid">
622
+ <div class="span12">
623
+ <input type="text" class="span6" placeholder="span6">
624
+ </div><!--/span-->
625
+ </div><!--/row-->
626
+ <div class="row-fluid">
627
+ <div class="span12">
628
+ <input type="text" class="span7" placeholder="span7">
629
+ </div><!--/span-->
630
+ </div><!--/row-->
631
+ <div class="row-fluid">
632
+ <div class="span12">
633
+ <input type="text" class="span8" placeholder="span8">
634
+ </div><!--/span-->
635
+ </div><!--/row-->
636
+ <div class="row-fluid">
637
+ <div class="span12">
638
+ <input type="text" class="span9" placeholder="span9">
639
+ </div><!--/span-->
640
+ </div><!--/row-->
641
+ <div class="row-fluid">
642
+ <div class="span12">
643
+ <input type="text" class="span10" placeholder="span10">
644
+ </div><!--/span-->
645
+ </div><!--/row-->
646
+ <div class="row-fluid">
647
+ <div class="span12">
648
+ <input type="text" class="span11" placeholder="span11">
649
+ </div><!--/span-->
650
+ </div><!--/row-->
651
+ <div class="row-fluid">
652
+ <div class="span12">
653
+ <input type="text" class="span12" placeholder="span12">
654
+ </div><!--/span-->
655
+ </div><!--/row-->
656
+ </div>
657
+ <br>
658
+
659
+
660
+ <!-- Dropdowns
661
+ ================================================== -->
662
+
663
+ <div class="page-header">
664
+ <h1>Dropdowns</h1>
665
+ </div>
666
+
667
+ <h4>Dropdown link with hash URL</h4>
668
+ <ul class="nav nav-pills">
669
+ <li class="active"><a href="#">Link</a></li>
670
+ <li><a href="#">Example link</a></li>
671
+ <li class="dropdown">
672
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
673
+ Dropdown <span class="caret"></span>
674
+ </a>
675
+ <ul class="dropdown-menu">
676
+ <li><a href="#">Action</a></li>
677
+ <li><a href="#">Another action</a></li>
678
+ <li><a href="#">Something else here</a></li>
679
+ <li class="divider"></li>
680
+ <li><a href="#">Separated link</a></li>
681
+ </ul>
682
+ </li>
683
+ </ul>
684
+
685
+ <h4>Dropdown link with custom URL and data-target</h4>
686
+ <ul class="nav nav-pills">
687
+ <li class="active"><a href="#">Link</a></li>
688
+ <li><a href="#">Example link</a></li>
689
+ <li class="dropdown">
690
+ <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="path/to/page.html">
691
+ Dropdown <span class="caret"></span>
692
+ </a>
693
+ <ul class="dropdown-menu">
694
+ <li><a href="#">Action</a></li>
695
+ <li><a href="#">Another action</a></li>
696
+ <li><a href="#">Something else here</a></li>
697
+ <li class="divider"></li>
698
+ <li><a href="#">Separated link</a></li>
699
+ </ul>
700
+ </li>
701
+ </ul>
702
+
703
+ <h4>Dropdown on a button</h4>
704
+ <div style="position: relative;">
705
+ <button class="btn" type="button" data-toggle="dropdown">Dropdown <span class="caret"></span></button>
706
+ <ul class="dropdown-menu">
707
+ <li><a href="#">Action</a></li>
708
+ <li><a href="#">Another action</a></li>
709
+ <li><a href="#">Something else here</a></li>
710
+ <li class="divider"></li>
711
+ <li><a href="#">Separated link</a></li>
712
+ </ul>
713
+ </div>
714
+
715
+ <br>
716
+
717
+
718
+ <!-- Thumbnails
719
+ ================================================== -->
720
+
721
+ <div class="page-header">
722
+ <h1>Thumbnails</h1>
723
+ </div>
724
+
725
+ <h4>Default thumbnails (no grid sizing)</h4>
726
+ <ul class="thumbnails">
727
+ <li class="thumbnail">
728
+ <img src="http://placehold.it/260x180" alt="">
729
+ </li>
730
+ <li class="thumbnail">
731
+ <img src="http://placehold.it/260x180" alt="">
732
+ </li>
733
+ <li class="thumbnail">
734
+ <img src="http://placehold.it/260x180" alt="">
735
+ </li>
736
+ <li class="thumbnail">
737
+ <img src="http://placehold.it/260x180" alt="">
738
+ </li>
739
+ </ul>
740
+
741
+ <!-- NOT CURRENTLY SUPPORTED
742
+ <h4>Offset thumbnails</h4>
743
+ <ul class="thumbnails">
744
+ <li class="span3 offset3">
745
+ <a href="#" class="thumbnail">
746
+ <img src="http://placehold.it/260x180" alt="">
747
+ </a>
748
+ </li>
749
+ <li class="span3">
750
+ <a href="#" class="thumbnail">
751
+ <img src="http://placehold.it/260x180" alt="">
752
+ </a>
753
+ </li>
754
+ <li class="span3">
755
+ <a href="#" class="thumbnail">
756
+ <img src="http://placehold.it/260x180" alt="">
757
+ </a>
758
+ </li>
759
+ </ul>
760
+ -->
761
+
762
+ <h4>Standard grid sizing</h4>
763
+ <ul class="thumbnails">
764
+ <li class="span3">
765
+ <a href="#" class="thumbnail">
766
+ <img src="http://placehold.it/260x180" alt="">
767
+ </a>
768
+ </li>
769
+ <li class="span3 offset3">
770
+ <a href="#" class="thumbnail">
771
+ <img src="http://placehold.it/260x180" alt="">
772
+ </a>
773
+ </li>
774
+ <li class="span3">
775
+ <a href="#" class="thumbnail">
776
+ <img src="http://placehold.it/260x180" alt="">
777
+ </a>
778
+ </li>
779
+ </ul>
780
+
781
+ <h4>Fluid thumbnails</h4>
782
+ <div class="row-fluid">
783
+ <div class="span8">
784
+ <ul class="thumbnails">
785
+ <li class="span4">
786
+ <a href="#" class="thumbnail">
787
+ <img src="http://placehold.it/260x180" alt="">
788
+ </a>
789
+ </li>
790
+ <li class="span4">
791
+ <a href="#" class="thumbnail">
792
+ <img src="http://placehold.it/260x180" alt="">
793
+ </a>
794
+ </li>
795
+ <li class="span4">
796
+ <a href="#" class="thumbnail">
797
+ <img src="http://placehold.it/260x180" alt="">
798
+ </a>
799
+ </li>
800
+ </ul>
801
+ </div>
802
+ </div>
803
+
804
+
805
+
806
+ <!-- Tabs
807
+ ================================================== -->
808
+
809
+ <div class="page-header">
810
+ <h1>Tabs</h1>
811
+ </div>
812
+
813
+ <div class="tabbable tabs-left" style="margin-bottom: 18px;">
814
+ <ul class="nav nav-tabs">
815
+ <li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
816
+ <li><a href="#tab2" data-toggle="tab">Section 2</a></li>
817
+ <li><a href="#tab3" data-toggle="tab">Section 3</a></li>
818
+ </ul>
819
+ <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
820
+ <div class="tab-pane active" id="tab1">
821
+ <p>I'm in Section 1.</p>
822
+
823
+ <div class="tabbable" style="background: #f5f5f5; padding: 20px;">
824
+ <ul class="nav nav-tabs">
825
+ <li class="active"><a href="#tab1-1" data-toggle="tab">1.1</a></li>
826
+ <li><a href="#tab1-2" data-toggle="tab">1.2</a></li>
827
+ <li><a href="#tab1-3" data-toggle="tab">1.3</a></li>
828
+ </ul>
829
+ <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
830
+ <div class="tab-pane active" id="tab1-1">
831
+ <p>I'm in Section 1.1.</p>
832
+ </div>
833
+ <div class="tab-pane" id="tab1-2">
834
+ <p>I'm in Section 1.2.</p>
835
+ </div>
836
+ <div class="tab-pane" id="tab1-3">
837
+ <p>I'm in Section 1.3.</p>
838
+ </div>
839
+ </div>
840
+ </div>
841
+ </div>
842
+ <div class="tab-pane" id="tab2">
843
+ <p>Howdy, I'm in Section 2.</p>
844
+ </div>
845
+ <div class="tab-pane" id="tab3">
846
+ <p>What up girl, this is Section 3.</p>
847
+ </div>
848
+ </div>
849
+ </div> <!-- /tabbable -->
850
+
851
+
852
+
853
+ <!-- Labels
854
+ ================================================== -->
855
+
856
+ <div class="page-header">
857
+ <h1>Labels</h1>
858
+ </div>
859
+
860
+ <div class="row">
861
+ <div class="span4">
862
+ <h4>Inline label</h4>
863
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Maecenas sed diam <span class="label label-warning">Label name</span> eget risus varius blandit sit amet non magna. Fusce <code>.class-name</code> dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
864
+ </div><!--/span-->
865
+ <div class="span4">
866
+ <form class="form-horizontal">
867
+ <label>Example label</label>
868
+ <input type="text" placeholder="Input"> <span class="help-inline"><span class="label">Hey!</span> Read this.</span>
869
+ </form>
870
+ </div><!--/span-->
871
+ <div class="span4">
872
+
873
+ </div><!--/span-->
874
+ </div><!--/row-->
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+ <!-- Footer
883
+ ================================================== -->
884
+ <footer class="footer">
885
+ <p class="pull-right"><a href="#">Back to top</a></p>
886
+ <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
887
+ <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
888
+ <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
889
+ </footer>
890
+
891
+ </div><!-- /container -->
892
+
893
+
894
+
895
+ <!-- Le javascript
896
+ ================================================== -->
897
+ <!-- Placed at the end of the document so the pages load faster -->
898
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
899
+ <script src="../../docs/assets/js/jquery.js"></script>
900
+ <script src="../../docs/assets/js/google-code-prettify/prettify.js"></script>
901
+ <script src="../../docs/assets/js/bootstrap-transition.js"></script>
902
+ <script src="../../docs/assets/js/bootstrap-alert.js"></script>
903
+ <script src="../../docs/assets/js/bootstrap-modal.js"></script>
904
+ <script src="../../docs/assets/js/bootstrap-dropdown.js"></script>
905
+ <script src="../../docs/assets/js/bootstrap-scrollspy.js"></script>
906
+ <script src="../../docs/assets/js/bootstrap-tab.js"></script>
907
+ <script src="../../docs/assets/js/bootstrap-tooltip.js"></script>
908
+ <script src="../../docs/assets/js/bootstrap-popover.js"></script>
909
+ <script src="../../docs/assets/js/bootstrap-button.js"></script>
910
+ <script src="../../docs/assets/js/bootstrap-collapse.js"></script>
911
+ <script src="../../docs/assets/js/bootstrap-carousel.js"></script>
912
+ <script src="../../docs/assets/js/bootstrap-typeahead.js"></script>
913
+ <script src="../../docs/assets/js/application.js"></script>
914
+
915
+
916
+ </body>
917
+ </html>