twigg-app 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/data/quips.yml +45 -0
  3. data/lib/twigg-app/app/quips.rb +13 -0
  4. data/lib/twigg-app/app/routes.rb +43 -0
  5. data/lib/twigg-app/app/server.rb +146 -0
  6. data/lib/twigg-app/app/version.rb +5 -0
  7. data/lib/twigg-app/app.rb +14 -0
  8. data/lib/twigg-app.rb +5 -0
  9. data/public/application.js +106 -0
  10. data/public/favicon.ico +0 -0
  11. data/public/favicon.png +0 -0
  12. data/public/vendor/bootstrap/CNAME +1 -0
  13. data/public/vendor/bootstrap/CONTRIBUTING.md +66 -0
  14. data/public/vendor/bootstrap/Gruntfile.js +195 -0
  15. data/public/vendor/bootstrap/LICENSE +176 -0
  16. data/public/vendor/bootstrap/README.md +139 -0
  17. data/public/vendor/bootstrap/_config.yml +28 -0
  18. data/public/vendor/bootstrap/_includes/ads.html +1 -0
  19. data/public/vendor/bootstrap/_includes/footer.html +33 -0
  20. data/public/vendor/bootstrap/_includes/header.html +43 -0
  21. data/public/vendor/bootstrap/_includes/nav-components.html +135 -0
  22. data/public/vendor/bootstrap/_includes/nav-css.html +77 -0
  23. data/public/vendor/bootstrap/_includes/nav-customize.html +40 -0
  24. data/public/vendor/bootstrap/_includes/nav-getting-started.html +28 -0
  25. data/public/vendor/bootstrap/_includes/nav-javascript.html +88 -0
  26. data/public/vendor/bootstrap/_includes/nav-main.html +32 -0
  27. data/public/vendor/bootstrap/_includes/old-bs-docs.html +8 -0
  28. data/public/vendor/bootstrap/_includes/social-buttons.html +16 -0
  29. data/public/vendor/bootstrap/_layouts/customize.html +52 -0
  30. data/public/vendor/bootstrap/_layouts/default.html +72 -0
  31. data/public/vendor/bootstrap/_layouts/home.html +43 -0
  32. data/public/vendor/bootstrap/assets/css/docs.css +896 -0
  33. data/public/vendor/bootstrap/assets/css/pygments-manni.css +66 -0
  34. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  35. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  36. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  37. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  38. data/public/vendor/bootstrap/assets/ico/favicon.png +0 -0
  39. data/public/vendor/bootstrap/assets/js/application.js +82 -0
  40. data/public/vendor/bootstrap/assets/js/customizer.js +175 -0
  41. data/public/vendor/bootstrap/assets/js/holder.js +419 -0
  42. data/public/vendor/bootstrap/assets/js/html5shiv.js +8 -0
  43. data/public/vendor/bootstrap/assets/js/jquery.bbq.min.js +1287 -0
  44. data/public/vendor/bootstrap/assets/js/jquery.js +5 -0
  45. data/public/vendor/bootstrap/assets/js/jszip.js +1425 -0
  46. data/public/vendor/bootstrap/assets/js/less.js +9 -0
  47. data/public/vendor/bootstrap/assets/js/respond.min.js +6 -0
  48. data/public/vendor/bootstrap/assets/js/uglify.js +14 -0
  49. data/public/vendor/bootstrap/bower.json +11 -0
  50. data/public/vendor/bootstrap/browserstack.json +37 -0
  51. data/public/vendor/bootstrap/components.html +2555 -0
  52. data/public/vendor/bootstrap/composer.json +20 -0
  53. data/public/vendor/bootstrap/css.html +2276 -0
  54. data/public/vendor/bootstrap/customize.html +1480 -0
  55. data/public/vendor/bootstrap/dist/css/bootstrap.css +5579 -0
  56. data/public/vendor/bootstrap/dist/css/bootstrap.min.css +9 -0
  57. data/public/vendor/bootstrap/dist/js/bootstrap.js +1993 -0
  58. data/public/vendor/bootstrap/dist/js/bootstrap.min.js +6 -0
  59. data/public/vendor/bootstrap/getting-started.html +375 -0
  60. data/public/vendor/bootstrap/index.html +16 -0
  61. data/public/vendor/bootstrap/javascript.html +1904 -0
  62. data/public/vendor/bootstrap/js/affix.js +126 -0
  63. data/public/vendor/bootstrap/js/alert.js +98 -0
  64. data/public/vendor/bootstrap/js/button.js +109 -0
  65. data/public/vendor/bootstrap/js/carousel.js +217 -0
  66. data/public/vendor/bootstrap/js/collapse.js +179 -0
  67. data/public/vendor/bootstrap/js/dropdown.js +154 -0
  68. data/public/vendor/bootstrap/js/modal.js +244 -0
  69. data/public/vendor/bootstrap/js/popover.js +117 -0
  70. data/public/vendor/bootstrap/js/scrollspy.js +158 -0
  71. data/public/vendor/bootstrap/js/tab.js +135 -0
  72. data/public/vendor/bootstrap/js/tests/index.html +52 -0
  73. data/public/vendor/bootstrap/js/tests/phantom.js +63 -0
  74. data/public/vendor/bootstrap/js/tests/server.js +14 -0
  75. data/public/vendor/bootstrap/js/tests/unit/affix.js +25 -0
  76. data/public/vendor/bootstrap/js/tests/unit/alert.js +62 -0
  77. data/public/vendor/bootstrap/js/tests/unit/button.js +116 -0
  78. data/public/vendor/bootstrap/js/tests/unit/carousel.js +87 -0
  79. data/public/vendor/bootstrap/js/tests/unit/collapse.js +164 -0
  80. data/public/vendor/bootstrap/js/tests/unit/dropdown.js +219 -0
  81. data/public/vendor/bootstrap/js/tests/unit/modal.js +177 -0
  82. data/public/vendor/bootstrap/js/tests/unit/phantom.js +69 -0
  83. data/public/vendor/bootstrap/js/tests/unit/popover.js +133 -0
  84. data/public/vendor/bootstrap/js/tests/unit/scrollspy.js +37 -0
  85. data/public/vendor/bootstrap/js/tests/unit/tab.js +86 -0
  86. data/public/vendor/bootstrap/js/tests/unit/tooltip.js +437 -0
  87. data/public/vendor/bootstrap/js/tests/unit/transition.js +13 -0
  88. data/public/vendor/bootstrap/js/tests/vendor/jquery.js +5 -0
  89. data/public/vendor/bootstrap/js/tests/vendor/qunit.css +232 -0
  90. data/public/vendor/bootstrap/js/tests/vendor/qunit.js +1510 -0
  91. data/public/vendor/bootstrap/js/tooltip.js +382 -0
  92. data/public/vendor/bootstrap/js/transition.js +56 -0
  93. data/public/vendor/bootstrap/less/alerts.less +71 -0
  94. data/public/vendor/bootstrap/less/badges.less +51 -0
  95. data/public/vendor/bootstrap/less/bootstrap.less +63 -0
  96. data/public/vendor/bootstrap/less/breadcrumbs.less +23 -0
  97. data/public/vendor/bootstrap/less/button-groups.less +244 -0
  98. data/public/vendor/bootstrap/less/buttons.less +159 -0
  99. data/public/vendor/bootstrap/less/carousel.less +204 -0
  100. data/public/vendor/bootstrap/less/close.less +33 -0
  101. data/public/vendor/bootstrap/less/code.less +56 -0
  102. data/public/vendor/bootstrap/less/component-animations.less +29 -0
  103. data/public/vendor/bootstrap/less/dropdowns.less +176 -0
  104. data/public/vendor/bootstrap/less/forms.less +332 -0
  105. data/public/vendor/bootstrap/less/grid.less +340 -0
  106. data/public/vendor/bootstrap/less/input-groups.less +127 -0
  107. data/public/vendor/bootstrap/less/jumbotron.less +29 -0
  108. data/public/vendor/bootstrap/less/labels.less +54 -0
  109. data/public/vendor/bootstrap/less/list-group.less +88 -0
  110. data/public/vendor/bootstrap/less/media.less +56 -0
  111. data/public/vendor/bootstrap/less/mixins.less +693 -0
  112. data/public/vendor/bootstrap/less/modals.less +133 -0
  113. data/public/vendor/bootstrap/less/navbar.less +559 -0
  114. data/public/vendor/bootstrap/less/navs.less +228 -0
  115. data/public/vendor/bootstrap/less/normalize.less +396 -0
  116. data/public/vendor/bootstrap/less/pager.less +55 -0
  117. data/public/vendor/bootstrap/less/pagination.less +72 -0
  118. data/public/vendor/bootstrap/less/panels.less +128 -0
  119. data/public/vendor/bootstrap/less/popovers.less +133 -0
  120. data/public/vendor/bootstrap/less/print.less +100 -0
  121. data/public/vendor/bootstrap/less/progress-bars.less +99 -0
  122. data/public/vendor/bootstrap/less/responsive-utilities.less +149 -0
  123. data/public/vendor/bootstrap/less/scaffolding.less +111 -0
  124. data/public/vendor/bootstrap/less/tables.less +211 -0
  125. data/public/vendor/bootstrap/less/thumbnails.less +42 -0
  126. data/public/vendor/bootstrap/less/tooltip.less +95 -0
  127. data/public/vendor/bootstrap/less/type.less +238 -0
  128. data/public/vendor/bootstrap/less/utilities.less +42 -0
  129. data/public/vendor/bootstrap/less/variables.less +607 -0
  130. data/public/vendor/bootstrap/less/wells.less +29 -0
  131. data/public/vendor/bootstrap/package.json +33 -0
  132. data/public/vendor/bootstrap-glyphicons/CHANGELOG.md +3 -0
  133. data/public/vendor/bootstrap-glyphicons/CNAME +1 -0
  134. data/public/vendor/bootstrap-glyphicons/CONTRIBUTING.md +54 -0
  135. data/public/vendor/bootstrap-glyphicons/LICENSE +19 -0
  136. data/public/vendor/bootstrap-glyphicons/README.md +61 -0
  137. data/public/vendor/bootstrap-glyphicons/_config.yml +12 -0
  138. data/public/vendor/bootstrap-glyphicons/composer.json +9 -0
  139. data/public/vendor/bootstrap-glyphicons/css/bootstrap-glyphicons.css +2 -0
  140. data/public/vendor/bootstrap-glyphicons/css/bootstrap.css +9 -0
  141. data/public/vendor/bootstrap-glyphicons/css/docs.css +160 -0
  142. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.eot +0 -0
  143. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.otf +0 -0
  144. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.svg +175 -0
  145. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.ttf +0 -0
  146. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.woff +0 -0
  147. data/public/vendor/bootstrap-glyphicons/index.html +255 -0
  148. data/public/vendor/bootstrap-glyphicons/less/bootstrap-glyphicons.less +201 -0
  149. data/public/vendor/bootstrap-glyphicons/package.json +18 -0
  150. data/public/vendor/d3/LICENSE +26 -0
  151. data/public/vendor/d3/README.md +7 -0
  152. data/public/vendor/d3/bower.json +25 -0
  153. data/public/vendor/d3/d3.js +8810 -0
  154. data/public/vendor/d3/d3.min.js +5 -0
  155. data/public/vendor/jquery/README.md +11 -0
  156. data/public/vendor/jquery/bower.json +11 -0
  157. data/public/vendor/jquery/component.json +15 -0
  158. data/public/vendor/jquery/composer.json +35 -0
  159. data/public/vendor/jquery/jquery-migrate.js +511 -0
  160. data/public/vendor/jquery/jquery-migrate.min.js +3 -0
  161. data/public/vendor/jquery/jquery.js +8829 -0
  162. data/public/vendor/jquery/jquery.min.js +6 -0
  163. data/public/vendor/jquery/jquery.min.map +1 -0
  164. data/public/vendor/jquery/package.json +7 -0
  165. data/public/vendor/replacejs/CHANGELOG.md +3 -0
  166. data/public/vendor/replacejs/MIT-LICENSE.txt +20 -0
  167. data/public/vendor/replacejs/README.md +123 -0
  168. data/public/vendor/replacejs/bower.json +24 -0
  169. data/public/vendor/replacejs/primer.js +17 -0
  170. data/public/vendor/replacejs/primer.min.js +1 -0
  171. data/public/vendor/replacejs/replace.js +182 -0
  172. data/public/vendor/stupidtable.js +158 -0
  173. data/views/dashboard.haml +17 -0
  174. data/views/layout.haml +60 -0
  175. metadata +330 -0
@@ -0,0 +1,2276 @@
1
+ ---
2
+ layout: default
3
+ title: CSS
4
+ slug: css
5
+ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system."
6
+ base_url: "../"
7
+ ---
8
+
9
+
10
+ <!-- Global Bootstrap settings
11
+ ================================================== -->
12
+ <div class="bs-docs-section">
13
+ <div class="page-header">
14
+ <h1 id="overview">Overview</h1>
15
+ </div>
16
+ <p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p>
17
+
18
+ <h3 id="overview-doctype">HTML5 doctype required</h3>
19
+ <p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
20
+ {% highlight html %}
21
+ <!DOCTYPE html>
22
+ <html lang="en">
23
+ ...
24
+ </html>
25
+ {% endhighlight %}
26
+
27
+ <h3 id="overview-mobile">Mobile first</h3>
28
+ <p>With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p>
29
+ <p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code>&lt;head&gt;</code>.</p>
30
+ {% highlight html %}
31
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
32
+ {% endhighlight %}
33
+
34
+ <h3 id="overview-responsive-images">Responsive images</h3>
35
+ <p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code> and <code>height: auto;</code> to the image so that it scales nicely to the parent element.</p>
36
+ {% highlight html %}
37
+ <img src="..." class="img-responsive" alt="Responsive image">
38
+ {% endhighlight %}
39
+
40
+ <h3 id="overview-type-links">Typography and links</h3>
41
+ <p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
42
+ <ul>
43
+ <li>Remove <code>margin</code> on the body</li>
44
+ <li>Set <code>background-color: white;</code> on the <code>body</code></li>
45
+ <li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li>
46
+ <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li>
47
+ </ul>
48
+ <p>These styles can be found within <code>scaffolding.less</code>.</p>
49
+
50
+ <h3 id="overview-normalize">Normalize reset</h3>
51
+ <p>For improved cross-browser rendering, we use <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
52
+
53
+ <h3 id="overview-container">Centering with container</h3>
54
+ <p>Easily center a page's contents by wrapping its contents in a <code>.container</code>. Containers set <code>max-width</code> at various media query breakpoints to match our grid system.</p>
55
+ {% highlight html %}
56
+ <div class="container">
57
+ ...
58
+ </div>
59
+ {% endhighlight %}
60
+ </div>
61
+
62
+
63
+
64
+ <!-- Glyphicons icon font
65
+ ================================================== -->
66
+ <div class="bs-docs-section">
67
+ <div class="page-header">
68
+ <h1 id="glyphicons">Glyphicons</h1>
69
+ </div>
70
+ <p class="lead">With the launch of Bootstrap 3, icons have been moved to a <a href="https://github.com/twbs/bootstrap-glyphicons">separate repository</a>. This keeps the primary project as lean as possible, makes it easier for folks to swap icon libraries, and makes Glyphicons icon fonts more readily available to more people outside Bootstrap.</p>
71
+ <p class="lead">
72
+ <a href="http://glyphicons.getbootstrap.com/" class="btn btn-default btn-lg">Visit Glyphicons for Bootstrap</a> or <a href="https://github.com/twbs/bootstrap-glyphicons">download from GitHub</a>
73
+ </p>
74
+ </div>
75
+
76
+
77
+
78
+ <!-- Grid system
79
+ ================================================== -->
80
+ <div class="bs-docs-section">
81
+ <div class="page-header">
82
+ <h1 id="grid">Grid system</h1>
83
+ </div>
84
+ <p class="lead">Bootstrap includes a responsive, mobile-first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes <a href="#grid-example-basic">predefined classes</a> for easy layout options, as well as powerful <a href="#grid-less">mixins for generating more semantic layouts</a>.</p>
85
+
86
+ <h3 id="grid-media-queries">Media queries</h3>
87
+ <p>We use the following media queries to create the key breakpoints in our grid system.</p>
88
+ {% highlight css %}
89
+ /* Extra small devices (phones, up to 480px) */
90
+ /* No media query since this is the default in Bootstrap */
91
+
92
+ /* Small devices (tablets, 768px and up) */
93
+ @media (min-width: @screen-tablet) { ... }
94
+
95
+ /* Medium devices (tablets, 992px and up) */
96
+ @media (min-width: @screen-desktop) { ... }
97
+
98
+ /* Large devices (large desktops, 1200px and up) */
99
+ @media (min-width: @screen-large-desktop) { ... }
100
+ {% endhighlight %}
101
+ <p>We occasionally expand on these media queries to include a <code>max-width</code> to limit CSS to a narrower set of devices.</p>
102
+ {% highlight css %}
103
+ @media (max-width: @screen-phone-max) { ... }
104
+ @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) { ... }
105
+ @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) { ... }
106
+ @media (min-width: @screen-large-desktop) { ... }
107
+ {% endhighlight %}
108
+
109
+ <h3 id="grid-options">Grid options</h3>
110
+ <p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p>
111
+ <div class="bs-table-scrollable">
112
+ <table class="table table-bordered table-striped bs-table">
113
+ <thead>
114
+ <tr>
115
+ <th></th>
116
+ <th>
117
+ Extra small devices
118
+ <small>Phones (&lt;768px)</small>
119
+ </th>
120
+ <th>
121
+ Small devices
122
+ <small>Tablets (&gt;768px)</small>
123
+ </th>
124
+ <th>
125
+ Medium devices
126
+ <small>Desktops (&gt;992px)</small>
127
+ </th>
128
+ <th>
129
+ Large devices
130
+ <small>Desktops (&gt;1200px)</small>
131
+ </th>
132
+ </tr>
133
+ </thead>
134
+ <tbody>
135
+ <tr>
136
+ <th>Grid behavior</th>
137
+ <td>Horizontal at all times</td>
138
+ <td colspan="3">Collapsed to start, horizontal above breakpoints</td>
139
+ </tr>
140
+ <tr>
141
+ <th>Max container width</th>
142
+ <td>None (auto)</td>
143
+ <td>720px</td>
144
+ <td>940px</td>
145
+ <td>1140px</td>
146
+ </tr>
147
+ <tr>
148
+ <th>Class prefix</th>
149
+ <td><code>.col-xs</code></td>
150
+ <td><code>.col-sm-</code></td>
151
+ <td><code>.col-md-</code></td>
152
+ <td><code>.col-lg-</code></td>
153
+ </tr>
154
+ <tr>
155
+ <th># of columns</th>
156
+ <td colspan="4">12</td>
157
+ </tr>
158
+ <tr>
159
+ <th>Max column width</th>
160
+ <td class="text-muted">Auto</td>
161
+ <td>60px</td>
162
+ <td>78px</td>
163
+ <td>95px</td>
164
+ </tr>
165
+ <tr>
166
+ <th>Gutter width</th>
167
+ <td colspan="4">30px (15px on each side of a column)</td>
168
+ </tr>
169
+ <tr>
170
+ <th>Nestable</th>
171
+ <td colspan="4">Yes</td>
172
+ </tr>
173
+ <tr>
174
+ <th>Offsets</th>
175
+ <td colspan="1" class="text-muted">N/A</td>
176
+ <td colspan="3">Yes</td>
177
+ </tr>
178
+ <tr>
179
+ <th>Column ordering</th>
180
+ <td class="text-muted">N/A</td>
181
+ <td colspan="3">Yes</td>
182
+ </tr>
183
+ </tbody>
184
+ </table>
185
+ </div>
186
+
187
+ <h3 id="grid-example-basic">Example: Stacked-to-horizontal</h3>
188
+ <p>Using a single set of <code>.col-md-*</code> grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices.</p>
189
+ <div class="bs-docs-grid">
190
+ <div class="row show-grid">
191
+ <div class="col-md-1">1</div>
192
+ <div class="col-md-1">1</div>
193
+ <div class="col-md-1">1</div>
194
+ <div class="col-md-1">1</div>
195
+ <div class="col-md-1">1</div>
196
+ <div class="col-md-1">1</div>
197
+ <div class="col-md-1">1</div>
198
+ <div class="col-md-1">1</div>
199
+ <div class="col-md-1">1</div>
200
+ <div class="col-md-1">1</div>
201
+ <div class="col-md-1">1</div>
202
+ <div class="col-md-1">1</div>
203
+ </div>
204
+ <div class="row show-grid">
205
+ <div class="col-md-8">8</div>
206
+ <div class="col-md-4">4</div>
207
+ </div>
208
+ <div class="row show-grid">
209
+ <div class="col-md-4">4</div>
210
+ <div class="col-md-4">4</div>
211
+ <div class="col-md-4">4</div>
212
+ </div>
213
+ <div class="row show-grid">
214
+ <div class="col-md-6">6</div>
215
+ <div class="col-md-6">6</div>
216
+ </div>
217
+ </div>
218
+ {% highlight html %}
219
+ <div class="row">
220
+ <div class="col-md-1">1</div>
221
+ <div class="col-md-1">1</div>
222
+ <div class="col-md-1">1</div>
223
+ <div class="col-md-1">1</div>
224
+ <div class="col-md-1">1</div>
225
+ <div class="col-md-1">1</div>
226
+ <div class="col-md-1">1</div>
227
+ <div class="col-md-1">1</div>
228
+ <div class="col-md-1">1</div>
229
+ <div class="col-md-1">1</div>
230
+ <div class="col-md-1">1</div>
231
+ <div class="col-md-1">1</div>
232
+ </div>
233
+ <div class="row">
234
+ <div class="col-md-8">8</div>
235
+ <div class="col-md-4">4</div>
236
+ </div>
237
+ <div class="row">
238
+ <div class="col-md-4">4</div>
239
+ <div class="col-md-4">4</div>
240
+ <div class="col-md-4">4</div>
241
+ </div>
242
+ <div class="row">
243
+ <div class="col-md-6">6</div>
244
+ <div class="col-md-6">6</div>
245
+ </div>
246
+ {% endhighlight %}
247
+
248
+ <h3 id="grid-example-mixed">Example: Combining mobile with desktop</h3>
249
+ <p>Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding <code>.col-xs-*</code> <code>.col-md-*</code> to your columns. See the example below for a better idea of how it all works.</p>
250
+ <div class="bs-docs-grid">
251
+ <div class="row show-grid">
252
+ <div class="col-xs-12 col-md-8">8</div>
253
+ <div class="col-xs-6 col-md-4">4</div>
254
+ </div>
255
+ <div class="row show-grid">
256
+ <div class="col-xs-6 col-md-4">4</div>
257
+ <div class="col-xs-6 col-md-4">4</div>
258
+ <div class="col-xs-6 col-md-4">4</div>
259
+ </div>
260
+ <div class="row show-grid">
261
+ <div class="col-xs-6 col-md-6">6</div>
262
+ <div class="col-xs-6 col-md-6">6</div>
263
+ </div>
264
+ </div>
265
+ {% highlight html %}
266
+ <!-- Stack the columns on mobile by making one full-width and the other half-width -->
267
+ <div class="row">
268
+ <div class="col-xs-12 col-md-8">8</div>
269
+ <div class="col-xs-6 col-md-4">4</div>
270
+ </div>
271
+
272
+ <!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
273
+ <div class="row">
274
+ <div class="col-xs-6 col-md-4">4</div>
275
+ <div class="col-xs-6 col-md-4">4</div>
276
+ <div class="col-xs-6 col-md-4">4</div>
277
+ </div>
278
+
279
+ <!-- Columns are always 50% wide, on mobile and desktop -->
280
+ <div class="row">
281
+ <div class="col-xs-6 col-md-6">6</div>
282
+ <div class="col-xs-6 col-md-6">6</div>
283
+ </div>
284
+ {% endhighlight %}
285
+
286
+ <h3 id="grid-example-mixed-complete">Example: Mobile, tablet, and desktop</h3>
287
+ <p>Build on the previous example by creating even more dynamic and powerful layouts with tablet <code>.col-sm-*</code> classes.</p>
288
+ <div class="bs-docs-grid">
289
+ <div class="row show-grid">
290
+ <div class="col-xs-12 col-sm-8 col-md-8">.col-xs-12 .col-sm-8 .col-md-8</div>
291
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
292
+ </div>
293
+ <div class="row show-grid">
294
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
295
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
296
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
297
+ </div>
298
+ <div class="row show-grid">
299
+ <div class="col-6 col-sm-6 col-md-6">.col-xs-6 .col-sm-6 .col-md-6</div>
300
+ <div class="col-6 col-sm-6 col-md-6">.col-xs-6 .col-sm-6 .col-md-6</div>
301
+ </div>
302
+ </div>
303
+ {% highlight html %}
304
+ <div class="row">
305
+ <div class="col-xs-12 col-sm-8 col-md-8">.col-xs-12 .col-sm-8 .col-md-8</div>
306
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
307
+ </div>
308
+ <div class="row">
309
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
310
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
311
+ <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
312
+ </div>
313
+ <div class="row">
314
+ <div class="col-xs-6 col-sm-6 col-md-6">.col-xs-6 .col-sm-6 .col-md-6</div>
315
+ <div class="col-xs-6 col-sm-6 col-md-6">.col-xs-6 .col-sm-6 .col-md-6</div>
316
+ </div>
317
+ {% endhighlight %}
318
+
319
+ <div class="bs-callout bs-callout-danger">
320
+ <h4>Need more examples?</h4>
321
+ <p>We dive into more grid layouts in a separate page, free of chrome and documentation to better show you the power of the grid.</p>
322
+ <p><a class="btn btn-danger" target="_blank" href="http://examples.getbootstrap.com/grid/">More grid examples</a></p>
323
+ </div>
324
+
325
+ <h3 id="grid-offsetting">Offsetting columns</h3>
326
+ <p>Move columns to the right using <code>.col-md-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-md-offset-4</code> moves <code>.col-md-4</code> over four columns.</p>
327
+ <div class="bs-docs-grid">
328
+ <div class="row show-grid">
329
+ <div class="col-md-4">4</div>
330
+ <div class="col-md-4 col-md-offset-4">4 offset 4</div>
331
+ </div><!-- /row -->
332
+ <div class="row show-grid">
333
+ <div class="col-md-3 col-md-offset-3">3 offset 3</div>
334
+ <div class="col-md-3 col-md-offset-3">3 offset 3</div>
335
+ </div><!-- /row -->
336
+ <div class="row show-grid">
337
+ <div class="col-md-6 col-md-offset-3">6 offset 3</div>
338
+ </div><!-- /row -->
339
+ </div>
340
+ {% highlight html %}
341
+ <div class="row">
342
+ <div class="col-md-4">...</div>
343
+ <div class="col-md-4 col-md-offset-4">...</div>
344
+ </div>
345
+ <div class="row">
346
+ <div class="col-md-3 col-md-offset-3">3 offset 3</div>
347
+ <div class="col-md-3 col-md-offset-3">3 offset 3</div>
348
+ </div>
349
+ <div class="row">
350
+ <div class="col-md-6 col-md-offset-3">...</div>
351
+ </div>
352
+ {% endhighlight %}
353
+
354
+
355
+ <h3 id="grid-nesting">Nesting columns</h3>
356
+ <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-md-*</code> columns within an existing <code>.col-md-*</code> column. Nested rows should include a set of columns that add up to 12.</p>
357
+ <div class="row show-grid">
358
+ <div class="col-md-9">
359
+ Level 1: 9 columns
360
+ <div class="row show-grid">
361
+ <div class="col-md-6">
362
+ Level 2: 6 columns
363
+ </div>
364
+ <div class="col-md-6">
365
+ Level 2: 6 columns
366
+ </div>
367
+ </div>
368
+ </div>
369
+ </div>
370
+ {% highlight html %}
371
+ <div class="row">
372
+ <div class="col-md-9">
373
+ Level 1: 9 columns
374
+ <div class="row">
375
+ <div class="col-md-6">
376
+ Level 2: 6 columns
377
+ </div>
378
+ <div class="col-md-6">
379
+ Level 2: 6 columns
380
+ </div>
381
+ </div>
382
+ </div>
383
+ </div>
384
+ {% endhighlight %}
385
+
386
+ <h3 id="grid-column-ordering">Column ordering</h3>
387
+ <p>Easily change the order of our built-in grid columns with <code>.col-md-push-*</code> and <code>.col-md-pull-*</code> modifier classes.</p>
388
+ <div class="row show-grid">
389
+ <div class="col-md-9 col-md-push-3">9</div>
390
+ <div class="col-md-3 col-md-pull-9">3</div>
391
+ </div>
392
+
393
+ {% highlight html %}
394
+ <div class="row">
395
+ <div class="col-md-9 col-md-push-3">9</div>
396
+ <div class="col-md-3 col-md-pull-9">3</div>
397
+ </div>
398
+ {% endhighlight %}
399
+
400
+ <h3 id="grid-less">LESS mixins and variables</h3>
401
+ <p>In addition to <a href="#grid-example-basic">prebuilt grid classes</a> for fast layouts, Bootstrap includes LESS variables and mixins for quickly generating your own simple, semantic layouts.</p>
402
+
403
+ <h4>Variables</h4>
404
+ <p>Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.</p>
405
+ {% highlight css %}
406
+ @grid-columns: 12;
407
+ @grid-gutter-width: 30px;
408
+ @grid-float-breakpoint: 768px;
409
+ {% endhighlight %}
410
+
411
+ <h4>Mixins</h4>
412
+ <p>Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.</p>
413
+ {% highlight css %}
414
+ // Creates a wrapper for a series of columns
415
+ .make-row(@gutter: @grid-gutter-width) {
416
+ // Then clear the floated columns
417
+ .clearfix();
418
+
419
+ @media (min-width: @screen-small) {
420
+ margin-left: (@gutter / -2);
421
+ margin-right: (@gutter / -2);
422
+ }
423
+
424
+ // Negative margin nested rows out to align the content of columns
425
+ .row {
426
+ margin-left: (@gutter / -2);
427
+ margin-right: (@gutter / -2);
428
+ }
429
+ }
430
+
431
+ // Generate the extra small columns
432
+ .make-xs-column(@columns; @gutter: @grid-gutter-width) {
433
+ position: relative;
434
+ // Prevent columns from collapsing when empty
435
+ min-height: 1px;
436
+ // Inner gutter via padding
437
+ padding-left: (@gutter / 2);
438
+ padding-right: (@gutter / 2);
439
+
440
+ // Calculate width based on number of columns available
441
+ @media (min-width: @grid-float-breakpoint) {
442
+ float: left;
443
+ width: percentage((@columns / @grid-columns));
444
+ }
445
+ }
446
+
447
+ // Generate the small columns
448
+ .make-sm-column(@columns; @gutter: @grid-gutter-width) {
449
+ position: relative;
450
+ // Prevent columns from collapsing when empty
451
+ min-height: 1px;
452
+ // Inner gutter via padding
453
+ padding-left: (@gutter / 2);
454
+ padding-right: (@gutter / 2);
455
+
456
+ // Calculate width based on number of columns available
457
+ @media (min-width: @screen-small) {
458
+ float: left;
459
+ width: percentage((@columns / @grid-columns));
460
+ }
461
+ }
462
+
463
+ // Generate the small column offsets
464
+ .make-sm-column-offset(@columns) {
465
+ @media (min-width: @screen-small) {
466
+ margin-left: percentage((@columns / @grid-columns));
467
+ }
468
+ }
469
+ .make-sm-column-push(@columns) {
470
+ @media (min-width: @screen-small) {
471
+ left: percentage((@columns / @grid-columns));
472
+ }
473
+ }
474
+ .make-sm-column-pull(@columns) {
475
+ @media (min-width: @screen-small) {
476
+ right: percentage((@columns / @grid-columns));
477
+ }
478
+ }
479
+
480
+ // Generate the medium columns
481
+ .make-md-column(@columns; @gutter: @grid-gutter-width) {
482
+ position: relative;
483
+ // Prevent columns from collapsing when empty
484
+ min-height: 1px;
485
+ // Inner gutter via padding
486
+ padding-left: (@gutter / 2);
487
+ padding-right: (@gutter / 2);
488
+
489
+ // Calculate width based on number of columns available
490
+ @media (min-width: @screen-medium) {
491
+ float: left;
492
+ width: percentage((@columns / @grid-columns));
493
+ }
494
+ }
495
+
496
+ // Generate the large column offsets
497
+ .make-md-column-offset(@columns) {
498
+ @media (min-width: @screen-medium) {
499
+ margin-left: percentage((@columns / @grid-columns));
500
+ }
501
+ }
502
+ .make-md-column-push(@columns) {
503
+ @media (min-width: @screen-medium) {
504
+ left: percentage((@columns / @grid-columns));
505
+ }
506
+ }
507
+ .make-md-column-pull(@columns) {
508
+ @media (min-width: @screen-medium) {
509
+ right: percentage((@columns / @grid-columns));
510
+ }
511
+ }
512
+
513
+ // Generate the large columns
514
+ .make-lg-column(@columns; @gutter: @grid-gutter-width) {
515
+ position: relative;
516
+ // Prevent columns from collapsing when empty
517
+ min-height: 1px;
518
+ // Inner gutter via padding
519
+ padding-left: (@gutter / 2);
520
+ padding-right: (@gutter / 2);
521
+
522
+ // Calculate width based on number of columns available
523
+ @media (min-width: @screen-large) {
524
+ float: left;
525
+ width: percentage((@columns / @grid-columns));
526
+ }
527
+ }
528
+
529
+ // Generate the large column offsets
530
+ .make-lg-column-offset(@columns) {
531
+ @media (min-width: @screen-large) {
532
+ margin-left: percentage((@columns / @grid-columns));
533
+ }
534
+ }
535
+ .make-lg-column-push(@columns) {
536
+ @media (min-width: @screen-large) {
537
+ left: percentage((@columns / @grid-columns));
538
+ }
539
+ }
540
+ .make-lg-column-pull(@columns) {
541
+ @media (min-width: @screen-large) {
542
+ right: percentage((@columns / @grid-columns));
543
+ }
544
+ }
545
+ {% endhighlight %}
546
+
547
+ <h4>Example usage</h4>
548
+ <p>You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.</p>
549
+ {% highlight css %}
550
+ .wrapper {
551
+ .make-row();
552
+ }
553
+ .content-main {
554
+ .make-lg-column(8);
555
+ }
556
+ .content-secondary {
557
+ .make-lg-column(3);
558
+ .make-lg-column-offset(1);
559
+ }
560
+ {% endhighlight %}
561
+ {% highlight html %}
562
+ <div class="wrapper">
563
+ <div class="content-main">...</div>
564
+ <div class="content-secondary">...</div>
565
+ </div>
566
+ {% endhighlight %}
567
+
568
+ </div>
569
+
570
+
571
+
572
+
573
+ <!-- Typography
574
+ ================================================== -->
575
+ <div class="bs-docs-section">
576
+ <div class="page-header">
577
+ <h1 id="type">Typography</h1>
578
+ </div>
579
+
580
+ <!-- Headings -->
581
+ <h2 id="type-headings">Headings</h2>
582
+ <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p>
583
+
584
+ <div class="bs-example bs-example-type">
585
+ <table class="table">
586
+ <tbody>
587
+ <tr>
588
+ <td><h1>Bootstrap heading</h1></td>
589
+ <td>Semibold 38px</td>
590
+ </tr>
591
+ <tr>
592
+ <td><h2>Bootstrap heading</h2></td>
593
+ <td>Semibold 32px</td>
594
+ </tr>
595
+ <tr>
596
+ <td><h3>Bootstrap heading</h3></td>
597
+ <td>Semibold 24px</td>
598
+ </tr>
599
+ <tr>
600
+ <td><h4>Bootstrap heading</h4></td>
601
+ <td>Semibold 18px</td>
602
+ </tr>
603
+ <tr>
604
+ <td><h5>Bootstrap heading</h5></td>
605
+ <td>Semibold 14px</td>
606
+ </tr>
607
+ <tr>
608
+ <td><h6>Bootstrap heading</h6></td>
609
+ <td>Semibold 12px</td>
610
+ </tr>
611
+ </tbody>
612
+ </table>
613
+ </div>
614
+ {% highlight html %}
615
+ <h1>...</h1>
616
+ <h2>...</h2>
617
+ <h3>...</h3>
618
+ <h4>...</h4>
619
+ <h5>...</h5>
620
+ <h6>...</h6>
621
+ {% endhighlight %}
622
+
623
+ <!-- Body copy -->
624
+ <h2 id="type-body-copy">Body copy</h2>
625
+ <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>1.428</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p>
626
+ <div class="bs-example">
627
+ <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
628
+ <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
629
+ <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
630
+ </div>
631
+ {% highlight html %}
632
+ <p>...</p>
633
+ {% endhighlight %}
634
+
635
+ <!-- Body copy .lead -->
636
+ <h3>Lead body copy</h3>
637
+ <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
638
+ <div class="bs-example">
639
+ <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
640
+ </div>
641
+ {% highlight html %}
642
+ <p class="lead">...</p>
643
+ {% endhighlight %}
644
+
645
+ <!-- Using LESS -->
646
+ <h3>Built with Less</h3>
647
+ <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
648
+
649
+
650
+ <!-- Emphasis -->
651
+ <h2 id="type-emphasis">Emphasis</h2>
652
+ <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
653
+
654
+ <h3>Small text</h3>
655
+ <p>For de-emphasizing inline or blocks of text, use the <code>&lt;small&gt;</code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code>&lt;small&gt;</code> elements.</p>
656
+ <div class="bs-example">
657
+ <p><small>This line of text is meant to be treated as fine print.</small></p>
658
+ </div>
659
+ {% highlight html %}
660
+ <small>This line of text is meant to be treated as fine print.</small>
661
+ {% endhighlight %}
662
+
663
+
664
+ <h3>Bold</h3>
665
+ <p>For emphasizing a snippet of text with a heavier font-weight.</p>
666
+ <div class="bs-example">
667
+ <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
668
+ </div>
669
+ {% highlight html %}
670
+ <strong>rendered as bold text</strong>
671
+ {% endhighlight %}
672
+
673
+ <h3>Italics</h3>
674
+ <p>For emphasizing a snippet of text with italics.</p>
675
+ <div class="bs-example">
676
+ <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
677
+ </div>
678
+ {% highlight html %}
679
+ <em>rendered as italicized text</em>
680
+ {% endhighlight %}
681
+
682
+ <div class="bs-callout bs-callout-info">
683
+ <h4>Alternate elements</h4>
684
+ <p>Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
685
+ </div>
686
+
687
+ <h3>Alignment classes</h3>
688
+ <p>Easily realign text to components with text alignment classes.</p>
689
+ <div class="bs-example">
690
+ <p class="text-left">Left aligned text.</p>
691
+ <p class="text-center">Center aligned text.</p>
692
+ <p class="text-right">Right aligned text.</p>
693
+ </div>
694
+ {% highlight html %}
695
+ <p class="text-left">Left aligned text.</p>
696
+ <p class="text-center">Center aligned text.</p>
697
+ <p class="text-right">Right aligned text.</p>
698
+ {% endhighlight %}
699
+
700
+ <h3>Emphasis classes</h3>
701
+ <p>Convey meaning through color with a handful of emphasis utility classes.</p>
702
+ <div class="bs-example">
703
+ <p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
704
+ <p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
705
+ <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
706
+ <p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
707
+ <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
708
+ <p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
709
+ </div>
710
+ {% highlight html %}
711
+ <p class="text-muted">...</p>
712
+ <p class="text-primary">...</p>
713
+ <p class="text-warning">...</p>
714
+ <p class="text-danger">...</p>
715
+ <p class="text-success">...</p>
716
+ <p class="text-info">...</p>
717
+ {% endhighlight %}
718
+
719
+
720
+ <!-- Abbreviations -->
721
+ <h2 id="type-abbreviations">Abbreviations</h2>
722
+ <p>Stylized implementation of HTML's <code>&lt;abbr&gt;</code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.</p>
723
+
724
+ <h3>Basic abbreviation</h3>
725
+ <p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute with the <code>&lt;abbr&gt;</code> element.</p>
726
+ <div class="bs-example">
727
+ <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
728
+ </div>
729
+ {% highlight html %}
730
+ <abbr title="attribute">attr</abbr>
731
+ {% endhighlight %}
732
+
733
+ <h3>Initialism</h3>
734
+ <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
735
+ <div class="bs-example">
736
+ <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
737
+ </div>
738
+ {% highlight html %}
739
+ <abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
740
+ {% endhighlight %}
741
+
742
+
743
+ <!-- Addresses -->
744
+ <h2 id="type-addresses">Addresses</h2>
745
+ <p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p>
746
+ <div class="bs-example">
747
+ <address>
748
+ <strong>Twitter, Inc.</strong><br>
749
+ 795 Folsom Ave, Suite 600<br>
750
+ San Francisco, CA 94107<br>
751
+ <abbr title="Phone">P:</abbr> (123) 456-7890
752
+ </address>
753
+ <address>
754
+ <strong>Full Name</strong><br>
755
+ <a href="mailto:#">first.last@example.com</a>
756
+ </address>
757
+ </div>
758
+ {% highlight html %}
759
+ <address>
760
+ <strong>Twitter, Inc.</strong><br>
761
+ 795 Folsom Ave, Suite 600<br>
762
+ San Francisco, CA 94107<br>
763
+ <abbr title="Phone">P:</abbr> (123) 456-7890
764
+ </address>
765
+
766
+ <address>
767
+ <strong>Full Name</strong><br>
768
+ <a href="mailto:#">first.last@example.com</a>
769
+ </address>
770
+ {% endhighlight %}
771
+
772
+
773
+ <!-- Blockquotes -->
774
+ <h2 id="type-blockquotes">Blockquotes</h2>
775
+ <p>For quoting blocks of content from another source within your document.</p>
776
+
777
+ <h3>Default blockquote</h3>
778
+ <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes, we recommend a <code>&lt;p&gt;</code>.</p>
779
+ <div class="bs-example">
780
+ <blockquote>
781
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
782
+ </blockquote>
783
+ </div>
784
+ {% highlight html %}
785
+ <blockquote>
786
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
787
+ </blockquote>
788
+ {% endhighlight %}
789
+
790
+ <h3>Blockquote options</h3>
791
+ <p>Style and content changes for simple variations on a standard <code>&lt;blockquote&gt;</code>.</p>
792
+
793
+ <h4>Naming a source</h4>
794
+ <p>Add <code>&lt;small&gt;</code> tag for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
795
+ <div class="bs-example">
796
+ <blockquote>
797
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
798
+ <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
799
+ </blockquote>
800
+ </div>
801
+ {% highlight html %}
802
+ <blockquote>
803
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
804
+ <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
805
+ </blockquote>
806
+ {% endhighlight %}
807
+
808
+ <h4>Alternate displays</h4>
809
+ <p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p>
810
+ <div class="bs-example" style="overflow: hidden;">
811
+ <blockquote class="pull-right">
812
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
813
+ <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
814
+ </blockquote>
815
+ </div>
816
+ {% highlight html %}
817
+ <blockquote class="pull-right">
818
+ ...
819
+ </blockquote>
820
+ {% endhighlight %}
821
+
822
+
823
+ <!-- Lists -->
824
+ <h2 id="type-lists">Lists</h2>
825
+
826
+ <h3>Unordered</h3>
827
+ <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
828
+ <div class="bs-example">
829
+ <ul>
830
+ <li>Lorem ipsum dolor sit amet</li>
831
+ <li>Consectetur adipiscing elit</li>
832
+ <li>Integer molestie lorem at massa</li>
833
+ <li>Facilisis in pretium nisl aliquet</li>
834
+ <li>Nulla volutpat aliquam velit
835
+ <ul>
836
+ <li>Phasellus iaculis neque</li>
837
+ <li>Purus sodales ultricies</li>
838
+ <li>Vestibulum laoreet porttitor sem</li>
839
+ <li>Ac tristique libero volutpat at</li>
840
+ </ul>
841
+ </li>
842
+ <li>Faucibus porta lacus fringilla vel</li>
843
+ <li>Aenean sit amet erat nunc</li>
844
+ <li>Eget porttitor lorem</li>
845
+ </ul>
846
+ </div>
847
+ {% highlight html %}
848
+ <ul>
849
+ <li>...</li>
850
+ </ul>
851
+ {% endhighlight %}
852
+
853
+ <h3>Ordered</h3>
854
+ <p>A list of items in which the order <em>does</em> explicitly matter.</p>
855
+ <div class="bs-example">
856
+ <ol>
857
+ <li>Lorem ipsum dolor sit amet</li>
858
+ <li>Consectetur adipiscing elit</li>
859
+ <li>Integer molestie lorem at massa</li>
860
+ <li>Facilisis in pretium nisl aliquet</li>
861
+ <li>Nulla volutpat aliquam velit</li>
862
+ <li>Faucibus porta lacus fringilla vel</li>
863
+ <li>Aenean sit amet erat nunc</li>
864
+ <li>Eget porttitor lorem</li>
865
+ </ol>
866
+ </div>
867
+ {% highlight html %}
868
+ <ol>
869
+ <li>...</li>
870
+ </ol>
871
+ {% endhighlight %}
872
+
873
+ <h3>Unstyled</h3>
874
+ <p>Remove the default <code>list-style</code> and left margin on list items (immediate children only). <strong>This only applies to immediate children list items</strong>, meaning you will need to add the class for any nested lists as well.</p>
875
+ <div class="bs-example">
876
+ <ul class="list-unstyled">
877
+ <li>Lorem ipsum dolor sit amet</li>
878
+ <li>Consectetur adipiscing elit</li>
879
+ <li>Integer molestie lorem at massa</li>
880
+ <li>Facilisis in pretium nisl aliquet</li>
881
+ <li>Nulla volutpat aliquam velit
882
+ <ul>
883
+ <li>Phasellus iaculis neque</li>
884
+ <li>Purus sodales ultricies</li>
885
+ <li>Vestibulum laoreet porttitor sem</li>
886
+ <li>Ac tristique libero volutpat at</li>
887
+ </ul>
888
+ </li>
889
+ <li>Faucibus porta lacus fringilla vel</li>
890
+ <li>Aenean sit amet erat nunc</li>
891
+ <li>Eget porttitor lorem</li>
892
+ </ul>
893
+ </div>
894
+ {% highlight html %}
895
+ <ul class="list-unstyled">
896
+ <li>...</li>
897
+ </ul>
898
+ {% endhighlight %}
899
+
900
+ <h3>Inline</h3>
901
+ <p>Place all list items on a single line with <code>inline-block</code> and some light padding.</p>
902
+ <div class="bs-example">
903
+ <ul class="list-inline">
904
+ <li>Lorem ipsum</li>
905
+ <li>Phasellus iaculis</li>
906
+ <li>Nulla volutpat</li>
907
+ </ul>
908
+ </div>
909
+ {% highlight html %}
910
+ <ul class="list-inline">
911
+ <li>...</li>
912
+ </ul>
913
+ {% endhighlight %}
914
+
915
+ <h3>Description</h3>
916
+ <p>A list of terms with their associated descriptions.</p>
917
+ <div class="bs-example">
918
+ <dl>
919
+ <dt>Description lists</dt>
920
+ <dd>A description list is perfect for defining terms.</dd>
921
+ <dt>Euismod</dt>
922
+ <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
923
+ <dd>Donec id elit non mi porta gravida at eget metus.</dd>
924
+ <dt>Malesuada porta</dt>
925
+ <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
926
+ </dl>
927
+ </div>
928
+ {% highlight html %}
929
+ <dl>
930
+ <dt>...</dt>
931
+ <dd>...</dd>
932
+ </dl>
933
+ {% endhighlight %}
934
+
935
+ <h4>Horizontal description</h4>
936
+ <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side. Starts off stacked like default <code>&lt;dl&gt;</code>s, but when the navbar expands, so do these.</p>
937
+ <div class="bs-example">
938
+ <dl class="dl-horizontal">
939
+ <dt>Description lists</dt>
940
+ <dd>A description list is perfect for defining terms.</dd>
941
+ <dt>Euismod</dt>
942
+ <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
943
+ <dd>Donec id elit non mi porta gravida at eget metus.</dd>
944
+ <dt>Malesuada porta</dt>
945
+ <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
946
+ <dt>Felis euismod semper eget lacinia</dt>
947
+ <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
948
+ </dl>
949
+ </div>
950
+ {% highlight html %}
951
+ <dl class="dl-horizontal">
952
+ <dt>...</dt>
953
+ <dd>...</dd>
954
+ </dl>
955
+ {% endhighlight %}
956
+
957
+ <div class="bs-callout bs-callout-info">
958
+ <h4>Auto-truncating</h4>
959
+ <p>Horizontal description lists will truncate terms that are too long to fit in the left column with <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.</p>
960
+ </div>
961
+ </div>
962
+
963
+
964
+ <!-- Code
965
+ ================================================== -->
966
+ <div class="bs-docs-section">
967
+ <div class="page-header">
968
+ <h1 id="code">Code</h1>
969
+ </div>
970
+
971
+ <h2>Inline</h2>
972
+ <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
973
+ <div class="bs-example">
974
+ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
975
+ </div>
976
+ {% highlight html %}
977
+ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
978
+ {% endhighlight %}
979
+
980
+ <h2>Basic block</h2>
981
+ <p>Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
982
+ <div class="bs-example">
983
+ <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
984
+ </div>
985
+ {% highlight html %}
986
+ <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
987
+ {% endhighlight %}
988
+
989
+ <p>You may optionally add the <code>.pre-scrollable</code> class, which will set a max-height of 350px and provide a y-axis scrollbar.</p>
990
+ </div>
991
+
992
+
993
+
994
+ <!-- Tables
995
+ ================================================== -->
996
+ <div class="bs-docs-section">
997
+ <div class="page-header">
998
+ <h1 id="tables">Tables</h1>
999
+ </div>
1000
+
1001
+ <h2 id="tables-example">Basic example</h2>
1002
+ <p>For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class <code>.table</code> to any <code>&lt;table&gt;</code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
1003
+ <div class="bs-example">
1004
+ <table class="table">
1005
+ <thead>
1006
+ <tr>
1007
+ <th>#</th>
1008
+ <th>First Name</th>
1009
+ <th>Last Name</th>
1010
+ <th>Username</th>
1011
+ </tr>
1012
+ </thead>
1013
+ <tbody>
1014
+ <tr>
1015
+ <td>1</td>
1016
+ <td>Mark</td>
1017
+ <td>Otto</td>
1018
+ <td>@mdo</td>
1019
+ </tr>
1020
+ <tr>
1021
+ <td>2</td>
1022
+ <td>Jacob</td>
1023
+ <td>Thornton</td>
1024
+ <td>@fat</td>
1025
+ </tr>
1026
+ <tr>
1027
+ <td>3</td>
1028
+ <td>Larry</td>
1029
+ <td>the Bird</td>
1030
+ <td>@twitter</td>
1031
+ </tr>
1032
+ </tbody>
1033
+ </table>
1034
+ </div><!-- /example -->
1035
+ {% highlight html %}
1036
+ <table class="table">
1037
+ ...
1038
+ </table>
1039
+ {% endhighlight %}
1040
+
1041
+
1042
+ <h2>Optional classes</h2>
1043
+ <p>Add any of the following classes to the <code>.table</code> base class.</p>
1044
+
1045
+ <h3 id="tables-striped">Striped</h3>
1046
+ <p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>&lt;tbody&gt;</code>.</p>
1047
+ <div class="bs-callout bs-callout-danger">
1048
+ <h4>Cross-browser compatibility</h4>
1049
+ <p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in Internet Explorer 8.</p>
1050
+ </div>
1051
+ <div class="bs-example">
1052
+ <table class="table table-striped">
1053
+ <thead>
1054
+ <tr>
1055
+ <th>#</th>
1056
+ <th>First Name</th>
1057
+ <th>Last Name</th>
1058
+ <th>Username</th>
1059
+ </tr>
1060
+ </thead>
1061
+ <tbody>
1062
+ <tr>
1063
+ <td>1</td>
1064
+ <td>Mark</td>
1065
+ <td>Otto</td>
1066
+ <td>@mdo</td>
1067
+ </tr>
1068
+ <tr>
1069
+ <td>2</td>
1070
+ <td>Jacob</td>
1071
+ <td>Thornton</td>
1072
+ <td>@fat</td>
1073
+ </tr>
1074
+ <tr>
1075
+ <td>3</td>
1076
+ <td>Larry</td>
1077
+ <td>the Bird</td>
1078
+ <td>@twitter</td>
1079
+ </tr>
1080
+ </tbody>
1081
+ </table>
1082
+ </div><!-- /example -->
1083
+ {% highlight html %}
1084
+ <table class="table table-striped">
1085
+ ...
1086
+ </table>
1087
+ {% endhighlight %}
1088
+
1089
+ <h3 id="tables-bordered">Bordered</h3>
1090
+ <p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p>
1091
+ <div class="bs-example">
1092
+ <table class="table table-bordered">
1093
+ <thead>
1094
+ <tr>
1095
+ <th>#</th>
1096
+ <th>First Name</th>
1097
+ <th>Last Name</th>
1098
+ <th>Username</th>
1099
+ </tr>
1100
+ </thead>
1101
+ <tbody>
1102
+ <tr>
1103
+ <td rowspan="2">1</td>
1104
+ <td>Mark</td>
1105
+ <td>Otto</td>
1106
+ <td>@mdo</td>
1107
+ </tr>
1108
+ <tr>
1109
+ <td>Mark</td>
1110
+ <td>Otto</td>
1111
+ <td>@TwBootstrap</td>
1112
+ </tr>
1113
+ <tr>
1114
+ <td>2</td>
1115
+ <td>Jacob</td>
1116
+ <td>Thornton</td>
1117
+ <td>@fat</td>
1118
+ </tr>
1119
+ <tr>
1120
+ <td>3</td>
1121
+ <td colspan="2">Larry the Bird</td>
1122
+ <td>@twitter</td>
1123
+ </tr>
1124
+ </tbody>
1125
+ </table>
1126
+ </div><!-- /example -->
1127
+ {% highlight html %}
1128
+ <table class="table table-bordered">
1129
+ ...
1130
+ </table>
1131
+ {% endhighlight %}
1132
+
1133
+ <h3 id="tables-hover-rows">Hover rows</h3>
1134
+ <p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</p>
1135
+ <div class="bs-example">
1136
+ <table class="table table-hover">
1137
+ <thead>
1138
+ <tr>
1139
+ <th>#</th>
1140
+ <th>First Name</th>
1141
+ <th>Last Name</th>
1142
+ <th>Username</th>
1143
+ </tr>
1144
+ </thead>
1145
+ <tbody>
1146
+ <tr>
1147
+ <td>1</td>
1148
+ <td>Mark</td>
1149
+ <td>Otto</td>
1150
+ <td>@mdo</td>
1151
+ </tr>
1152
+ <tr>
1153
+ <td>2</td>
1154
+ <td>Jacob</td>
1155
+ <td>Thornton</td>
1156
+ <td>@fat</td>
1157
+ </tr>
1158
+ <tr>
1159
+ <td>3</td>
1160
+ <td colspan="2">Larry the Bird</td>
1161
+ <td>@twitter</td>
1162
+ </tr>
1163
+ </tbody>
1164
+ </table>
1165
+ </div><!-- /example -->
1166
+ {% highlight html %}
1167
+ <table class="table table-hover">
1168
+ ...
1169
+ </table>
1170
+ {% endhighlight %}
1171
+
1172
+
1173
+ <h3 id="tables-condensed">Condensed</h3>
1174
+ <p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p>
1175
+ <div class="bs-example">
1176
+ <table class="table table-condensed">
1177
+ <thead>
1178
+ <tr>
1179
+ <th>#</th>
1180
+ <th>First Name</th>
1181
+ <th>Last Name</th>
1182
+ <th>Username</th>
1183
+ </tr>
1184
+ </thead>
1185
+ <tbody>
1186
+ <tr>
1187
+ <td>1</td>
1188
+ <td>Mark</td>
1189
+ <td>Otto</td>
1190
+ <td>@mdo</td>
1191
+ </tr>
1192
+ <tr>
1193
+ <td>2</td>
1194
+ <td>Jacob</td>
1195
+ <td>Thornton</td>
1196
+ <td>@fat</td>
1197
+ </tr>
1198
+ <tr>
1199
+ <td>3</td>
1200
+ <td colspan="2">Larry the Bird</td>
1201
+ <td>@twitter</td>
1202
+ </tr>
1203
+ </tbody>
1204
+ </table>
1205
+ </div><!-- /example -->
1206
+ {% highlight html %}
1207
+ <table class="table table-condensed">
1208
+ ...
1209
+ </table>
1210
+ {% endhighlight %}
1211
+
1212
+
1213
+
1214
+ <h2 id="tables-row-classes">Contextual table classes</h2>
1215
+ <p>Use contextual classes to color table rows or individual cells.</p>
1216
+ <div class="bs-table-scrollable">
1217
+ <table class="table table-bordered table-striped bs-table">
1218
+ <colgroup>
1219
+ <col class="col-lg-1">
1220
+ <col class="col-lg-7">
1221
+ </colgroup>
1222
+ <thead>
1223
+ <tr>
1224
+ <th>Class</th>
1225
+ <th>Description</th>
1226
+ </tr>
1227
+ </thead>
1228
+ <tbody>
1229
+ <tr>
1230
+ <td>
1231
+ <code>.success</code>
1232
+ </td>
1233
+ <td>Indicates a successful or positive action</td>
1234
+ </tr>
1235
+ <tr>
1236
+ <td>
1237
+ <code>.danger</code>
1238
+ </td>
1239
+ <td>Indicates a dangerous or potentially negative action</td>
1240
+ </tr>
1241
+ <tr>
1242
+ <td>
1243
+ <code>.warning</code>
1244
+ </td>
1245
+ <td>Indicates a warning that might need attention</td>
1246
+ </tr>
1247
+ <tr>
1248
+ <td>
1249
+ <code>.active</code>
1250
+ </td>
1251
+ <td>Applies the hover color to a particular row or cell</td>
1252
+ </tr>
1253
+ </tbody>
1254
+ </table>
1255
+ </div>
1256
+ <div class="bs-example">
1257
+ <table class="table">
1258
+ <thead>
1259
+ <tr>
1260
+ <th>#</th>
1261
+ <th>Column heading</th>
1262
+ <th>Column heading</th>
1263
+ <th>Column heading</th>
1264
+ </tr>
1265
+ </thead>
1266
+ <tbody>
1267
+ <tr class="success">
1268
+ <td>1</td>
1269
+ <td>Column content</td>
1270
+ <td>Column content</td>
1271
+ <td>Column content</td>
1272
+ </tr>
1273
+ <tr>
1274
+ <td>2</td>
1275
+ <td>Column content</td>
1276
+ <td>Column content</td>
1277
+ <td>Column content</td>
1278
+ </tr>
1279
+ <tr class="danger">
1280
+ <td>3</td>
1281
+ <td>Column content</td>
1282
+ <td>Column content</td>
1283
+ <td>Column content</td>
1284
+ </tr>
1285
+ <tr>
1286
+ <td>4</td>
1287
+ <td>Column content</td>
1288
+ <td>Column content</td>
1289
+ <td>Column content</td>
1290
+ </tr>
1291
+ <tr class="warning">
1292
+ <td>5</td>
1293
+ <td>Column content</td>
1294
+ <td>Column content</td>
1295
+ <td>Column content</td>
1296
+ </tr>
1297
+ <tr>
1298
+ <td>6</td>
1299
+ <td>Column content</td>
1300
+ <td>Column content</td>
1301
+ <td>Column content</td>
1302
+ </tr>
1303
+ <tr class="active">
1304
+ <td>7</td>
1305
+ <td>Column content</td>
1306
+ <td>Column content</td>
1307
+ <td>Column content</td>
1308
+ </tr>
1309
+ </tbody>
1310
+ </table>
1311
+ </div><!-- /example -->
1312
+ {% highlight html %}
1313
+ <tr class="success">
1314
+ <td>1</td>
1315
+ <td>Column content</td>
1316
+ <td>Column content</td>
1317
+ <td>Column content</td>
1318
+ </tr>
1319
+ {% endhighlight %}
1320
+
1321
+ </div>
1322
+
1323
+
1324
+
1325
+ <!-- Forms
1326
+ ================================================== -->
1327
+ <div class="bs-docs-section">
1328
+ <div class="page-header">
1329
+ <h1 id="forms">Forms</h1>
1330
+ </div>
1331
+
1332
+ <h2 id="forms-example">Basic example</h2>
1333
+ <p>Individual form controls automatically receive some global styling. All textual <code>&lt;input&gt;</code>, <code>&lt;textarea&gt;</code>, and <code>&lt;select&gt;</code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p>
1334
+ <form class="bs-example" role="form">
1335
+ <fieldset>
1336
+ <legend>Legend</legend>
1337
+ <div class="form-group">
1338
+ <label for="exampleInputEmail1">Email address</label>
1339
+ <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
1340
+ </div>
1341
+ <div class="form-group">
1342
+ <label for="exampleInputPassword1">Password</label>
1343
+ <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
1344
+ </div>
1345
+ <div class="form-group">
1346
+ <label for="exampleInputFile">File input</label>
1347
+ <input type="file" id="exampleInputFile">
1348
+ <p class="help-block">Example block-level help text here.</p>
1349
+ </div>
1350
+ <div class="checkbox">
1351
+ <label>
1352
+ <input type="checkbox"> Check me out
1353
+ </label>
1354
+ </div>
1355
+ <button type="submit" class="btn btn-default">Submit</button>
1356
+ </fieldset>
1357
+ </form><!-- /example -->
1358
+ {% highlight html %}
1359
+ <form role="form">
1360
+ <fieldset>
1361
+ <legend>Legend</legend>
1362
+ <div class="form-group">
1363
+ <label for="exampleInputEmail1">Email address</label>
1364
+ <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
1365
+ </div>
1366
+ <div class="form-group">
1367
+ <label for="exampleInputPassword1">Password</label>
1368
+ <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
1369
+ </div>
1370
+ <div class="form-group">
1371
+ <label for="exampleInputFile">File input</label>
1372
+ <input type="file" id="exampleInputFile">
1373
+ <p class="help-block">Example block-level help text here.</p>
1374
+ </div>
1375
+ <div class="checkbox">
1376
+ <label>
1377
+ <input type="checkbox"> Check me out
1378
+ </label>
1379
+ </div>
1380
+ <button type="submit" class="btn btn-default">Submit</button>
1381
+ </fieldset>
1382
+ </form>
1383
+ {% endhighlight %}
1384
+
1385
+
1386
+ <h3 id="forms-inline">Inline form</h3>
1387
+ <p>Add <code>.form-inline</code> for left-aligned and inline-block controls for a compact layout.</p>
1388
+ <div class="bs-callout bs-callout-danger">
1389
+ <h4>Requires custom widths</h4>
1390
+ <p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
1391
+ </div>
1392
+ <div class="bs-callout bs-callout-danger">
1393
+ <h4>Always add labels</h4>
1394
+ <p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class.</p>
1395
+ </div>
1396
+ <form class="bs-example form-inline" role="form">
1397
+ <div class="form-group">
1398
+ <label class="sr-only" for="exampleInputEmail2">Email address</label>
1399
+ <input type="text" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
1400
+ </div>
1401
+ <div class="form-group">
1402
+ <label class="sr-only" for="exampleInputPassword2">Password</label>
1403
+ <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
1404
+ </div>
1405
+ <div class="checkbox">
1406
+ <label>
1407
+ <input type="checkbox"> Remember me
1408
+ </label>
1409
+ </div>
1410
+ <button type="submit" class="btn btn-default">Sign in</button>
1411
+ </form><!-- /example -->
1412
+ {% highlight html %}
1413
+ <form class="form-inline" role="form">
1414
+ <div class="form-group">
1415
+ <label class="sr-only" for="exampleInputEmail2">Email address</label>
1416
+ <input type="text" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
1417
+ </div>
1418
+ <div class="form-group">
1419
+ <label class="sr-only" for="exampleInputPassword2">Password</label>
1420
+ <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
1421
+ </div>
1422
+ <div class="checkbox">
1423
+ <label>
1424
+ <input type="checkbox"> Remember me
1425
+ </label>
1426
+ </div>
1427
+ <button type="submit" class="btn btn-default">Sign in</button>
1428
+ </form>
1429
+ {% endhighlight %}
1430
+
1431
+ <h2 id="forms-horizontal">Horizontal form</h2>
1432
+ <p>Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding <code>.form-horizontal</code> to the form. Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p>
1433
+ <form class="bs-example form-horizontal">
1434
+ <div class="form-group">
1435
+ <label for="inputEmail1" class="col-lg-2 control-label">Email</label>
1436
+ <div class="col-lg-10">
1437
+ <input type="text" class="form-control" id="inputEmail1" placeholder="Email">
1438
+ </div>
1439
+ </div>
1440
+ <div class="form-group">
1441
+ <label for="inputPassword1" class="col-lg-2 control-label">Password</label>
1442
+ <div class="col-lg-10">
1443
+ <input type="password" class="form-control" id="inputPassword1" placeholder="Password">
1444
+ </div>
1445
+ </div>
1446
+ <div class="form-group">
1447
+ <div class="col-lg-offset-2 col-lg-10">
1448
+ <div class="checkbox">
1449
+ <label>
1450
+ <input type="checkbox"> Remember me
1451
+ </label>
1452
+ </div>
1453
+ </div>
1454
+ </div>
1455
+ <div class="form-group">
1456
+ <div class="col-lg-offset-2 col-lg-10">
1457
+ <button type="submit" class="btn btn-default">Sign in</button>
1458
+ </div>
1459
+ </div>
1460
+ </form>
1461
+ {% highlight html %}
1462
+ <form class="form-horizontal" role="form">
1463
+ <div class="form-group">
1464
+ <label for="inputEmail1" class="col-lg-2 control-label">Email</label>
1465
+ <div class="col-lg-10">
1466
+ <input type="text" class="form-control" id="inputEmail1" placeholder="Email">
1467
+ </div>
1468
+ </div>
1469
+ <div class="form-group">
1470
+ <label for="inputPassword1" class="col-lg-2 control-label">Password</label>
1471
+ <div class="col-lg-10">
1472
+ <input type="password" class="form-control" id="inputPassword1" placeholder="Password">
1473
+ </div>
1474
+ </div>
1475
+ <div class="form-group">
1476
+ <div class="col-lg-offset-2 col-lg-10">
1477
+ <div class="checkbox">
1478
+ <label>
1479
+ <input type="checkbox"> Remember me
1480
+ </label>
1481
+ </div>
1482
+ </div>
1483
+ </div>
1484
+ <div class="form-group">
1485
+ <div class="col-lg-offset-2 col-lg-10">
1486
+ <button type="submit" class="btn btn-default">Sign in</button>
1487
+ </div>
1488
+ </div>
1489
+ </form>
1490
+ {% endhighlight %}
1491
+
1492
+
1493
+ <h2 id="forms-controls">Supported form controls</h2>
1494
+ <p>Examples of standard form controls supported in an example form layout.</p>
1495
+
1496
+ <h3>Inputs</h3>
1497
+ <p>Most common form control, text-based input fields. Includes support for all HTML5 types: <code>text</code>, <code>password</code>, <code>datetime</code>, <code>datetime-local</code>, <code>date</code>, <code>month</code>, <code>time</code>, <code>week</code>, <code>number</code>, <code>email</code>, <code>url</code>, <code>search</code>, <code>tel</code>, and <code>color</code>.</p>
1498
+ <div class="bs-callout bs-callout-danger">
1499
+ <h4>Type declaration required</h4>
1500
+ <p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p>
1501
+ </div>
1502
+ <form class="bs-example">
1503
+ <input type="text" class="form-control" placeholder="Text input">
1504
+ </form>
1505
+ {% highlight html %}
1506
+ <input type="text" class="form-control" placeholder="Text input">
1507
+ {% endhighlight %}
1508
+
1509
+ <h3>Textarea</h3>
1510
+ <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p>
1511
+ <form class="bs-example">
1512
+ <textarea class="form-control" rows="3"></textarea>
1513
+ </form>
1514
+ {% highlight html %}
1515
+ <textarea class="form-control" rows="3"></textarea>
1516
+ {% endhighlight %}
1517
+
1518
+ <h3>Checkboxes and radios</h3>
1519
+ <p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
1520
+ <h4>Default (stacked)</h4>
1521
+ <form class="bs-example">
1522
+ <div class="checkbox">
1523
+ <label>
1524
+ <input type="checkbox" value="">
1525
+ Option one is this and that&mdash;be sure to include why it's great
1526
+ </label>
1527
+ </div>
1528
+ <br>
1529
+ <div class="radio">
1530
+ <label>
1531
+ <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1532
+ Option one is this and that&mdash;be sure to include why it's great
1533
+ </label>
1534
+ </div>
1535
+ <div class="radio">
1536
+ <label>
1537
+ <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1538
+ Option two can be something else and selecting it will deselect option one
1539
+ </label>
1540
+ </div>
1541
+ </form>
1542
+ {% highlight html %}
1543
+ <div class="checkbox">
1544
+ <label>
1545
+ <input type="checkbox" value="">
1546
+ Option one is this and that&mdash;be sure to include why it's great
1547
+ </label>
1548
+ </div>
1549
+
1550
+ <div class="radio">
1551
+ <label>
1552
+ <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1553
+ Option one is this and that&mdash;be sure to include why it's great
1554
+ </label>
1555
+ </div>
1556
+ <div class="radio">
1557
+ <label>
1558
+ <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1559
+ Option two can be something else and selecting it will deselect option one
1560
+ </label>
1561
+ </div>
1562
+ {% endhighlight %}
1563
+
1564
+ <h4>Inline checkboxes</h4>
1565
+ <p>Use <code>.checkbox-inline</code> or <code>.radio-inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p>
1566
+ <form class="bs-example">
1567
+ <label class="checkbox-inline">
1568
+ <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1569
+ </label>
1570
+ <label class="checkbox-inline">
1571
+ <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1572
+ </label>
1573
+ <label class="checkbox-inline">
1574
+ <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1575
+ </label>
1576
+ </form>
1577
+ {% highlight html %}
1578
+ <label class="checkbox-inline">
1579
+ <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1580
+ </label>
1581
+ <label class="checkbox-inline">
1582
+ <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1583
+ </label>
1584
+ <label class="checkbox-inline">
1585
+ <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1586
+ </label>
1587
+ {% endhighlight %}
1588
+
1589
+ <h3>Selects</h3>
1590
+ <p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p>
1591
+ <form class="bs-example">
1592
+ <select class="form-control">
1593
+ <option>1</option>
1594
+ <option>2</option>
1595
+ <option>3</option>
1596
+ <option>4</option>
1597
+ <option>5</option>
1598
+ </select>
1599
+ <br>
1600
+ <select multiple class="form-control">
1601
+ <option>1</option>
1602
+ <option>2</option>
1603
+ <option>3</option>
1604
+ <option>4</option>
1605
+ <option>5</option>
1606
+ </select>
1607
+ </form>
1608
+ {% highlight html %}
1609
+ <select class="form-control">
1610
+ <option>1</option>
1611
+ <option>2</option>
1612
+ <option>3</option>
1613
+ <option>4</option>
1614
+ <option>5</option>
1615
+ </select>
1616
+
1617
+ <select multiple class="form-control">
1618
+ <option>1</option>
1619
+ <option>2</option>
1620
+ <option>3</option>
1621
+ <option>4</option>
1622
+ <option>5</option>
1623
+ </select>
1624
+ {% endhighlight %}
1625
+
1626
+
1627
+ <h2 id="forms-controls-static">Static text in horizontal forms</h2>
1628
+ <p>When you need to place regular, static text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code>&lt;p&gt;</code>.</p>
1629
+ <form class="bs-example form-horizontal">
1630
+ <div class="form-group">
1631
+ <label class="col-lg-2 control-label">Email</label>
1632
+ <div class="col-lg-10">
1633
+ <p class="form-control-static">email@example.com</p>
1634
+ </div>
1635
+ </div>
1636
+ <div class="form-group">
1637
+ <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1638
+ <div class="col-lg-10">
1639
+ <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1640
+ </div>
1641
+ </div>
1642
+ </form>
1643
+ {% highlight html %}
1644
+ <form class="form-horizontal" role="form">
1645
+ <div class="form-group">
1646
+ <label class="col-lg-2 control-label">Email</label>
1647
+ <div class="col-lg-10">
1648
+ <p class="form-control-static">email@example.com</p>
1649
+ </div>
1650
+ </div>
1651
+ <div class="form-group">
1652
+ <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1653
+ <div class="col-lg-10">
1654
+ <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1655
+ </div>
1656
+ </div>
1657
+ </form>
1658
+ {% endhighlight %}
1659
+
1660
+
1661
+ <h2 id="forms-control-states">Form control states</h2>
1662
+ <p>Provide feedback to users or visitors with basic feedback states on form controls and labels.</p>
1663
+
1664
+ <h3 id="forms-input-focus">Input focus</h3>
1665
+ <p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p>
1666
+ <form class="bs-example">
1667
+ <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1668
+ </form>
1669
+ {% highlight html %}
1670
+ <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1671
+ {% endhighlight %}
1672
+
1673
+ <h3 id="forms-disabled-inputs">Disabled inputs</h3>
1674
+ <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
1675
+ <form class="bs-example">
1676
+ <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
1677
+ </form>
1678
+ {% highlight html %}
1679
+ <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
1680
+ {% endhighlight %}
1681
+
1682
+ <h3 id="forms-disabled-fieldsets">Disabled fieldsets</h3>
1683
+ <p>Add the <code>disabled</code> attribute to a <code>&lt;fieldset&gt;</code> to disable all the controls within the <code>&lt;fieldset&gt;</code> at once.</p>
1684
+
1685
+ <div class="bs-callout bs-callout-warning">
1686
+ <h4>Link functionality of <code>&lt;a&gt;</code> not impacted</h4>
1687
+ <p>This class will only change the appearance of <code>&lt;a class="btn btn-default"&gt;</code> buttons, not their functionality. Use custom JavaScript to disable links here.</p>
1688
+ </div>
1689
+
1690
+ <div class="bs-callout bs-callout-danger">
1691
+ <h4>Cross-browser compatibility</h4>
1692
+ <p>While Bootstrap will apply these styles in all browsers, Internet Explorer 9 and below don't actually support the <code>disabled</code> attribute on a <code>&lt;fieldset&gt;</code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
1693
+ </div>
1694
+
1695
+ <form class="bs-example">
1696
+ <fieldset disabled>
1697
+ <div class="form-group">
1698
+ <label for="disabledTextInput">Disabled input</label>
1699
+ <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
1700
+ </div>
1701
+ <div class="form-group">
1702
+ <label for="disabledSelect">Disabled select menu</label>
1703
+ <select id="disabledSelect" class="form-control">
1704
+ <option>Disabled select</option>
1705
+ </select>
1706
+ </div>
1707
+ <div class="checkbox">
1708
+ <label>
1709
+ <input type="checkbox"> Can't check this
1710
+ </label>
1711
+ </div>
1712
+ <button type="submit" class="btn btn-primary">Submit</button>
1713
+ </fieldset>
1714
+ </form>
1715
+ {% highlight html %}
1716
+ <form class="form-inline" role="form">
1717
+ <fieldset disabled>
1718
+ <div class="form-group">
1719
+ <label for="disabledTextInput">Disabled input</label>
1720
+ <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
1721
+ </div>
1722
+ <div class="form-group">
1723
+ <label for="disabledSelect">Disabled select menu</label>
1724
+ <select id="disabledSelect" class="form-control">
1725
+ <option>Disabled select</option>
1726
+ </select>
1727
+ </div>
1728
+ <div class="checkbox">
1729
+ <label>
1730
+ <input type="checkbox"> Can't check this
1731
+ </label>
1732
+ </div>
1733
+ <button type="submit" class="btn btn-primary">Submit</button>
1734
+ </fieldset>
1735
+ </form>
1736
+ {% endhighlight %}
1737
+
1738
+ <h3 id="forms-validation">Validation states</h3>
1739
+ <p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p>
1740
+
1741
+ <form class="bs-example">
1742
+ <div class="form-group has-warning">
1743
+ <label class="control-label" for="inputWarning">Input with warning</label>
1744
+ <input type="text" class="form-control" id="inputWarning">
1745
+ </div>
1746
+ <div class="form-group has-error">
1747
+ <label class="control-label" for="inputError">Input with error</label>
1748
+ <input type="text" class="form-control" id="inputError">
1749
+ </div>
1750
+ <div class="form-group has-success">
1751
+ <label class="control-label" for="inputSuccess">Input with success</label>
1752
+ <input type="text" class="form-control" id="inputSuccess">
1753
+ </div>
1754
+ </form>
1755
+ {% highlight html %}
1756
+ <div class="form-group has-warning">
1757
+ <label class="control-label" for="inputWarning">Input with warning</label>
1758
+ <input type="text" class="form-control" id="inputWarning">
1759
+ </div>
1760
+ <div class="form-group has-error">
1761
+ <label class="control-label" for="inputError">Input with error</label>
1762
+ <input type="text" class="form-control" id="inputError">
1763
+ </div>
1764
+ <div class="form-group has-success">
1765
+ <label class="control-label" for="inputSuccess">Input with success</label>
1766
+ <input type="text" class="form-control" id="inputSuccess">
1767
+ </div>
1768
+ {% endhighlight %}
1769
+
1770
+
1771
+ <h2 id="forms-control-sizes">Control sizing</h2>
1772
+ <p>Set heights using classes like <code>.input-lg</code>, and set widths using grid column classes like <code>.col-lg-*</code>.</p>
1773
+
1774
+ <h3>Height sizing</h3>
1775
+ <p>Create larger or smaller form controls that match button sizes.</p>
1776
+ <form class="bs-example bs-example-control-sizing">
1777
+ <div class="controls docs-input-sizes">
1778
+ <input class="form-control input-lg" type="text" placeholder=".input-lg">
1779
+ <input type="text" class="form-control" placeholder="Default input">
1780
+ <input class="form-control input-sm" type="text" placeholder=".input-sm">
1781
+
1782
+ <select class="form-control input-lg">
1783
+ <option value="">.input-lg</option>
1784
+ </select>
1785
+ <select class="form-control">
1786
+ <option value="">Default select</option>
1787
+ </select>
1788
+ <select class="form-control input-sm">
1789
+ <option value="">.input-sm</option>
1790
+ </select>
1791
+ </div>
1792
+ </form>
1793
+ {% highlight html %}
1794
+ <input class="form-control input-lg" type="text" placeholder=".input-lg">
1795
+ <input class="form-control" type="text" placeholder="Default input">
1796
+ <input class="form-control input-sm" type="text" placeholder=".input-sm">
1797
+
1798
+ <select class="form-control input-lg">...</select>
1799
+ <select class="form-control">...</select>
1800
+ <select class="form-control input-sm">...</select>
1801
+ {% endhighlight %}
1802
+
1803
+ <h3>Column sizing</h3>
1804
+ <p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p>
1805
+ <form class="bs-example" style="padding-bottom: 15px;">
1806
+ <div class="row">
1807
+ <div class="col-lg-2">
1808
+ <input type="text" class="form-control" placeholder=".col-lg-2">
1809
+ </div>
1810
+ <div class="col-lg-3">
1811
+ <input type="text" class="form-control" placeholder=".col-lg-3">
1812
+ </div>
1813
+ <div class="col-lg-4">
1814
+ <input type="text" class="form-control" placeholder=".col-lg-4">
1815
+ </div>
1816
+ </div>
1817
+ </form>
1818
+ {% highlight html %}
1819
+ <div class="row">
1820
+ <div class="col-lg-2">
1821
+ <input type="text" class="form-control" placeholder=".col-lg-2">
1822
+ </div>
1823
+ <div class="col-lg-3">
1824
+ <input type="text" class="form-control" placeholder=".col-lg-3">
1825
+ </div>
1826
+ <div class="col-lg-4">
1827
+ <input type="text" class="form-control" placeholder=".col-lg-4">
1828
+ </div>
1829
+ </div>
1830
+ {% endhighlight %}
1831
+
1832
+ <h2 id="forms-help-text">Help text</h2>
1833
+ <p>Block level help text for form controls.</p>
1834
+ <form class="bs-example">
1835
+ <input type="text" class="form-control">
1836
+ <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
1837
+ </form>
1838
+ {% highlight html %}
1839
+ <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
1840
+ {% endhighlight %}
1841
+
1842
+ </div>
1843
+
1844
+
1845
+
1846
+ <!-- Buttons
1847
+ ================================================== -->
1848
+ <div class="bs-docs-section">
1849
+ <div class="page-header">
1850
+ <h1 id="buttons">Buttons</h1>
1851
+ </div>
1852
+
1853
+ <h2 id="buttons-options">Button options</h2>
1854
+ <p>Use any of the available button classes to quickly create a styled button.</p>
1855
+ <div class="bs-example">
1856
+ <button type="button" class="btn btn-default">Default</button>
1857
+ <button type="button" class="btn btn-primary">Primary</button>
1858
+ <button type="button" class="btn btn-success">Success</button>
1859
+ <button type="button" class="btn btn-info">Info</button>
1860
+ <button type="button" class="btn btn-warning">Warning</button>
1861
+ <button type="button" class="btn btn-danger">Danger</button>
1862
+ <button type="button" class="btn btn-link">Link</button>
1863
+ </div>
1864
+ {% highlight html %}
1865
+ <!-- Standard gray button with gradient -->
1866
+ <button type="button" class="btn btn-default">Default</button>
1867
+
1868
+ <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
1869
+ <button type="button" class="btn btn-primary">Primary</button>
1870
+
1871
+ <!-- Indicates a successful or positive action -->
1872
+ <button type="button" class="btn btn-success">Success</button>
1873
+
1874
+ <!-- Contextual button for informational alert messages -->
1875
+ <button type="button" class="btn btn-info">Info</button>
1876
+
1877
+ <!-- Indicates caution should be taken with this action -->
1878
+ <button type="button" class="btn btn-warning">Warning</button>
1879
+
1880
+ <!-- Indicates a dangerous or potentially negative action -->
1881
+ <button type="button" class="btn btn-danger">Danger</button>
1882
+
1883
+ <!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
1884
+ <button type="button" class="btn btn-link">Link</button>
1885
+ {% endhighlight %}
1886
+
1887
+ <h2 id="buttons-sizes">Button sizes</h2>
1888
+ <p>Fancy larger or smaller buttons? Add <code>.btn-lg</code>, <code>.btn-sm</code>, or <code>.btn-xs</code> for additional sizes.</p>
1889
+ <div class="bs-example">
1890
+ <p>
1891
+ <button type="button" class="btn btn-primary btn-lg">Large button</button>
1892
+ <button type="button" class="btn btn-default btn-lg">Large button</button>
1893
+ </p>
1894
+ <p>
1895
+ <button type="button" class="btn btn-primary">Default button</button>
1896
+ <button type="button" class="btn btn-default">Default button</button>
1897
+ </p>
1898
+ <p>
1899
+ <button type="button" class="btn btn-primary btn-sm">Small button</button>
1900
+ <button type="button" class="btn btn-default btn-sm">Small button</button>
1901
+ </p>
1902
+ <p>
1903
+ <button type="button" class="btn btn-primary btn-xs">Extra small button</button>
1904
+ <button type="button" class="btn btn-default btn-xs">Extra small button</button>
1905
+ </p>
1906
+ </div>
1907
+ {% highlight html %}
1908
+ <p>
1909
+ <button type="button" class="btn btn-primary btn-lg">Large button</button>
1910
+ <button type="button" class="btn btn-default btn-lg">Large button</button>
1911
+ </p>
1912
+ <p>
1913
+ <button type="button" class="btn btn-primary">Default button</button>
1914
+ <button type="button" class="btn btn-default">Default button</button>
1915
+ </p>
1916
+ <p>
1917
+ <button type="button" class="btn btn-primary btn-sm">Small button</button>
1918
+ <button type="button" class="btn btn-default btn-sm">Small button</button>
1919
+ </p>
1920
+ <p>
1921
+ <button type="button" class="btn btn-primary btn-xs">Extra small button</button>
1922
+ <button type="button" class="btn btn-default btn-xs">Extra small button</button>
1923
+ </p>
1924
+ {% endhighlight %}
1925
+
1926
+ <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>
1927
+ <div class="bs-example">
1928
+ <div class="well" style="max-width: 400px; margin: 0 auto 10px;">
1929
+ <button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
1930
+ <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
1931
+ </div>
1932
+ </div>
1933
+ {% highlight html %}
1934
+ <button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
1935
+ <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
1936
+ {% endhighlight %}
1937
+
1938
+
1939
+ <h2 id="buttons-disabled">Disabled state</h2>
1940
+ <p>Make buttons look unclickable by fading them back 50%.</p>
1941
+
1942
+ <h3>Button element</h3>
1943
+ <p>Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.</p>
1944
+ <p class="bs-example">
1945
+ <button type="button" class="btn btn-primary btn-lg" disabled="disabled">Primary button</button>
1946
+ <button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
1947
+ </p>
1948
+ {% highlight html %}
1949
+ <button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button>
1950
+ <button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
1951
+ {% endhighlight %}
1952
+
1953
+ <div class="bs-callout bs-callout-danger">
1954
+ <h4>Cross-browser compatibility</h4>
1955
+ <p>If you add the <code>disabled</code> attribute to a <code>&lt;button&gt;</code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p>
1956
+ </div>
1957
+
1958
+ <h3>Anchor element</h3>
1959
+ <p>Add the <code>.disabled</code> class to <code>&lt;a&gt;</code> buttons.</p>
1960
+ <p class="bs-example">
1961
+ <a href="#" class="btn btn-primary btn-lg disabled">Primary link</a>
1962
+ <a href="#" class="btn btn-default btn-lg disabled">Link</a>
1963
+ </p>
1964
+ {% highlight html %}
1965
+ <a href="#" class="btn btn-primary btn-lg disabled">Primary link</a>
1966
+ <a href="#" class="btn btn-default btn-lg disabled">Link</a>
1967
+ {% endhighlight %}
1968
+ <p>
1969
+ We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
1970
+ </p>
1971
+ <div class="bs-callout bs-callout-warning">
1972
+ <h4>Link functionality not impacted</h4>
1973
+ <p>This class will only change the <code>&lt;a&gt;</code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
1974
+ </div>
1975
+
1976
+
1977
+ <h2 id="buttons-tags">Using multiple tags</h2>
1978
+ <p>Use the button classes on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.</p>
1979
+ <form class="bs-example">
1980
+ <a class="btn btn-default" href="#">Link</a>
1981
+ <button class="btn btn-default" type="submit">Button</button>
1982
+ <input class="btn btn-default" type="button" value="Input">
1983
+ <input class="btn btn-default" type="submit" value="Submit">
1984
+ </form>
1985
+ {% highlight html %}
1986
+ <a class="btn btn-default" href="#">Link</a>
1987
+ <button class="btn btn-default" type="submit">Button</button>
1988
+ <input class="btn btn-default" type="button" value="Input">
1989
+ <input class="btn btn-default" type="submit" value="Submit">
1990
+ {% endhighlight %}
1991
+
1992
+ <div class="bs-callout bs-callout-warning">
1993
+ <h4>Cross-browser rendering</h4>
1994
+ <p>As a best practice, <strong>we highly recommend using the <code>&lt;button&gt;</code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
1995
+ <p>Among other things, there's <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=697451">a Firefox bug</a> that prevents us from setting the <code>line-height</code> of <code>&lt;input&gt;</code>-based buttons, causing them to not exactly match the height of other buttons on Firefox.</p>
1996
+ </div>
1997
+
1998
+ </div>
1999
+
2000
+
2001
+
2002
+ <!-- Images
2003
+ ================================================== -->
2004
+ <div class="bs-docs-section">
2005
+ <div class="page-header">
2006
+ <h1 id="images">Images</h1>
2007
+ </div>
2008
+
2009
+ <p>Add classes to an <code>&lt;img&gt;</code> element to easily style images in any project.</p>
2010
+ <div class="bs-callout bs-callout-danger">
2011
+ <h4>Cross-browser compatibility</h4>
2012
+ <p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
2013
+ </div>
2014
+ <div class="bs-example bs-example-images">
2015
+ <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-rounded" alt="A generic square placeholder image with rounded corners">
2016
+ <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-circle" alt="A generic square placeholder image where only the portion within the circle circumscribed about said square is visible">
2017
+ <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-thumbnail" alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera">
2018
+ </div>
2019
+ {% highlight html %}
2020
+ <img src="..." alt="..." class="img-rounded">
2021
+ <img src="..." alt="..." class="img-circle">
2022
+ <img src="..." alt="..." class="img-thumbnail">
2023
+ {% endhighlight %}
2024
+
2025
+ <div class="bs-callout bs-callout-warning">
2026
+ <h4>Responsive images</h4>
2027
+ <p>Looking for how to make images more responsive? <a href="../css#overview-responsive-images">Check out the responsive images section</a> up top.</p>
2028
+ </div>
2029
+
2030
+ </div>
2031
+
2032
+
2033
+ <!-- Helpers
2034
+ ================================================== -->
2035
+ <div class="bs-docs-section">
2036
+ <div class="page-header">
2037
+ <h1 id="helper-classes">Helper classes</h1>
2038
+ </div>
2039
+
2040
+ <h3>Close icon</h3>
2041
+ <p>Use the generic close icon for dismissing content like modals and alerts.</p>
2042
+ <div class="bs-example">
2043
+ <p><button type="button" class="close" aria-hidden="true">&times;</button></p>
2044
+ </div>
2045
+ {% highlight html %}
2046
+ <button type="button" class="close" aria-hidden="true">&times;</button>
2047
+ {% endhighlight %}
2048
+
2049
+ <h3>.pull-left</h3>
2050
+ <p>Float an element left</p>
2051
+ {% highlight html %}
2052
+ <div class="pull-left">...</div>
2053
+ {% endhighlight %}
2054
+ {% highlight css %}
2055
+ .pull-left {
2056
+ float: left;
2057
+ }
2058
+ {% endhighlight %}
2059
+
2060
+ <h3>.pull-right</h3>
2061
+ <p>Float an element right</p>
2062
+ {% highlight html %}
2063
+ <div class="pull-right">...</div>
2064
+ {% endhighlight %}
2065
+ {% highlight css %}
2066
+ .pull-right {
2067
+ float: right;
2068
+ }
2069
+ {% endhighlight %}
2070
+
2071
+ <h3>.clearfix</h3>
2072
+ <p>Clear the <code>float</code> on any element. Utilizes <a href="http://nicolasgallagher.com/micro-clearfix-hack/">the micro clearfix</a> as popularized by Nicolas Gallagher.</p>
2073
+ {% highlight html %}
2074
+ <div class="clearfix">...</div>
2075
+ {% endhighlight %}
2076
+ {% highlight css %}
2077
+ // Mixin
2078
+ .clearfix() {
2079
+ &:before,
2080
+ &:after {
2081
+ content: " ";
2082
+ display: table;
2083
+ }
2084
+ &:after {
2085
+ clear: both;
2086
+ }
2087
+ }
2088
+
2089
+ // Usage
2090
+ .element {
2091
+ .clearfix();
2092
+ }
2093
+ {% endhighlight %}
2094
+
2095
+ <h3>.sr-only</h3>
2096
+ <p>Hide an element to all users <em>except</em> screen readers. Necessary for following <a href="{{ page.base_url }}getting-started#accessibility">accessibility best practices</a>.</p>
2097
+ {% highlight html %}
2098
+ <a class="sr-only" href="#content">Skip to content</a>
2099
+ {% endhighlight %}
2100
+ </div>
2101
+
2102
+ <!-- Responsive utilities
2103
+ ================================================== -->
2104
+ <div class="bs-docs-section" id="responsive-utilities">
2105
+ <div class="page-header">
2106
+ <h1>Responsive utilities</h1>
2107
+ </div>
2108
+ <p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
2109
+
2110
+ <h3>Responsive classes</h3>
2111
+ <div class="bs-table-scrollable">
2112
+ <table class="table table-bordered table-striped responsive-utilities">
2113
+ <thead>
2114
+ <tr>
2115
+ <th></th>
2116
+ <th>
2117
+ Extra small devices
2118
+ <small>Phones (&lt;768px)</small>
2119
+ </th>
2120
+ <th>
2121
+ Small devices
2122
+ <small>Tablets (&gt;768px)</small>
2123
+ </th>
2124
+ <th>
2125
+ Medium devices
2126
+ <small>Desktops (&gt;992px)</small>
2127
+ </th>
2128
+ <th>
2129
+ Large devices
2130
+ <small>Desktops (&gt;1200px)</small>
2131
+ </th>
2132
+ </tr>
2133
+ </thead>
2134
+ <!-- <thead>
2135
+ <tr>
2136
+ <th>Class</th>
2137
+ <th>Small devices <small>Up to 768px</small></th>
2138
+ <th>Medium devices <small>768px to 991px</small></th>
2139
+ <th>Large devices <small>992px and up</small></th>
2140
+ </tr>
2141
+ </thead>
2142
+ --> <tbody>
2143
+ <tr>
2144
+ <th><code>.visible-xs</code></th>
2145
+ <td class="is-visible">Visible</td>
2146
+ <td class="is-hidden">Hidden</td>
2147
+ <td class="is-hidden">Hidden</td>
2148
+ <td class="is-hidden">Hidden</td>
2149
+ </tr>
2150
+ <tr>
2151
+ <th><code>.visible-sm</code></th>
2152
+ <td class="is-hidden">Hidden</td>
2153
+ <td class="is-visible">Visible</td>
2154
+ <td class="is-hidden">Hidden</td>
2155
+ <td class="is-hidden">Hidden</td>
2156
+ </tr>
2157
+ <tr>
2158
+ <th><code>.visible-md</code></th>
2159
+ <td class="is-hidden">Hidden</td>
2160
+ <td class="is-hidden">Hidden</td>
2161
+ <td class="is-visible">Visible</td>
2162
+ <td class="is-hidden">Hidden</td>
2163
+ </tr>
2164
+ <tr>
2165
+ <th><code>.visible-lg</code></th>
2166
+ <td class="is-hidden">Hidden</td>
2167
+ <td class="is-hidden">Hidden</td>
2168
+ <td class="is-hidden">Hidden</td>
2169
+ <td class="is-visible">Visible</td>
2170
+ </tr>
2171
+ </tbody>
2172
+ <tbody>
2173
+ <tr>
2174
+ <th><code>.hidden-xs</code></th>
2175
+ <td class="is-hidden">Hidden</td>
2176
+ <td class="is-visible">Visible</td>
2177
+ <td class="is-visible">Visible</td>
2178
+ <td class="is-visible">Visible</td>
2179
+ </tr>
2180
+ <tr>
2181
+ <th><code>.hidden-sm</code></th>
2182
+ <td class="is-visible">Visible</td>
2183
+ <td class="is-hidden">Hidden</td>
2184
+ <td class="is-visible">Visible</td>
2185
+ <td class="is-visible">Visible</td>
2186
+ </tr>
2187
+ <tr>
2188
+ <th><code>.hidden-md</code></th>
2189
+ <td class="is-visible">Visible</td>
2190
+ <td class="is-visible">Visible</td>
2191
+ <td class="is-hidden">Hidden</td>
2192
+ <td class="is-visible">Visible</td>
2193
+ </tr>
2194
+ <tr>
2195
+ <th><code>.hidden-lg</code></th>
2196
+ <td class="is-visible">Visible</td>
2197
+ <td class="is-visible">Visible</td>
2198
+ <td class="is-visible">Visible</td>
2199
+ <td class="is-hidden">Hidden</td>
2200
+ </tr>
2201
+ </tbody>
2202
+ </table>
2203
+ </div>
2204
+
2205
+ <h3>Print classes</h3>
2206
+ <div class="bs-table-scrollable">
2207
+ <table class="table table-bordered table-striped responsive-utilities">
2208
+ <thead>
2209
+ <tr>
2210
+ <th>Class</th>
2211
+ <th>Browser</th>
2212
+ <th>Print</th>
2213
+ </tr>
2214
+ </thead>
2215
+ <tbody>
2216
+ <tr>
2217
+ <th><code>.visible-print</code></th>
2218
+ <td class="is-hidden">Hidden</td>
2219
+ <td class="is-visible">Visible</td>
2220
+ </tr>
2221
+ <tr>
2222
+ <th><code>.hidden-print</code></th>
2223
+ <td class="is-visible">Visible</td>
2224
+ <td class="is-hidden">Hidden</td>
2225
+ </tr>
2226
+ </tbody>
2227
+ </table>
2228
+ </div>
2229
+
2230
+ <h3>When to use</h3>
2231
+ <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. Responsive utilities are currently only available for block-level toggling, meaning <code>display: none;</code> or <code>display: block;</code>. Use with inline and table elements is currently not supported.</p>
2232
+
2233
+ <h3>Test case</h3>
2234
+ <p>Resize your browser or load on different devices to test the responsive utility classes.</p>
2235
+ <h4>Visible on...</h4>
2236
+ <p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
2237
+ <div class="row responsive-utilities-test visible-on">
2238
+ <div class="col-xs-6 col-sm-3">
2239
+ <span class="hidden-xs">Extra small</span>
2240
+ <span class="visible-xs">&#10004; Visible on x-small</span>
2241
+ </div>
2242
+ <div class="col-xs-6 col-sm-3">
2243
+ <span class="hidden-sm">Small</span>
2244
+ <span class="visible-sm">&#10004; Visible on small</span>
2245
+ </div>
2246
+ <div class="col-xs-6 col-sm-3">
2247
+ <span class="hidden-md">Medium</span>
2248
+ <span class="visible-md">&#10004; Visible on medium</span>
2249
+ </div>
2250
+ <div class="col-xs-6 col-sm-3">
2251
+ <span class="hidden-lg">Large</span>
2252
+ <span class="visible-lg">&#10004; Visible on large</span>
2253
+ </div>
2254
+ </div>
2255
+ <h4>Hidden on...</h4>
2256
+ <p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
2257
+ <div class="row responsive-utilities-test hidden-on">
2258
+ <div class="col-xs-6 col-sm-3">
2259
+ <span class="visible-xs">Extra small</span>
2260
+ <span class="hidden-xs">&#10004; Hidden on x-small</span>
2261
+ </div>
2262
+ <div class="col-xs-6 col-sm-3">
2263
+ <span class="visible-sm">Small</span>
2264
+ <span class="hidden-sm">&#10004; Hidden on small</span>
2265
+ </div>
2266
+ <div class="col-xs-6 col-sm-3">
2267
+ <span class="visible-md">Medium</span>
2268
+ <span class="hidden-md">&#10004; Hidden on medium</span>
2269
+ </div>
2270
+ <div class="col-xs-6 col-sm-3">
2271
+ <span class="visible-lg">Large</span>
2272
+ <span class="hidden-lg">&#10004; Hidden on large</span>
2273
+ </div>
2274
+ </div>
2275
+
2276
+ </div>