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,671 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Scaffolding · 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="assets/css/bootstrap.css" rel="stylesheet">
12
+ <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
13
+ <link href="assets/css/docs.css" rel="stylesheet">
14
+ <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
15
+
16
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
17
+ <!--[if lt IE 9]>
18
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
19
+ <![endif]-->
20
+
21
+ <!-- Le fav and touch icons -->
22
+ <link rel="shortcut icon" href="assets/ico/favicon.ico">
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
25
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
26
+ <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
27
+
28
+ </head>
29
+
30
+ <body data-spy="scroll" data-target=".subnav" data-offset="50">
31
+
32
+
33
+ <!-- Navbar
34
+ ================================================== -->
35
+ <div class="navbar navbar-fixed-top">
36
+ <div class="navbar-inner">
37
+ <div class="container">
38
+ <button type="button"class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
39
+ <span class="icon-bar"></span>
40
+ <span class="icon-bar"></span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ <a class="brand" href="./index.html">Bootstrap</a>
44
+ <div class="nav-collapse collapse">
45
+ <ul class="nav">
46
+ <li class="">
47
+ <a href="./index.html">Overview</a>
48
+ </li>
49
+ <li class="active">
50
+ <a href="./scaffolding.html">Scaffolding</a>
51
+ </li>
52
+ <li class="">
53
+ <a href="./base-css.html">Base CSS</a>
54
+ </li>
55
+ <li class="">
56
+ <a href="./components.html">Components</a>
57
+ </li>
58
+ <li class="">
59
+ <a href="./javascript.html">Javascript plugins</a>
60
+ </li>
61
+ <li class="">
62
+ <a href="./less.html">Using LESS</a>
63
+ </li>
64
+ <li class="divider-vertical"></li>
65
+ <li class="">
66
+ <a href="./download.html">Customize</a>
67
+ </li>
68
+ <li class="">
69
+ <a href="./examples.html">Examples</a>
70
+ </li>
71
+ </ul>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <div class="container">
78
+
79
+ <!-- Masthead
80
+ ================================================== -->
81
+ <header class="jumbotron subhead" id="overview">
82
+ <h1>Scaffolding</h1>
83
+ <p class="lead">Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.</p>
84
+ <div class="subnav">
85
+ <ul class="nav nav-pills">
86
+ <li><a href="#global">Global styles</a></li>
87
+ <li><a href="#gridSystem">Grid system</a></li>
88
+ <li><a href="#fluidGridSystem">Fluid grid system</a></li>
89
+ <li><a href="#gridCustomization">Customizing</a></li>
90
+ <li><a href="#layouts">Layouts</a></li>
91
+ <li><a href="#responsive">Responsive design</a></li>
92
+ </ul>
93
+ </div>
94
+ </header>
95
+
96
+
97
+
98
+
99
+ <!-- Global Bootstrap settings
100
+ ================================================== -->
101
+ <section id="global">
102
+ <div class="page-header">
103
+ <h1>Global styles <small>for CSS reset, typography, and links</small></h1>
104
+ </div>
105
+ <div class="row">
106
+ <div class="span4">
107
+ <h2>Requires HTML5 doctype</h2>
108
+ <p>Bootstrap makes use of HTML elements and CSS properties that require the use of the HTML5 doctype. Be sure to include it at the beginning of every Bootstrapped page in your project.</p>
109
+ <pre class="prettyprint linenums">
110
+ &lt;!DOCTYPE html&gt;
111
+ &lt;html lang="en"&gt;
112
+ ...
113
+ &lt;/html&gt;
114
+ </pre>
115
+ </div><!-- /.span -->
116
+ <div class="span4">
117
+ <h2>Typography and links</h2>
118
+ <p>Within the <strong>scaffolding.less</strong> file, we set basic global display, typography, and link styles. Specifically, we:</p>
119
+ <ul>
120
+ <li>Remove margin on the body</li>
121
+ <li>Set <code>background-color: white;</code> on the <code>body</code></li>
122
+ <li>Use the <code>@baseFontFamily</code>, <code>@baseFontSize</code>, and <code>@baseLineHeight</code> attributes as our typographyic base</li>
123
+ <li>Set the global link color via <code>@linkColor</code> and apply link underlines only on <code>:hover</code></li>
124
+ </ul>
125
+ </div><!-- /.span -->
126
+ <div class="span4">
127
+ <h2>Reset via Normalize</h2>
128
+ <p>As of Bootstrap 2, the traditional CSS reset has evolved to make use of elements from <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>.</p>
129
+ <p>The new reset can still be found in <strong>reset.less</strong>, but with many elements removed for brevity and accuracy.</p>
130
+ </div><!-- /.span -->
131
+ </div><!-- /.row -->
132
+ </section>
133
+
134
+
135
+
136
+
137
+ <!-- Grid system
138
+ ================================================== -->
139
+ <section id="gridSystem">
140
+ <div class="page-header">
141
+ <h1>Default grid system <small>12 columns with a responsive twist</small></h1>
142
+ </div>
143
+
144
+ <div class="row show-grid">
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 class="span1">1</div>
150
+ <div class="span1">1</div>
151
+ <div class="span1">1</div>
152
+ <div class="span1">1</div>
153
+ <div class="span1">1</div>
154
+ <div class="span1">1</div>
155
+ <div class="span1">1</div>
156
+ <div class="span1">1</div>
157
+ </div>
158
+ <div class="row show-grid">
159
+ <div class="span4">4</div>
160
+ <div class="span4">4</div>
161
+ <div class="span4">4</div>
162
+ </div>
163
+ <div class="row show-grid">
164
+ <div class="span4">4</div>
165
+ <div class="span8">8</div>
166
+ </div>
167
+ <div class="row show-grid">
168
+ <div class="span6">6</div>
169
+ <div class="span6">6</div>
170
+ </div>
171
+ <div class="row show-grid">
172
+ <div class="span12">12</div>
173
+ </div>
174
+ <div class="row">
175
+ <div class="span4">
176
+ <p>The default grid system provided in Bootstrap utilizes <strong>12 columns</strong> that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically. </p>
177
+ </div><!-- /.span -->
178
+ <div class="span4">
179
+ <pre class="prettyprint linenums">
180
+ &lt;div class="row"&gt;
181
+ &lt;div class="span4"&gt;...&lt;/div&gt;
182
+ &lt;div class="span8"&gt;...&lt;/div&gt;
183
+ &lt;/div&gt;
184
+ </pre>
185
+ </div><!-- /.span -->
186
+ <div class="span4">
187
+ <p>As shown here, a basic layout can be created with two "columns", each spanning a number of the 12 foundational columns we defined as part of our grid system.</p>
188
+ </div><!-- /.span -->
189
+ </div><!-- /.row -->
190
+
191
+ <br>
192
+
193
+ <h2>Offsetting columns</h2>
194
+ <div class="row show-grid">
195
+ <div class="span4">4</div>
196
+ <div class="span4 offset4">4 offset 4</div>
197
+ </div><!-- /row -->
198
+ <div class="row show-grid">
199
+ <div class="span3 offset3">3 offset 3</div>
200
+ <div class="span3 offset3">3 offset 3</div>
201
+ </div><!-- /row -->
202
+ <div class="row show-grid">
203
+ <div class="span8 offset4">8 offset 4</div>
204
+ </div><!-- /row -->
205
+ <pre class="prettyprint linenums">
206
+ &lt;div class="row"&gt;
207
+ &lt;div class="span4"&gt;...&lt;/div&gt;
208
+ &lt;div class="span4 offset4"&gt;...&lt;/div&gt;
209
+ &lt;/div&gt;
210
+ </pre>
211
+
212
+ <br>
213
+
214
+ <h2>Nesting columns</h2>
215
+ <div class="row">
216
+ <div class="span6">
217
+ <p>With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column.</p>
218
+ <h3>Example</h3>
219
+ <p>Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested <code>.span3</code> columns should be placed within a <code>.span6</code>.</p>
220
+ <div class="row show-grid">
221
+ <div class="span6">
222
+ Level 1 of column
223
+ <div class="row show-grid">
224
+ <div class="span3">
225
+ Level 2
226
+ </div>
227
+ <div class="span3">
228
+ Level 2
229
+ </div>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ </div><!-- /.span -->
234
+ <div class="span6">
235
+ <pre class="prettyprint linenums">
236
+ &lt;div class="row"&gt;
237
+ &lt;div class="span6"&gt;
238
+ Level 1 column
239
+ &lt;div class="row"&gt;
240
+ &lt;div class="span3"&gt;Level 2&lt;/div&gt;
241
+ &lt;div class="span3"&gt;Level 2&lt;/div&gt;
242
+ &lt;/div&gt;
243
+ &lt;/div&gt;
244
+ &lt;/div&gt;
245
+ </pre>
246
+ </div><!-- /.span -->
247
+ </div><!-- /.row -->
248
+ </section>
249
+
250
+
251
+
252
+ <!-- Fluid grid system
253
+ ================================================== -->
254
+ <section id="fluidGridSystem">
255
+ <div class="page-header">
256
+ <h1>Fluid grid system <small>12 responsive, percent-based columns</small></h1>
257
+ </div>
258
+
259
+ <h2>Fluid columns</h2>
260
+ <div class="row-fluid show-grid">
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 class="span1">1</div>
270
+ <div class="span1">1</div>
271
+ <div class="span1">1</div>
272
+ <div class="span1">1</div>
273
+ </div>
274
+ <div class="row-fluid show-grid">
275
+ <div class="span4">4</div>
276
+ <div class="span4">4</div>
277
+ <div class="span4">4</div>
278
+ </div>
279
+ <div class="row-fluid show-grid">
280
+ <div class="span4">4</div>
281
+ <div class="span8">8</div>
282
+ </div>
283
+ <div class="row-fluid show-grid">
284
+ <div class="span6">6</div>
285
+ <div class="span6">6</div>
286
+ </div>
287
+ <div class="row-fluid show-grid">
288
+ <div class="span12">12</div>
289
+ </div>
290
+
291
+ <div class="row">
292
+ <div class="span4">
293
+ <h3>Percents, not pixels</h3>
294
+ <p>The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.</p>
295
+ </div><!-- /.span -->
296
+ <div class="span4">
297
+ <h3>Fluid rows</h3>
298
+ <p>Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.</p>
299
+ </div><!-- /.span -->
300
+ <div class="span4">
301
+ <h3>Markup</h3>
302
+ <pre class="prettyprint linenums">
303
+ &lt;div class="row-fluid"&gt;
304
+ &lt;div class="span4"&gt;...&lt;/div&gt;
305
+ &lt;div class="span8"&gt;...&lt;/div&gt;
306
+ &lt;/div&gt;
307
+ </pre>
308
+ </div><!-- /.span -->
309
+ </div><!-- /.row -->
310
+
311
+ <h2>Fluid nesting</h2>
312
+ <div class="row">
313
+ <div class="span6">
314
+ <p>Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.</p>
315
+ <div class="row-fluid show-grid">
316
+ <div class="span12">
317
+ Fluid 12
318
+ <div class="row-fluid show-grid">
319
+ <div class="span6">
320
+ Fluid 6
321
+ </div>
322
+ <div class="span6">
323
+ Fluid 6
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div><!-- /.span -->
329
+ <div class="span6">
330
+ <pre class="prettyprint linenums">
331
+ &lt;div class="row-fluid"&gt;
332
+ &lt;div class="span12"&gt;
333
+ Level 1 of column
334
+ &lt;div class="row-fluid"&gt;
335
+ &lt;div class="span6"&gt;Level 2&lt;/div&gt;
336
+ &lt;div class="span6"&gt;Level 2&lt;/div&gt;
337
+ &lt;/div&gt;
338
+ &lt;/div&gt;
339
+ &lt;/div&gt;
340
+ </pre>
341
+ </div><!-- /.span -->
342
+ </div><!-- /.row -->
343
+
344
+ </section>
345
+
346
+
347
+
348
+ <!-- Customizaton
349
+ ================================================== -->
350
+ <section id="gridCustomization">
351
+ <div class="page-header">
352
+ <h1>Grid customization</h1>
353
+ </div>
354
+ <table class="table table-bordered table-striped">
355
+ <thead>
356
+ <tr>
357
+ <th>Variable</th>
358
+ <th>Default value</th>
359
+ <th>Description</th>
360
+ </tr>
361
+ </thead>
362
+ <tbody>
363
+ <tr>
364
+ <td><code>@gridColumns</code></td>
365
+ <td>12</td>
366
+ <td>Number of columns</td>
367
+ </tr>
368
+ <tr>
369
+ <td><code>@gridColumnWidth</code></td>
370
+ <td>60px</td>
371
+ <td>Width of each column</td>
372
+ </tr>
373
+ <tr>
374
+ <td><code>@gridGutterWidth</code></td>
375
+ <td>20px</td>
376
+ <td>Negative space between columns</td>
377
+ </tr>
378
+ </tbody>
379
+ </table>
380
+ <div class="row">
381
+ <div class="span4">
382
+ <h3>Variables in LESS</h3>
383
+ <p>Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.</p>
384
+ </div><!-- /.span -->
385
+ <div class="span4">
386
+ <h3>How to customize</h3>
387
+ <p>Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.</p>
388
+ </div><!-- /.span -->
389
+ <div class="span4">
390
+ <h3>Staying responsive</h3>
391
+ <p>Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.</p>
392
+ </div><!-- /.span -->
393
+ </div><!-- /.row -->
394
+
395
+ </section>
396
+
397
+
398
+
399
+ <!-- Layouts (Default and fluid)
400
+ ================================================== -->
401
+ <section id="layouts">
402
+ <div class="page-header">
403
+ <h1>Layouts <small>Basic templates to create webpages</small></h1>
404
+ </div>
405
+
406
+ <div class="row">
407
+ <div class="span6">
408
+ <h2>Fixed layout</h2>
409
+ <p>The default and simple 940px-wide, centered layout for just about any website or page provided by a single <code>&lt;div class="container"&gt;</code>.</p>
410
+ <div class="mini-layout">
411
+ <div class="mini-layout-body"></div>
412
+ </div>
413
+ <pre class="prettyprint linenums">
414
+ &lt;body&gt;
415
+ &lt;div class="container"&gt;
416
+ ...
417
+ &lt;/div&gt;
418
+ &lt;/body&gt;
419
+ </pre>
420
+ </div><!-- /.span -->
421
+ <div class="span6">
422
+ <h2>Fluid layout</h2>
423
+ <p><code>&lt;div class="container-fluid"&gt;</code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.</p>
424
+ <div class="mini-layout fluid">
425
+ <div class="mini-layout-sidebar"></div>
426
+ <div class="mini-layout-body"></div>
427
+ </div>
428
+ <pre class="prettyprint linenums">
429
+ &lt;div class="container-fluid"&gt;
430
+ &lt;div class="row-fluid"&gt;
431
+ &lt;div class="span2"&gt;
432
+ &lt;!--Sidebar content--&gt;
433
+ &lt;/div&gt;
434
+ &lt;div class="span10"&gt;
435
+ &lt;!--Body content--&gt;
436
+ &lt;/div&gt;
437
+ &lt;/div&gt;
438
+ &lt;/div&gt;
439
+ </pre>
440
+ </div><!-- /.span -->
441
+ </div><!-- /.row -->
442
+ </section>
443
+
444
+
445
+
446
+
447
+ <!-- Responsive design
448
+ ================================================== -->
449
+ <section id="responsive">
450
+ <div class="page-header">
451
+ <h1>Responsive design <small>Media queries for various devices and resolutions</small></h1>
452
+ </div>
453
+ <!-- Supported devices -->
454
+ <div class="row">
455
+ <div class="span4">
456
+ <p><img src="assets/img/responsive-illustrations.png" alt="Responsive devices"></p>
457
+ <h3>What they do</h3>
458
+ <p>Media queries allow for custom CSS based on a number of conditions&mdash;ratios, widths, display type, etc&mdash;but usually focuses around <code>min-width</code> and <code>max-width</code>.</p>
459
+ <ul>
460
+ <li>Modify the width of column in our grid</li>
461
+ <li>Stack elements instead of float wherever necessary</li>
462
+ <li>Resize headings and text to be more appropriate for devices</li>
463
+ </ul>
464
+ <p>Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.</p>
465
+ </div><!-- /.span -->
466
+ <div class="span8">
467
+ <h2>Supported devices</h2>
468
+ <p>Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:</p>
469
+ <table class="table table-bordered table-striped">
470
+ <thead>
471
+ <tr>
472
+ <th>Label</th>
473
+ <th>Layout width</th>
474
+ <th>Column width</th>
475
+ <th>Gutter width</th>
476
+ </tr>
477
+ </thead>
478
+ <tbody>
479
+ <tr>
480
+ <td>Smartphones</td>
481
+ <td>480px and below</td>
482
+ <td class="muted" colspan="2">Fluid columns, no fixed widths</td>
483
+ </tr>
484
+ <tr>
485
+ <td>Smartphones to tablets</td>
486
+ <td>767px and below</td>
487
+ <td class="muted" colspan="2">Fluid columns, no fixed widths</td>
488
+ </tr>
489
+ <tr>
490
+ <td>Portrait tablets</td>
491
+ <td>768px and above</td>
492
+ <td>42px</td>
493
+ <td>20px</td>
494
+ </tr>
495
+ <tr>
496
+ <td>Default</td>
497
+ <td>980px and up</td>
498
+ <td>60px</td>
499
+ <td>20px</td>
500
+ </tr>
501
+ <tr>
502
+ <td>Large display</td>
503
+ <td>1200px and up</td>
504
+ <td>70px</td>
505
+ <td>30px</td>
506
+ </tr>
507
+ </tbody>
508
+ </table>
509
+
510
+ <h3>Requires meta tag</h3>
511
+ <p>To ensure devices display responsive pages properly, include the viewport meta tag.</p>
512
+ <pre class="prettyprint linenums">&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</pre>
513
+ </div><!-- /.span -->
514
+ </div><!-- /.row -->
515
+
516
+ <br>
517
+
518
+ <!-- Media query code -->
519
+ <h2>Using the media queries</h2>
520
+ <div class="row">
521
+ <div class="span4">
522
+ <p>Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:</p>
523
+ <ol>
524
+ <li>Use the compiled responsive version, bootstrap-responsive.css</li>
525
+ <li>Add @import "responsive.less" and recompile Bootstrap</li>
526
+ <li>Modify and recompile responsive.less as a separate file</li>
527
+ </ol>
528
+ <p><strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.</p>
529
+ </div><!-- /.span -->
530
+ <div class="span8">
531
+ <pre class="prettyprint linenums">
532
+ /* Landscape phones and down */
533
+ @media (max-width: 480px) { ... }
534
+
535
+ /* Landscape phone to portrait tablet */
536
+ @media (max-width: 767px) { ... }
537
+
538
+ /* Portrait tablet to landscape and desktop */
539
+ @media (min-width: 768px) and (max-width: 979px) { ... }
540
+
541
+ /* Large desktop */
542
+ @media (min-width: 1200px) { ... }
543
+ </pre>
544
+ </div><!-- /.span -->
545
+ </div><!-- /.row -->
546
+ <br>
547
+
548
+ <!-- Responsive utility classes -->
549
+ <h2>Responsive utility classes</h2>
550
+ <div class="row">
551
+ <div class="span4">
552
+ <h3>What are they</h2>
553
+ <p>For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.</p>
554
+ <h3>When to use</h2>
555
+ <p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.</p>
556
+ <p>For example, you might show a <code>&lt;select&gt;</code> element for nav on mobile layouts, but not on tablets or desktops.</p>
557
+ </div><!-- /.span -->
558
+ <div class="span8">
559
+ <h3>Support classes</h3>
560
+ <p>Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in <code>responsive.less</code>.</p>
561
+ <table class="table table-bordered table-striped responsive-utilities">
562
+ <thead>
563
+ <tr>
564
+ <th>Class</th>
565
+ <th>Phones <small>480px and below</small></th>
566
+ <th>Tablets <small>767px and below</small></th>
567
+ <th>Desktops <small>768px and above</small></th>
568
+ </tr>
569
+ </thead>
570
+ <tbody>
571
+ <tr>
572
+ <th><code>.visible-phone</code></th>
573
+ <td class="is-visible">Visible</td>
574
+ <td class="is-hidden">Hidden</td>
575
+ <td class="is-hidden">Hidden</td>
576
+ </tr>
577
+ <tr>
578
+ <th><code>.visible-tablet</code></th>
579
+ <td class="is-hidden">Hidden</td>
580
+ <td class="is-visible">Visible</td>
581
+ <td class="is-hidden">Hidden</td>
582
+ </tr>
583
+ <tr>
584
+ <th><code>.visible-desktop</code></th>
585
+ <td class="is-hidden">Hidden</td>
586
+ <td class="is-hidden">Hidden</td>
587
+ <td class="is-visible">Visible</td>
588
+ </tr>
589
+ <tr>
590
+ <th><code>.hidden-phone</code></th>
591
+ <td class="is-hidden">Hidden</td>
592
+ <td class="is-visible">Visible</td>
593
+ <td class="is-visible">Visible</td>
594
+ </tr>
595
+ <tr>
596
+ <th><code>.hidden-tablet</code></th>
597
+ <td class="is-visible">Visible</td>
598
+ <td class="is-hidden">Hidden</td>
599
+ <td class="is-visible">Visible</td>
600
+ </tr>
601
+ <tr>
602
+ <th><code>.hidden-desktop</code></th>
603
+ <td class="is-visible">Visible</td>
604
+ <td class="is-visible">Visible</td>
605
+ <td class="is-hidden">Hidden</td>
606
+ </tr>
607
+ </tbody>
608
+ </table>
609
+ <h3>Test case</h3>
610
+ <p>Resize your browser or load on different devices to test the above classes.</p>
611
+ <h4>Visible on...</h4>
612
+ <p>Green checkmarks indicate that class is visible in your current viewport.</p>
613
+ <ul class="responsive-utilities-test">
614
+ <li>Phone<span class="visible-phone">&#10004; Phone</span></li>
615
+ <li>Tablet<span class="visible-tablet">&#10004; Tablet</span></li>
616
+ <li>Desktop<span class="visible-desktop">&#10004; Desktop</span></li>
617
+ </ul>
618
+ <h4>Hidden on...</h4>
619
+ <p>Here, green checkmarks indicate that class is hidden in your current viewport.</p>
620
+ <ul class="responsive-utilities-test hidden-on">
621
+ <li>Phone<span class="hidden-phone">&#10004; Phone</span></li>
622
+ <li>Tablet<span class="hidden-tablet">&#10004; Tablet</span></li>
623
+ <li>Desktop<span class="hidden-desktop">&#10004; Desktop</span></li>
624
+ </ul>
625
+ </div><!-- /.span -->
626
+ </div><!-- /.row -->
627
+
628
+
629
+ <div class="row">
630
+ <div class="span4">
631
+ </div><!-- /.span -->
632
+ </div><!-- /.row -->
633
+ </section>
634
+
635
+
636
+ <!-- Footer
637
+ ================================================== -->
638
+ <footer class="footer">
639
+ <p class="pull-right"><a href="#">Back to top</a></p>
640
+ <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>
641
+ <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>
642
+ <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>
643
+ </footer>
644
+
645
+ </div><!-- /container -->
646
+
647
+
648
+
649
+ <!-- Le javascript
650
+ ================================================== -->
651
+ <!-- Placed at the end of the document so the pages load faster -->
652
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
653
+ <script src="assets/js/jquery.js"></script>
654
+ <script src="assets/js/google-code-prettify/prettify.js"></script>
655
+ <script src="assets/js/bootstrap-transition.js"></script>
656
+ <script src="assets/js/bootstrap-alert.js"></script>
657
+ <script src="assets/js/bootstrap-modal.js"></script>
658
+ <script src="assets/js/bootstrap-dropdown.js"></script>
659
+ <script src="assets/js/bootstrap-scrollspy.js"></script>
660
+ <script src="assets/js/bootstrap-tab.js"></script>
661
+ <script src="assets/js/bootstrap-tooltip.js"></script>
662
+ <script src="assets/js/bootstrap-popover.js"></script>
663
+ <script src="assets/js/bootstrap-button.js"></script>
664
+ <script src="assets/js/bootstrap-collapse.js"></script>
665
+ <script src="assets/js/bootstrap-carousel.js"></script>
666
+ <script src="assets/js/bootstrap-typeahead.js"></script>
667
+ <script src="assets/js/application.js"></script>
668
+
669
+
670
+ </body>
671
+ </html>