sass-twitter-bootstrap 0.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
- data/lib/sass/twitter/bootstrap/rails.rb +1 -5
- data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
- data/vendor/assets/stylesheets/tests/buttons.html +139 -0
- data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
- data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
- data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
- data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
- data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
- data/vendor/assets/stylesheets/tests/navbar.html +38 -39
- data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
- data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
- data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
- data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
- data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
- data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
- data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
- data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
- data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
- data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
- data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
- data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
- data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
- data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
- data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
- data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
- data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
- data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
- metadata +25 -190
- data/.gitignore +0 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -14
- data/LICENSE +0 -176
- data/Makefile +0 -94
- data/README.md +0 -217
- data/Rakefile +0 -52
- data/bootstrap-2.0.4.css +0 -4661
- data/bootstrap-2.0.4.min.css +0 -9
- data/bootstrap-responsive-2.0.4.css +0 -932
- data/bootstrap-responsive-2.0.4.min.css +0 -9
- data/docs/assets/css/bootstrap-responsive.css +0 -932
- data/docs/assets/css/bootstrap.css +0 -4661
- data/docs/assets/css/docs.css +0 -846
- data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/docs/assets/ico/favicon.ico +0 -0
- data/docs/assets/img/bird.png +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/docs/assets/img/browsers.png +0 -0
- data/docs/assets/img/example-sites/fleetio.png +0 -0
- data/docs/assets/img/example-sites/jshint.png +0 -0
- data/docs/assets/img/example-sites/kippt.png +0 -0
- data/docs/assets/img/example-sites/soundready.png +0 -0
- data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/docs/assets/img/github-16px.png +0 -0
- data/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/docs/assets/img/glyphicons-halflings.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/docs/assets/img/grid-18px-masked.png +0 -0
- data/docs/assets/img/icon-css3.png +0 -0
- data/docs/assets/img/icon-github.png +0 -0
- data/docs/assets/img/icon-html5.png +0 -0
- data/docs/assets/img/icon-twitter.png +0 -0
- data/docs/assets/img/less-logo-large.png +0 -0
- data/docs/assets/img/less-small.png +0 -0
- data/docs/assets/img/responsive-illustrations.png +0 -0
- data/docs/assets/js/README.md +0 -106
- data/docs/assets/js/application.js +0 -184
- data/docs/assets/js/bootstrap-alert.js +0 -90
- data/docs/assets/js/bootstrap-button.js +0 -96
- data/docs/assets/js/bootstrap-carousel.js +0 -169
- data/docs/assets/js/bootstrap-collapse.js +0 -157
- data/docs/assets/js/bootstrap-dropdown.js +0 -100
- data/docs/assets/js/bootstrap-modal.js +0 -218
- data/docs/assets/js/bootstrap-popover.js +0 -98
- data/docs/assets/js/bootstrap-scrollspy.js +0 -151
- data/docs/assets/js/bootstrap-tab.js +0 -135
- data/docs/assets/js/bootstrap-tooltip.js +0 -275
- data/docs/assets/js/bootstrap-transition.js +0 -61
- data/docs/assets/js/bootstrap-typeahead.js +0 -285
- data/docs/assets/js/bootstrap.js +0 -1825
- data/docs/assets/js/bootstrap.min.js +0 -6
- data/docs/assets/js/google-code-prettify/prettify.css +0 -30
- data/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/docs/assets/js/jquery.js +0 -9252
- data/docs/base-css.html +0 -1710
- data/docs/build/index.js +0 -44
- data/docs/build/node_modules/.bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
- data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
- data/docs/build/node_modules/hogan.js/LICENSE +0 -177
- data/docs/build/node_modules/hogan.js/Makefile +0 -62
- data/docs/build/node_modules/hogan.js/README.md +0 -93
- data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
- data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
- data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
- data/docs/build/node_modules/hogan.js/package.json +0 -20
- data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
- data/docs/build/node_modules/hogan.js/test/index.html +0 -13
- data/docs/build/node_modules/hogan.js/test/index.js +0 -848
- data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
- data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
- data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
- data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
- data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
- data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
- data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
- data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
- data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
- data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
- data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
- data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
- data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
- data/docs/build/package.json +0 -6
- data/docs/components.html +0 -1931
- data/docs/download.html +0 -454
- data/docs/examples.html +0 -147
- data/docs/examples/fluid.html +0 -162
- data/docs/examples/hero.html +0 -109
- data/docs/examples/starter-template.html +0 -79
- data/docs/index.html +0 -259
- data/docs/javascript.html +0 -1520
- data/docs/less.html +0 -1060
- data/docs/scaffolding.html +0 -671
- data/docs/templates/layout.mustache +0 -146
- data/docs/templates/pages/base-css.mustache +0 -1594
- data/docs/templates/pages/components.mustache +0 -1815
- data/docs/templates/pages/download.mustache +0 -338
- data/docs/templates/pages/examples.mustache +0 -31
- data/docs/templates/pages/index.mustache +0 -144
- data/docs/templates/pages/javascript.mustache +0 -1405
- data/docs/templates/pages/less.mustache +0 -944
- data/docs/templates/pages/scaffolding.mustache +0 -555
- data/docs/templates/pages/upgrading.mustache +0 -194
- data/docs/upgrading.html +0 -310
- data/js/tests/index.html +0 -54
- data/js/tests/phantom.js +0 -63
- data/js/tests/server.js +0 -14
- data/js/tests/unit/bootstrap-alert.js +0 -56
- data/js/tests/unit/bootstrap-button.js +0 -77
- data/js/tests/unit/bootstrap-carousel.js +0 -28
- data/js/tests/unit/bootstrap-collapse.js +0 -54
- data/js/tests/unit/bootstrap-dropdown.js +0 -87
- data/js/tests/unit/bootstrap-modal.js +0 -114
- data/js/tests/unit/bootstrap-phantom.js +0 -21
- data/js/tests/unit/bootstrap-popover.js +0 -93
- data/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/js/tests/unit/bootstrap-tab.js +0 -61
- data/js/tests/unit/bootstrap-tooltip.js +0 -155
- data/js/tests/unit/bootstrap-transition.js +0 -13
- data/js/tests/unit/bootstrap-typeahead.js +0 -148
- data/js/tests/vendor/jquery.js +0 -9252
- data/js/tests/vendor/qunit.css +0 -232
- data/js/tests/vendor/qunit.js +0 -1510
- data/package.json +0 -25
- data/sass-twitter-bootstrap.gemspec +0 -19
- data/vendor/assets/javascripts/README.md +0 -112
- data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
- data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
- data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
- data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -1,236 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Skeleton V1.1
|
3
|
-
* Copyright 2011, Dave Gamache
|
4
|
-
* www.getskeleton.com
|
5
|
-
* Free to use under the MIT license.
|
6
|
-
* http://www.opensource.org/licenses/mit-license.php
|
7
|
-
* 8/17/2011
|
8
|
-
*/
|
9
|
-
|
10
|
-
|
11
|
-
/* Table of Contents
|
12
|
-
==================================================
|
13
|
-
#Base 960 Grid
|
14
|
-
#Tablet (Portrait)
|
15
|
-
#Mobile (Portrait)
|
16
|
-
#Mobile (Landscape)
|
17
|
-
#Clearing */
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
/* #Base 960 Grid
|
22
|
-
================================================== */
|
23
|
-
|
24
|
-
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
|
25
|
-
.column, .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
|
26
|
-
.row { margin-bottom: 20px; }
|
27
|
-
|
28
|
-
/* Nested Column Classes */
|
29
|
-
.column.alpha, .columns.alpha { margin-left: 0; }
|
30
|
-
.column.omega, .columns.omega { margin-right: 0; }
|
31
|
-
|
32
|
-
/* Base Grid */
|
33
|
-
.container .one.column { width: 40px; }
|
34
|
-
.container .two.columns { width: 100px; }
|
35
|
-
.container .three.columns { width: 160px; }
|
36
|
-
.container .four.columns { width: 220px; }
|
37
|
-
.container .five.columns { width: 280px; }
|
38
|
-
.container .six.columns { width: 340px; }
|
39
|
-
.container .seven.columns { width: 400px; }
|
40
|
-
.container .eight.columns { width: 460px; }
|
41
|
-
.container .nine.columns { width: 520px; }
|
42
|
-
.container .ten.columns { width: 580px; }
|
43
|
-
.container .eleven.columns { width: 640px; }
|
44
|
-
.container .twelve.columns { width: 700px; }
|
45
|
-
.container .thirteen.columns { width: 760px; }
|
46
|
-
.container .fourteen.columns { width: 820px; }
|
47
|
-
.container .fifteen.columns { width: 880px; }
|
48
|
-
.container .sixteen.columns { width: 940px; }
|
49
|
-
|
50
|
-
.container .one-third.column { width: 300px; }
|
51
|
-
.container .two-thirds.column { width: 620px; }
|
52
|
-
|
53
|
-
/* Offsets */
|
54
|
-
.container .offset-by-one { padding-left: 60px; }
|
55
|
-
.container .offset-by-two { padding-left: 120px; }
|
56
|
-
.container .offset-by-three { padding-left: 180px; }
|
57
|
-
.container .offset-by-four { padding-left: 240px; }
|
58
|
-
.container .offset-by-five { padding-left: 300px; }
|
59
|
-
.container .offset-by-six { padding-left: 360px; }
|
60
|
-
.container .offset-by-seven { padding-left: 420px; }
|
61
|
-
.container .offset-by-eight { padding-left: 480px; }
|
62
|
-
.container .offset-by-nine { padding-left: 540px; }
|
63
|
-
.container .offset-by-ten { padding-left: 600px; }
|
64
|
-
.container .offset-by-eleven { padding-left: 660px; }
|
65
|
-
.container .offset-by-twelve { padding-left: 720px; }
|
66
|
-
.container .offset-by-thirteen { padding-left: 780px; }
|
67
|
-
.container .offset-by-fourteen { padding-left: 840px; }
|
68
|
-
.container .offset-by-fifteen { padding-left: 900px; }
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
/* #Tablet (Portrait)
|
73
|
-
================================================== */
|
74
|
-
|
75
|
-
/* Note: Design for a width of 768px */
|
76
|
-
|
77
|
-
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
78
|
-
.container { width: 768px; }
|
79
|
-
.container .column,
|
80
|
-
.container .columns { margin-left: 10px; margin-right: 10px; }
|
81
|
-
.column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; }
|
82
|
-
.column.omega, .columns.omega { margin-right: 0; margin-left: 10px; }
|
83
|
-
|
84
|
-
.container .one.column { width: 28px; }
|
85
|
-
.container .two.columns { width: 76px; }
|
86
|
-
.container .three.columns { width: 124px; }
|
87
|
-
.container .four.columns { width: 172px; }
|
88
|
-
.container .five.columns { width: 220px; }
|
89
|
-
.container .six.columns { width: 268px; }
|
90
|
-
.container .seven.columns { width: 316px; }
|
91
|
-
.container .eight.columns { width: 364px; }
|
92
|
-
.container .nine.columns { width: 412px; }
|
93
|
-
.container .ten.columns { width: 460px; }
|
94
|
-
.container .eleven.columns { width: 508px; }
|
95
|
-
.container .twelve.columns { width: 556px; }
|
96
|
-
.container .thirteen.columns { width: 604px; }
|
97
|
-
.container .fourteen.columns { width: 652px; }
|
98
|
-
.container .fifteen.columns { width: 700px; }
|
99
|
-
.container .sixteen.columns { width: 748px; }
|
100
|
-
|
101
|
-
.container .one-third.column { width: 236px; }
|
102
|
-
.container .two-thirds.column { width: 492px; }
|
103
|
-
|
104
|
-
/* Offsets */
|
105
|
-
.container .offset-by-one { padding-left: 48px; }
|
106
|
-
.container .offset-by-two { padding-left: 96px; }
|
107
|
-
.container .offset-by-three { padding-left: 144px; }
|
108
|
-
.container .offset-by-four { padding-left: 192px; }
|
109
|
-
.container .offset-by-five { padding-left: 240px; }
|
110
|
-
.container .offset-by-six { padding-left: 288px; }
|
111
|
-
.container .offset-by-seven { padding-left: 336px; }
|
112
|
-
.container .offset-by-eight { padding-left: 348px; }
|
113
|
-
.container .offset-by-nine { padding-left: 432px; }
|
114
|
-
.container .offset-by-ten { padding-left: 480px; }
|
115
|
-
.container .offset-by-eleven { padding-left: 528px; }
|
116
|
-
.container .offset-by-twelve { padding-left: 576px; }
|
117
|
-
.container .offset-by-thirteen { padding-left: 624px; }
|
118
|
-
.container .offset-by-fourteen { padding-left: 672px; }
|
119
|
-
.container .offset-by-fifteen { padding-left: 720px; }
|
120
|
-
}
|
121
|
-
|
122
|
-
|
123
|
-
/* #Mobile (Portrait)
|
124
|
-
================================================== */
|
125
|
-
|
126
|
-
/* Note: Design for a width of 320px */
|
127
|
-
|
128
|
-
@media only screen and (max-width: 767px) {
|
129
|
-
.container { width: 300px; }
|
130
|
-
.columns, .column { margin: 0; }
|
131
|
-
|
132
|
-
.container .one.column,
|
133
|
-
.container .two.columns,
|
134
|
-
.container .three.columns,
|
135
|
-
.container .four.columns,
|
136
|
-
.container .five.columns,
|
137
|
-
.container .six.columns,
|
138
|
-
.container .seven.columns,
|
139
|
-
.container .eight.columns,
|
140
|
-
.container .nine.columns,
|
141
|
-
.container .ten.columns,
|
142
|
-
.container .eleven.columns,
|
143
|
-
.container .twelve.columns,
|
144
|
-
.container .thirteen.columns,
|
145
|
-
.container .fourteen.columns,
|
146
|
-
.container .fifteen.columns,
|
147
|
-
.container .sixteen.columns,
|
148
|
-
.container .one-third.column,
|
149
|
-
.container .two-thirds.column { width: 300px; }
|
150
|
-
|
151
|
-
/* Offsets */
|
152
|
-
.container .offset-by-one,
|
153
|
-
.container .offset-by-two,
|
154
|
-
.container .offset-by-three,
|
155
|
-
.container .offset-by-four,
|
156
|
-
.container .offset-by-five,
|
157
|
-
.container .offset-by-six,
|
158
|
-
.container .offset-by-seven,
|
159
|
-
.container .offset-by-eight,
|
160
|
-
.container .offset-by-nine,
|
161
|
-
.container .offset-by-ten,
|
162
|
-
.container .offset-by-eleven,
|
163
|
-
.container .offset-by-twelve,
|
164
|
-
.container .offset-by-thirteen,
|
165
|
-
.container .offset-by-fourteen,
|
166
|
-
.container .offset-by-fifteen { padding-left: 0; }
|
167
|
-
|
168
|
-
}
|
169
|
-
|
170
|
-
|
171
|
-
/* #Mobile (Landscape)
|
172
|
-
================================================== */
|
173
|
-
|
174
|
-
/* Note: Design for a width of 480px */
|
175
|
-
|
176
|
-
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
177
|
-
.container { width: 420px; }
|
178
|
-
.columns, .column { margin: 0; }
|
179
|
-
|
180
|
-
.container .one.column,
|
181
|
-
.container .two.columns,
|
182
|
-
.container .three.columns,
|
183
|
-
.container .four.columns,
|
184
|
-
.container .five.columns,
|
185
|
-
.container .six.columns,
|
186
|
-
.container .seven.columns,
|
187
|
-
.container .eight.columns,
|
188
|
-
.container .nine.columns,
|
189
|
-
.container .ten.columns,
|
190
|
-
.container .eleven.columns,
|
191
|
-
.container .twelve.columns,
|
192
|
-
.container .thirteen.columns,
|
193
|
-
.container .fourteen.columns,
|
194
|
-
.container .fifteen.columns,
|
195
|
-
.container .sixteen.columns,
|
196
|
-
.container .one-third.column,
|
197
|
-
.container .two-thirds.column { width: 420px; }
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
/* #Clearing
|
202
|
-
================================================== */
|
203
|
-
|
204
|
-
/* Self Clearing Goodness */
|
205
|
-
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
|
206
|
-
|
207
|
-
/* Use clearfix class on parent to clear nested columns,
|
208
|
-
or wrap each row of columns in a <div class="row"> */
|
209
|
-
.clearfix:before,
|
210
|
-
.clearfix:after,
|
211
|
-
.row:before,
|
212
|
-
.row:after {
|
213
|
-
content: '\0020';
|
214
|
-
display: block;
|
215
|
-
overflow: hidden;
|
216
|
-
visibility: hidden;
|
217
|
-
width: 0;
|
218
|
-
height: 0; }
|
219
|
-
.row:after,
|
220
|
-
.clearfix:after {
|
221
|
-
clear: both; }
|
222
|
-
.row,
|
223
|
-
.clearfix {
|
224
|
-
zoom: 1; }
|
225
|
-
|
226
|
-
/* You can also use a <br class="clear" /> to clear columns */
|
227
|
-
.clear {
|
228
|
-
clear: both;
|
229
|
-
display: block;
|
230
|
-
overflow: hidden;
|
231
|
-
visibility: hidden;
|
232
|
-
width: 0;
|
233
|
-
height: 0;
|
234
|
-
}
|
235
|
-
|
236
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2011 Twitter, Inc.
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
* you may not use this file except in compliance with the License.
|
5
|
-
* You may obtain a copy of the License at
|
6
|
-
*
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
*
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
* See the License for the specific language governing permissions and
|
13
|
-
* limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
{{{template}}}
|
17
|
-
{{{compiler}}}
|
18
|
-
|
19
|
-
if (typeof define === 'function' && define.amd) {
|
20
|
-
define(Hogan);
|
21
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2011 Twitter, Inc.
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
* you may not use this file except in compliance with the License.
|
5
|
-
* You may obtain a copy of the License at
|
6
|
-
*
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
*
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
* See the License for the specific language governing permissions and
|
13
|
-
* limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
{{{template}}}
|
17
|
-
{{{compiler}}}
|
18
|
-
|
19
|
-
if (typeof module !== 'undefined' && module.exports) {
|
20
|
-
module.exports = Hogan;
|
21
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2011 Twitter, Inc.
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
* you may not use this file except in compliance with the License.
|
5
|
-
* You may obtain a copy of the License at
|
6
|
-
*
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
*
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
* See the License for the specific language governing permissions and
|
13
|
-
* limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
{{{template}}}
|
17
|
-
{{{compiler}}}
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2011 Twitter, Inc.
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
* you may not use this file except in compliance with the License.
|
5
|
-
* You may obtain a copy of the License at
|
6
|
-
*
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
*
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
* See the License for the specific language governing permissions and
|
13
|
-
* limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
// A wrapper for compatibility with Mustache.js, quirks and all
|
17
|
-
|
18
|
-
{{{template}}}
|
19
|
-
{{{compiler}}}
|
20
|
-
|
21
|
-
var Mustache = (function (Hogan) {
|
22
|
-
|
23
|
-
// Mustache.js has non-spec partial context behavior
|
24
|
-
function mustachePartial(name, context, partials, indent) {
|
25
|
-
var partialScope = this.f(name, context, partials, 0);
|
26
|
-
var cx = context;
|
27
|
-
if (partialScope) {
|
28
|
-
cx = cx.concat(partialScope);
|
29
|
-
}
|
30
|
-
|
31
|
-
return Hogan.Template.prototype.rp.call(this, name, cx, partials, indent);
|
32
|
-
}
|
33
|
-
|
34
|
-
var HoganTemplateWrapper = function(renderFunc, text, compiler){
|
35
|
-
this.rp = mustachePartial;
|
36
|
-
Hogan.Template.call(this, renderFunc, text, compiler);
|
37
|
-
};
|
38
|
-
HoganTemplateWrapper.prototype = Hogan.Template.prototype;
|
39
|
-
|
40
|
-
// Add a wrapper for Hogan's generate method. Mustache and Hogan keep
|
41
|
-
// separate caches, and Mustache returns wrapped templates.
|
42
|
-
var wrapper;
|
43
|
-
var HoganWrapper = function(){
|
44
|
-
this.cache = {};
|
45
|
-
this.generate = function(code, text, options) {
|
46
|
-
return new HoganTemplateWrapper(new Function('c', 'p', 'i', code), text, wrapper);
|
47
|
-
}
|
48
|
-
};
|
49
|
-
HoganWrapper.prototype = Hogan;
|
50
|
-
wrapper = new HoganWrapper();
|
51
|
-
|
52
|
-
return {
|
53
|
-
to_html: function(text, data, partials, sendFun) {
|
54
|
-
var template = wrapper.compile(text);
|
55
|
-
var result = template.render(data, partials);
|
56
|
-
if (!sendFun) {
|
57
|
-
return result;
|
58
|
-
}
|
59
|
-
|
60
|
-
sendFun(result);
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
})(Hogan);
|
data/docs/build/package.json
DELETED
data/docs/components.html
DELETED
@@ -1,1931 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>Components · Twitter Bootstrap</title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
-
<meta name="description" content="">
|
8
|
-
<meta name="author" content="">
|
9
|
-
|
10
|
-
<!-- Le styles -->
|
11
|
-
<link href="assets/css/bootstrap.css" rel="stylesheet">
|
12
|
-
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
|
13
|
-
<link href="assets/css/docs.css" rel="stylesheet">
|
14
|
-
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
|
15
|
-
|
16
|
-
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
17
|
-
<!--[if lt IE 9]>
|
18
|
-
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
19
|
-
<![endif]-->
|
20
|
-
|
21
|
-
<!-- Le fav and touch icons -->
|
22
|
-
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
23
|
-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
|
24
|
-
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
25
|
-
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
26
|
-
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
27
|
-
|
28
|
-
</head>
|
29
|
-
|
30
|
-
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
31
|
-
|
32
|
-
|
33
|
-
<!-- Navbar
|
34
|
-
================================================== -->
|
35
|
-
<div class="navbar navbar-fixed-top">
|
36
|
-
<div class="navbar-inner">
|
37
|
-
<div class="container">
|
38
|
-
<button type="button"class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
39
|
-
<span class="icon-bar"></span>
|
40
|
-
<span class="icon-bar"></span>
|
41
|
-
<span class="icon-bar"></span>
|
42
|
-
</button>
|
43
|
-
<a class="brand" href="./index.html">Bootstrap</a>
|
44
|
-
<div class="nav-collapse collapse">
|
45
|
-
<ul class="nav">
|
46
|
-
<li class="">
|
47
|
-
<a href="./index.html">Overview</a>
|
48
|
-
</li>
|
49
|
-
<li class="">
|
50
|
-
<a href="./scaffolding.html">Scaffolding</a>
|
51
|
-
</li>
|
52
|
-
<li class="">
|
53
|
-
<a href="./base-css.html">Base CSS</a>
|
54
|
-
</li>
|
55
|
-
<li class="active">
|
56
|
-
<a href="./components.html">Components</a>
|
57
|
-
</li>
|
58
|
-
<li class="">
|
59
|
-
<a href="./javascript.html">Javascript plugins</a>
|
60
|
-
</li>
|
61
|
-
<li class="">
|
62
|
-
<a href="./less.html">Using LESS</a>
|
63
|
-
</li>
|
64
|
-
<li class="divider-vertical"></li>
|
65
|
-
<li class="">
|
66
|
-
<a href="./download.html">Customize</a>
|
67
|
-
</li>
|
68
|
-
<li class="">
|
69
|
-
<a href="./examples.html">Examples</a>
|
70
|
-
</li>
|
71
|
-
</ul>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
|
77
|
-
<div class="container">
|
78
|
-
|
79
|
-
<!-- Masthead
|
80
|
-
================================================== -->
|
81
|
-
<header class="jumbotron subhead" id="overview">
|
82
|
-
<h1>Components</h1>
|
83
|
-
<p class="lead">Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.</p>
|
84
|
-
<div class="subnav">
|
85
|
-
<ul class="nav nav-pills">
|
86
|
-
<li class="dropdown">
|
87
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Buttons <b class="caret"></b></a>
|
88
|
-
<ul class="dropdown-menu">
|
89
|
-
<li><a href="#buttonGroups">Button groups</a></li>
|
90
|
-
<li><a href="#buttonDropdowns">Button dropdowns</a></li>
|
91
|
-
</ul>
|
92
|
-
</li>
|
93
|
-
<li class="dropdown">
|
94
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Navigation <b class="caret"></b></a>
|
95
|
-
<ul class="dropdown-menu">
|
96
|
-
<li><a href="#navs">Nav, tabs, pills</a></li>
|
97
|
-
<li><a href="#navbar">Navbar</a></li>
|
98
|
-
<li><a href="#breadcrumbs">Breadcrumbs</a></li>
|
99
|
-
<li><a href="#pagination">Pagination</a></li>
|
100
|
-
</ul>
|
101
|
-
</li>
|
102
|
-
<li><a href="#labels">Labels</a></li>
|
103
|
-
<li><a href="#badges">Badges</a></li>
|
104
|
-
<li><a href="#typography">Typography</a></li>
|
105
|
-
<li><a href="#thumbnails">Thumbnails</a></li>
|
106
|
-
<li><a href="#alerts">Alerts</a></li>
|
107
|
-
<li><a href="#progress">Progress bars</a></li>
|
108
|
-
<li><a href="#misc">Miscellaneous</a></li>
|
109
|
-
</ul>
|
110
|
-
</div>
|
111
|
-
</header>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<!-- Button Groups
|
116
|
-
================================================== -->
|
117
|
-
<section id="buttonGroups">
|
118
|
-
<div class="page-header">
|
119
|
-
<h1>Button groups <small>Join buttons for more toolbar-like functionality</small></h1>
|
120
|
-
</div>
|
121
|
-
<div class="row">
|
122
|
-
<div class="span4">
|
123
|
-
<h3>Button groups</h3>
|
124
|
-
<p>Use button groups to join multiple buttons together as one composite component. Build them with a series of <code><a></code> or <code><button></code> elements.</p>
|
125
|
-
<h3>Best practices</h3>
|
126
|
-
<p>We recommend the following guidelines for using button groups and toolbars:</p>
|
127
|
-
<ul>
|
128
|
-
<li>Always use the same element in a single button group, <code><a></code> or <code><button></code>.</li>
|
129
|
-
<li>Don't mix buttons of different colors in the same button group.</li>
|
130
|
-
<li>Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.</li>
|
131
|
-
</ul>
|
132
|
-
<p><span class="label label-info">Related</span> Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.</p>
|
133
|
-
</div>
|
134
|
-
<div class="span4">
|
135
|
-
<h3>Default example</h3>
|
136
|
-
<p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
|
137
|
-
<div class="">
|
138
|
-
<div class="btn-group" style="margin: 9px 0;">
|
139
|
-
<button class="btn">Left</button>
|
140
|
-
<button class="btn">Middle</button>
|
141
|
-
<button class="btn">Right</button>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
<pre class="prettyprint linenums">
|
145
|
-
<div class="btn-group">
|
146
|
-
<button class="btn">1</button>
|
147
|
-
<button class="btn">2</button>
|
148
|
-
<button class="btn">3</button>
|
149
|
-
</div>
|
150
|
-
</pre>
|
151
|
-
<h3>Toolbar example</h3>
|
152
|
-
<p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p>
|
153
|
-
<div class="btn-toolbar">
|
154
|
-
<div class="btn-group">
|
155
|
-
<button class="btn">1</button>
|
156
|
-
<button class="btn">2</button>
|
157
|
-
<button class="btn">3</button>
|
158
|
-
<button class="btn">4</button>
|
159
|
-
</div>
|
160
|
-
<div class="btn-group">
|
161
|
-
<button class="btn">5</button>
|
162
|
-
<button class="btn">6</button>
|
163
|
-
<button class="btn">7</button>
|
164
|
-
</div>
|
165
|
-
<div class="btn-group">
|
166
|
-
<button class="btn">8</button>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
<pre class="prettyprint linenums">
|
170
|
-
<div class="btn-toolbar">
|
171
|
-
<div class="btn-group">
|
172
|
-
...
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
</pre>
|
176
|
-
</div>
|
177
|
-
<div class="span4">
|
178
|
-
<h3>Checkbox and radio flavors</h3>
|
179
|
-
<p>Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.</p>
|
180
|
-
<p><a class="btn js-btn" href="./javascript.html#buttons">Get the javascript »</a></p>
|
181
|
-
<h3>Dropdowns in button groups</h3>
|
182
|
-
<p><span class="label label-info">Heads up!</span> Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.</p>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
</section>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
<!-- Split button dropdowns
|
190
|
-
================================================== -->
|
191
|
-
<section id="buttonDropdowns">
|
192
|
-
<div class="page-header">
|
193
|
-
<h1>Button dropdown menus <small>Built on button groups to provide contextual menus</small></h1>
|
194
|
-
</div>
|
195
|
-
|
196
|
-
<h2>Button dropdowns</h2>
|
197
|
-
<div class="row">
|
198
|
-
<div class="span4">
|
199
|
-
<h3>Overview and examples</h3>
|
200
|
-
<p>Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
|
201
|
-
<div class="btn-toolbar" style="margin-top: 18px;">
|
202
|
-
<div class="btn-group">
|
203
|
-
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
204
|
-
<ul class="dropdown-menu">
|
205
|
-
<li><a href="#">Action</a></li>
|
206
|
-
<li><a href="#">Another action</a></li>
|
207
|
-
<li><a href="#">Something else here</a></li>
|
208
|
-
<li class="divider"></li>
|
209
|
-
<li><a href="#">Separated link</a></li>
|
210
|
-
</ul>
|
211
|
-
</div><!-- /btn-group -->
|
212
|
-
<div class="btn-group">
|
213
|
-
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
214
|
-
<ul class="dropdown-menu">
|
215
|
-
<li><a href="#">Action</a></li>
|
216
|
-
<li><a href="#">Another action</a></li>
|
217
|
-
<li><a href="#">Something else here</a></li>
|
218
|
-
<li class="divider"></li>
|
219
|
-
<li><a href="#">Separated link</a></li>
|
220
|
-
</ul>
|
221
|
-
</div><!-- /btn-group -->
|
222
|
-
<div class="btn-group">
|
223
|
-
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Danger <span class="caret"></span></button>
|
224
|
-
<ul class="dropdown-menu">
|
225
|
-
<li><a href="#">Action</a></li>
|
226
|
-
<li><a href="#">Another action</a></li>
|
227
|
-
<li><a href="#">Something else here</a></li>
|
228
|
-
<li class="divider"></li>
|
229
|
-
<li><a href="#">Separated link</a></li>
|
230
|
-
</ul>
|
231
|
-
</div><!-- /btn-group -->
|
232
|
-
</div>
|
233
|
-
<div class="btn-toolbar">
|
234
|
-
<div class="btn-group">
|
235
|
-
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Warning <span class="caret"></span></button>
|
236
|
-
<ul class="dropdown-menu">
|
237
|
-
<li><a href="#">Action</a></li>
|
238
|
-
<li><a href="#">Another action</a></li>
|
239
|
-
<li><a href="#">Something else here</a></li>
|
240
|
-
<li class="divider"></li>
|
241
|
-
<li><a href="#">Separated link</a></li>
|
242
|
-
</ul>
|
243
|
-
</div><!-- /btn-group -->
|
244
|
-
<div class="btn-group">
|
245
|
-
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Success <span class="caret"></span></button>
|
246
|
-
<ul class="dropdown-menu">
|
247
|
-
<li><a href="#">Action</a></li>
|
248
|
-
<li><a href="#">Another action</a></li>
|
249
|
-
<li><a href="#">Something else here</a></li>
|
250
|
-
<li class="divider"></li>
|
251
|
-
<li><a href="#">Separated link</a></li>
|
252
|
-
</ul>
|
253
|
-
</div><!-- /btn-group -->
|
254
|
-
<div class="btn-group">
|
255
|
-
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown">Info <span class="caret"></span></button>
|
256
|
-
<ul class="dropdown-menu">
|
257
|
-
<li><a href="#">Action</a></li>
|
258
|
-
<li><a href="#">Another action</a></li>
|
259
|
-
<li><a href="#">Something else here</a></li>
|
260
|
-
<li class="divider"></li>
|
261
|
-
<li><a href="#">Separated link</a></li>
|
262
|
-
</ul>
|
263
|
-
</div><!-- /btn-group -->
|
264
|
-
<div class="btn-group">
|
265
|
-
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">Inverse <span class="caret"></span></button>
|
266
|
-
<ul class="dropdown-menu">
|
267
|
-
<li><a href="#">Action</a></li>
|
268
|
-
<li><a href="#">Another action</a></li>
|
269
|
-
<li><a href="#">Something else here</a></li>
|
270
|
-
<li class="divider"></li>
|
271
|
-
<li><a href="#">Separated link</a></li>
|
272
|
-
</ul>
|
273
|
-
</div><!-- /btn-group -->
|
274
|
-
</div><!-- /btn-toolbar -->
|
275
|
-
</div>
|
276
|
-
<div class="span8">
|
277
|
-
<h3>Example markup</h3>
|
278
|
-
<p>Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.</p>
|
279
|
-
<pre class="prettyprint linenums">
|
280
|
-
<div class="btn-group">
|
281
|
-
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
282
|
-
Action
|
283
|
-
<span class="caret"></span>
|
284
|
-
</a>
|
285
|
-
<ul class="dropdown-menu">
|
286
|
-
<!-- dropdown menu links -->
|
287
|
-
</ul>
|
288
|
-
</div>
|
289
|
-
</pre>
|
290
|
-
</div>
|
291
|
-
</div>
|
292
|
-
<div class="row">
|
293
|
-
<div class="span4">
|
294
|
-
<h3>Works with all button sizes</h3>
|
295
|
-
<p>Button dropdowns work at any size. your button sizes to <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.</p>
|
296
|
-
<div class="btn-toolbar" style="margin-top: 18px;">
|
297
|
-
<div class="btn-group">
|
298
|
-
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown">Large button <span class="caret"></span></button>
|
299
|
-
<ul class="dropdown-menu">
|
300
|
-
<li><a href="#">Action</a></li>
|
301
|
-
<li><a href="#">Another action</a></li>
|
302
|
-
<li><a href="#">Something else here</a></li>
|
303
|
-
<li class="divider"></li>
|
304
|
-
<li><a href="#">Separated link</a></li>
|
305
|
-
</ul>
|
306
|
-
</div><!-- /btn-group -->
|
307
|
-
<div class="btn-group">
|
308
|
-
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Small button <span class="caret"></span></button>
|
309
|
-
<ul class="dropdown-menu">
|
310
|
-
<li><a href="#">Action</a></li>
|
311
|
-
<li><a href="#">Another action</a></li>
|
312
|
-
<li><a href="#">Something else here</a></li>
|
313
|
-
<li class="divider"></li>
|
314
|
-
<li><a href="#">Separated link</a></li>
|
315
|
-
</ul>
|
316
|
-
</div><!-- /btn-group -->
|
317
|
-
<div class="btn-group">
|
318
|
-
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">Mini button <span class="caret"></span></button>
|
319
|
-
<ul class="dropdown-menu">
|
320
|
-
<li><a href="#">Action</a></li>
|
321
|
-
<li><a href="#">Another action</a></li>
|
322
|
-
<li><a href="#">Something else here</a></li>
|
323
|
-
<li class="divider"></li>
|
324
|
-
<li><a href="#">Separated link</a></li>
|
325
|
-
</ul>
|
326
|
-
</div><!-- /btn-group -->
|
327
|
-
</div><!-- /btn-toolbar -->
|
328
|
-
</div><!--/span-->
|
329
|
-
<div class="span4">
|
330
|
-
<h3>Requires javascript</h3>
|
331
|
-
<p>Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.</p>
|
332
|
-
<p>In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.</p>
|
333
|
-
</div><!--/span-->
|
334
|
-
</div><!--/row-->
|
335
|
-
<br>
|
336
|
-
|
337
|
-
<h2>Split button dropdowns</h2>
|
338
|
-
<div class="row">
|
339
|
-
<div class="span4">
|
340
|
-
<h3>Overview and examples</h3>
|
341
|
-
<p>Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.</p>
|
342
|
-
<div class="btn-toolbar" style="margin-top: 18px;">
|
343
|
-
<div class="btn-group">
|
344
|
-
<button class="btn">Action</button>
|
345
|
-
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
346
|
-
<ul class="dropdown-menu">
|
347
|
-
<li><a href="#">Action</a></li>
|
348
|
-
<li><a href="#">Another action</a></li>
|
349
|
-
<li><a href="#">Something else here</a></li>
|
350
|
-
<li class="divider"></li>
|
351
|
-
<li><a href="#">Separated link</a></li>
|
352
|
-
</ul>
|
353
|
-
</div><!-- /btn-group -->
|
354
|
-
<div class="btn-group">
|
355
|
-
<button class="btn btn-primary">Action</button>
|
356
|
-
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
357
|
-
<ul class="dropdown-menu">
|
358
|
-
<li><a href="#">Action</a></li>
|
359
|
-
<li><a href="#">Another action</a></li>
|
360
|
-
<li><a href="#">Something else here</a></li>
|
361
|
-
<li class="divider"></li>
|
362
|
-
<li><a href="#">Separated link</a></li>
|
363
|
-
</ul>
|
364
|
-
</div><!-- /btn-group -->
|
365
|
-
<div class="btn-group">
|
366
|
-
<button class="btn btn-danger">Danger</button>
|
367
|
-
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
368
|
-
<ul class="dropdown-menu">
|
369
|
-
<li><a href="#">Action</a></li>
|
370
|
-
<li><a href="#">Another action</a></li>
|
371
|
-
<li><a href="#">Something else here</a></li>
|
372
|
-
<li class="divider"></li>
|
373
|
-
<li><a href="#">Separated link</a></li>
|
374
|
-
</ul>
|
375
|
-
</div><!-- /btn-group -->
|
376
|
-
</div>
|
377
|
-
<div class="btn-toolbar">
|
378
|
-
<div class="btn-group">
|
379
|
-
<button class="btn btn-warning">Warning</button>
|
380
|
-
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
381
|
-
<ul class="dropdown-menu">
|
382
|
-
<li><a href="#">Action</a></li>
|
383
|
-
<li><a href="#">Another action</a></li>
|
384
|
-
<li><a href="#">Something else here</a></li>
|
385
|
-
<li class="divider"></li>
|
386
|
-
<li><a href="#">Separated link</a></li>
|
387
|
-
</ul>
|
388
|
-
</div><!-- /btn-group -->
|
389
|
-
<div class="btn-group">
|
390
|
-
<button class="btn btn-success">Success</button>
|
391
|
-
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
392
|
-
<ul class="dropdown-menu">
|
393
|
-
<li><a href="#">Action</a></li>
|
394
|
-
<li><a href="#">Another action</a></li>
|
395
|
-
<li><a href="#">Something else here</a></li>
|
396
|
-
<li class="divider"></li>
|
397
|
-
<li><a href="#">Separated link</a></li>
|
398
|
-
</ul>
|
399
|
-
</div><!-- /btn-group -->
|
400
|
-
<div class="btn-group">
|
401
|
-
<button class="btn btn-info">Info</button>
|
402
|
-
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
403
|
-
<ul class="dropdown-menu">
|
404
|
-
<li><a href="#">Action</a></li>
|
405
|
-
<li><a href="#">Another action</a></li>
|
406
|
-
<li><a href="#">Something else here</a></li>
|
407
|
-
<li class="divider"></li>
|
408
|
-
<li><a href="#">Separated link</a></li>
|
409
|
-
</ul>
|
410
|
-
</div><!-- /btn-group -->
|
411
|
-
</div>
|
412
|
-
<div class="btn-toolbar">
|
413
|
-
<div class="btn-group">
|
414
|
-
<button class="btn btn-inverse">Inverse</button>
|
415
|
-
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
416
|
-
<ul class="dropdown-menu">
|
417
|
-
<li><a href="#">Action</a></li>
|
418
|
-
<li><a href="#">Another action</a></li>
|
419
|
-
<li><a href="#">Something else here</a></li>
|
420
|
-
<li class="divider"></li>
|
421
|
-
<li><a href="#">Separated link</a></li>
|
422
|
-
</ul>
|
423
|
-
</div><!-- /btn-group -->
|
424
|
-
</div><!-- /btn-toolbar -->
|
425
|
-
<h3>Sizes</h3>
|
426
|
-
<p>Utilize the extra button classes <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.</p>
|
427
|
-
<div class="btn-toolbar">
|
428
|
-
<div class="btn-group">
|
429
|
-
<button class="btn btn-large">Large action</button>
|
430
|
-
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
431
|
-
<ul class="dropdown-menu">
|
432
|
-
<li><a href="#">Action</a></li>
|
433
|
-
<li><a href="#">Another action</a></li>
|
434
|
-
<li><a href="#">Something else here</a></li>
|
435
|
-
<li class="divider"></li>
|
436
|
-
<li><a href="#">Separated link</a></li>
|
437
|
-
</ul>
|
438
|
-
</div><!-- /btn-group -->
|
439
|
-
</div><!-- /btn-toolbar -->
|
440
|
-
<div class="btn-toolbar">
|
441
|
-
<div class="btn-group">
|
442
|
-
<button class="btn btn-small">Small action</button>
|
443
|
-
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
444
|
-
<ul class="dropdown-menu">
|
445
|
-
<li><a href="#">Action</a></li>
|
446
|
-
<li><a href="#">Another action</a></li>
|
447
|
-
<li><a href="#">Something else here</a></li>
|
448
|
-
<li class="divider"></li>
|
449
|
-
<li><a href="#">Separated link</a></li>
|
450
|
-
</ul>
|
451
|
-
</div><!-- /btn-group -->
|
452
|
-
</div><!-- /btn-toolbar -->
|
453
|
-
<div class="btn-toolbar">
|
454
|
-
<div class="btn-group">
|
455
|
-
<button class="btn btn-mini">Mini action</button>
|
456
|
-
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
457
|
-
<ul class="dropdown-menu">
|
458
|
-
<li><a href="#">Action</a></li>
|
459
|
-
<li><a href="#">Another action</a></li>
|
460
|
-
<li><a href="#">Something else here</a></li>
|
461
|
-
<li class="divider"></li>
|
462
|
-
<li><a href="#">Separated link</a></li>
|
463
|
-
</ul>
|
464
|
-
</div><!-- /btn-group -->
|
465
|
-
</div><!-- /btn-toolbar -->
|
466
|
-
<pre class="prettyprint linenums">
|
467
|
-
<div class="btn-group">
|
468
|
-
...
|
469
|
-
<ul class="dropdown-menu pull-right">
|
470
|
-
<!-- dropdown menu links -->
|
471
|
-
</ul>
|
472
|
-
</div>
|
473
|
-
</pre>
|
474
|
-
</div>
|
475
|
-
<div class="span8">
|
476
|
-
<h3>Example markup</h3>
|
477
|
-
<p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
|
478
|
-
<pre class="prettyprint linenums">
|
479
|
-
<div class="btn-group">
|
480
|
-
<button class="btn">Action</button>
|
481
|
-
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
482
|
-
<span class="caret"></span>
|
483
|
-
</button>
|
484
|
-
<ul class="dropdown-menu">
|
485
|
-
<!-- dropdown menu links -->
|
486
|
-
</ul>
|
487
|
-
</div>
|
488
|
-
</pre>
|
489
|
-
<h3>Dropup menus</h3>
|
490
|
-
<p>Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.</p>
|
491
|
-
<div class="btn-toolbar" style="margin-top: 9px;">
|
492
|
-
<div class="btn-group dropup">
|
493
|
-
<button class="btn">Dropup</button>
|
494
|
-
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
495
|
-
<ul class="dropdown-menu">
|
496
|
-
<li><a href="#">Action</a></li>
|
497
|
-
<li><a href="#">Another action</a></li>
|
498
|
-
<li><a href="#">Something else here</a></li>
|
499
|
-
<li class="divider"></li>
|
500
|
-
<li><a href="#">Separated link</a></li>
|
501
|
-
</ul>
|
502
|
-
</div><!-- /btn-group -->
|
503
|
-
<div class="btn-group dropup">
|
504
|
-
<button class="btn primary">Right dropup</button>
|
505
|
-
<button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
506
|
-
<ul class="dropdown-menu pull-right">
|
507
|
-
<li><a href="#">Action</a></li>
|
508
|
-
<li><a href="#">Another action</a></li>
|
509
|
-
<li><a href="#">Something else here</a></li>
|
510
|
-
<li class="divider"></li>
|
511
|
-
<li><a href="#">Separated link</a></li>
|
512
|
-
</ul>
|
513
|
-
</div><!-- /btn-group -->
|
514
|
-
</div>
|
515
|
-
<pre class="prettyprint linenums">
|
516
|
-
<div class="btn-group dropup">
|
517
|
-
<button class="btn">Dropup</button>
|
518
|
-
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
519
|
-
<span class="caret"></span>
|
520
|
-
</button>
|
521
|
-
<ul class="dropdown-menu">
|
522
|
-
<!-- dropdown menu links -->
|
523
|
-
</ul>
|
524
|
-
</div>
|
525
|
-
</pre>
|
526
|
-
|
527
|
-
</div>
|
528
|
-
</div>
|
529
|
-
</section>
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
<!-- Nav, Tabs, & Pills
|
534
|
-
================================================== -->
|
535
|
-
<section id="navs">
|
536
|
-
<div class="page-header">
|
537
|
-
<h1>Nav, tabs, and pills <small>Highly customizable list-style navigation</small></h1>
|
538
|
-
</div>
|
539
|
-
|
540
|
-
<h2>Lightweight defaults <small>Same markup, different classes</small></h2>
|
541
|
-
<div class="row">
|
542
|
-
<div class="span4">
|
543
|
-
<h3>Powerful base class</h3>
|
544
|
-
<p>All nav components here—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.</p>
|
545
|
-
<h3>When to use</h3>
|
546
|
-
<p>Tabs and pills are great for sections of content or navigating between pages of related content.</p>
|
547
|
-
<h3>Component alignment</h3>
|
548
|
-
<p>To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
549
|
-
</div>
|
550
|
-
<div class="span4">
|
551
|
-
<h3>Basic tabs</h3>
|
552
|
-
<p>Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:</p>
|
553
|
-
<ul class="nav nav-tabs">
|
554
|
-
<li class="active"><a href="#">Home</a></li>
|
555
|
-
<li><a href="#">Profile</a></li>
|
556
|
-
<li><a href="#">Messages</a></li>
|
557
|
-
</ul>
|
558
|
-
<pre class="prettyprint linenums">
|
559
|
-
<ul class="nav nav-tabs">
|
560
|
-
<li class="active">
|
561
|
-
<a href="#">Home</a>
|
562
|
-
</li>
|
563
|
-
<li><a href="#">...</a></li>
|
564
|
-
<li><a href="#">...</a></li>
|
565
|
-
</ul>
|
566
|
-
</pre>
|
567
|
-
</div>
|
568
|
-
<div class="span4">
|
569
|
-
<h3>Basic pills</h3>
|
570
|
-
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
571
|
-
<ul class="nav nav-pills">
|
572
|
-
<li class="active"><a href="#">Home</a></li>
|
573
|
-
<li><a href="#">Profile</a></li>
|
574
|
-
<li><a href="#">Messages</a></li>
|
575
|
-
</ul>
|
576
|
-
<pre class="prettyprint linenums">
|
577
|
-
<ul class="nav nav-pills">
|
578
|
-
<li class="active">
|
579
|
-
<a href="#">Home</a>
|
580
|
-
</li>
|
581
|
-
<li><a href="#">...</a></li>
|
582
|
-
<li><a href="#">...</a></li>
|
583
|
-
</ul>
|
584
|
-
</pre>
|
585
|
-
</div>
|
586
|
-
</div>
|
587
|
-
|
588
|
-
<h2>Stackable <small>Make tabs or pills vertical</small></h2>
|
589
|
-
<div class="row">
|
590
|
-
<div class="span4">
|
591
|
-
<h3>How to stack 'em</h3>
|
592
|
-
<p>As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.</p>
|
593
|
-
</div>
|
594
|
-
<div class="span4">
|
595
|
-
<h3>Stacked tabs</h3>
|
596
|
-
<ul class="nav nav-tabs nav-stacked">
|
597
|
-
<li class="active"><a href="#">Home</a></li>
|
598
|
-
<li><a href="#">Profile</a></li>
|
599
|
-
<li><a href="#">Messages</a></li>
|
600
|
-
</ul>
|
601
|
-
<pre class="prettyprint linenums">
|
602
|
-
<ul class="nav nav-tabs nav-stacked">
|
603
|
-
...
|
604
|
-
</ul>
|
605
|
-
</pre>
|
606
|
-
</div>
|
607
|
-
<div class="span4">
|
608
|
-
<h3>Stacked pills</h3>
|
609
|
-
<ul class="nav nav-pills nav-stacked">
|
610
|
-
<li class="active"><a href="#">Home</a></li>
|
611
|
-
<li><a href="#">Profile</a></li>
|
612
|
-
<li><a href="#">Messages</a></li>
|
613
|
-
</ul>
|
614
|
-
<pre class="prettyprint linenums">
|
615
|
-
<ul class="nav nav-pills nav-stacked">
|
616
|
-
...
|
617
|
-
</ul>
|
618
|
-
</pre>
|
619
|
-
</div>
|
620
|
-
</div>
|
621
|
-
|
622
|
-
<h2>Dropdowns <small>For advanced nav components</small></h2>
|
623
|
-
<div class="row">
|
624
|
-
<div class="span4">
|
625
|
-
<h3>Rich menus made easy</h3>
|
626
|
-
<p>Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.</p>
|
627
|
-
<p>Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.</p>
|
628
|
-
</div>
|
629
|
-
<div class="span4">
|
630
|
-
<h3>Tabs with dropdowns</h3>
|
631
|
-
<ul class="nav nav-tabs">
|
632
|
-
<li class="active"><a href="#">Home</a></li>
|
633
|
-
<li><a href="#">Help</a></li>
|
634
|
-
<li class="dropdown">
|
635
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
636
|
-
<ul class="dropdown-menu">
|
637
|
-
<li><a href="#">Action</a></li>
|
638
|
-
<li><a href="#">Another action</a></li>
|
639
|
-
<li><a href="#">Something else here</a></li>
|
640
|
-
<li class="divider"></li>
|
641
|
-
<li><a href="#">Separated link</a></li>
|
642
|
-
</ul>
|
643
|
-
</li>
|
644
|
-
</ul>
|
645
|
-
<pre class="prettyprint linenums">
|
646
|
-
<ul class="nav nav-tabs">
|
647
|
-
<li class="dropdown">
|
648
|
-
<a class="dropdown-toggle"
|
649
|
-
data-toggle="dropdown"
|
650
|
-
href="#">
|
651
|
-
Dropdown
|
652
|
-
<b class="caret"></b>
|
653
|
-
</a>
|
654
|
-
<ul class="dropdown-menu">
|
655
|
-
<!-- links -->
|
656
|
-
</ul>
|
657
|
-
</li>
|
658
|
-
</ul>
|
659
|
-
</pre>
|
660
|
-
</div>
|
661
|
-
<div class="span4">
|
662
|
-
<h3>Pills with dropdowns</h3>
|
663
|
-
<ul class="nav nav-pills">
|
664
|
-
<li class="active"><a href="#">Home</a></li>
|
665
|
-
<li><a href="#">Help</a></li>
|
666
|
-
<li class="dropdown">
|
667
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
668
|
-
<ul class="dropdown-menu">
|
669
|
-
<li><a href="#">Action</a></li>
|
670
|
-
<li><a href="#">Another action</a></li>
|
671
|
-
<li><a href="#">Something else here</a></li>
|
672
|
-
<li class="divider"></li>
|
673
|
-
<li><a href="#">Separated link</a></li>
|
674
|
-
</ul>
|
675
|
-
</li>
|
676
|
-
</ul>
|
677
|
-
<pre class="prettyprint linenums">
|
678
|
-
<ul class="nav nav-pills">
|
679
|
-
<li class="dropdown">
|
680
|
-
<a class="dropdown-toggle"
|
681
|
-
data-toggle="dropdown"
|
682
|
-
href="#">
|
683
|
-
Dropdown
|
684
|
-
<b class="caret"></b>
|
685
|
-
</a>
|
686
|
-
<ul class="dropdown-menu">
|
687
|
-
<!-- links -->
|
688
|
-
</ul>
|
689
|
-
</li>
|
690
|
-
</ul>
|
691
|
-
</pre>
|
692
|
-
</div>
|
693
|
-
</div>
|
694
|
-
|
695
|
-
<h2>Nav lists <small>Build simple stacked navs, great for sidebars</small></h2>
|
696
|
-
<div class="row">
|
697
|
-
<div class="span4">
|
698
|
-
<h3>Application-style navigation</h3>
|
699
|
-
<p>Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.</p>
|
700
|
-
<p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
|
701
|
-
<hr>
|
702
|
-
<h4>With icons</h4>
|
703
|
-
<p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
|
704
|
-
<h4>Horizontal dividers</h4>
|
705
|
-
<p>Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:</p>
|
706
|
-
<pre class="prettyprint linenums">
|
707
|
-
<ul class="nav nav-list">
|
708
|
-
...
|
709
|
-
<li class="divider"></li>
|
710
|
-
...
|
711
|
-
</ul>
|
712
|
-
</pre>
|
713
|
-
</div>
|
714
|
-
<div class="span4">
|
715
|
-
<h3>Example nav list</h3>
|
716
|
-
<p>Take a list of links and add <code>class="nav nav-list"</code>:</p>
|
717
|
-
<div class="well" style="padding: 8px 0;">
|
718
|
-
<ul class="nav nav-list">
|
719
|
-
<li class="nav-header">List header</li>
|
720
|
-
<li class="active"><a href="#">Home</a></li>
|
721
|
-
<li><a href="#">Library</a></li>
|
722
|
-
<li><a href="#">Applications</a></li>
|
723
|
-
<li class="nav-header">Another list header</li>
|
724
|
-
<li><a href="#">Profile</a></li>
|
725
|
-
<li><a href="#">Settings</a></li>
|
726
|
-
<li class="divider"></li>
|
727
|
-
<li><a href="#">Help</a></li>
|
728
|
-
</ul>
|
729
|
-
</div> <!-- /well -->
|
730
|
-
<pre class="prettyprint linenums">
|
731
|
-
<ul class="nav nav-list">
|
732
|
-
<li class="nav-header">
|
733
|
-
List header
|
734
|
-
</li>
|
735
|
-
<li class="active">
|
736
|
-
<a href="#">Home</a>
|
737
|
-
</li>
|
738
|
-
<li>
|
739
|
-
<a href="#">Library</a>
|
740
|
-
</li>
|
741
|
-
...
|
742
|
-
</ul>
|
743
|
-
</pre>
|
744
|
-
</div>
|
745
|
-
<div class="span4">
|
746
|
-
<h3>Example with icons</h3>
|
747
|
-
<p>Same example, but with <code><i></code> tags for icons.</p>
|
748
|
-
<div class="well" style="padding: 8px 0;">
|
749
|
-
<ul class="nav nav-list">
|
750
|
-
<li class="nav-header">List header</li>
|
751
|
-
<li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
|
752
|
-
<li><a href="#"><i class="icon-book"></i> Library</a></li>
|
753
|
-
<li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
|
754
|
-
<li class="nav-header">Another list header</li>
|
755
|
-
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
756
|
-
<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
|
757
|
-
<li class="divider"></li>
|
758
|
-
<li><a href="#"><i class="icon-flag"></i> Help</a></li>
|
759
|
-
</ul>
|
760
|
-
</div> <!-- /well -->
|
761
|
-
<pre class="prettyprint linenums">
|
762
|
-
<ul class="nav nav-list">
|
763
|
-
...
|
764
|
-
<li>
|
765
|
-
<a href="#">
|
766
|
-
<i class="icon-book"></i>
|
767
|
-
Library
|
768
|
-
</a>
|
769
|
-
</li>
|
770
|
-
...
|
771
|
-
</ul>
|
772
|
-
</pre>
|
773
|
-
</div>
|
774
|
-
</div>
|
775
|
-
|
776
|
-
|
777
|
-
<h2>Tabbable nav <small>Bring tabs to life via javascript</small></h2>
|
778
|
-
<div class="row">
|
779
|
-
<div class="span4">
|
780
|
-
<h3>What's included</h3>
|
781
|
-
<p>Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.</p>
|
782
|
-
<p>Changing between them is easy and only requires changing very little markup.</p>
|
783
|
-
<hr>
|
784
|
-
<h4>Fade in tabs</h4>
|
785
|
-
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.</p>
|
786
|
-
<hr>
|
787
|
-
<h4>Requires jQuery plugin</h4>
|
788
|
-
<p>All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.</p>
|
789
|
-
<p><a class="btn" href="./javascript.html#tabs">Get the javascript →</a></p>
|
790
|
-
</div>
|
791
|
-
<div class="span8">
|
792
|
-
<h3>Tabbable example</h3>
|
793
|
-
<p>To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.</p>
|
794
|
-
<div class="tabbable" style="margin-bottom: 18px;">
|
795
|
-
<ul class="nav nav-tabs">
|
796
|
-
<li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
|
797
|
-
<li><a href="#tab2" data-toggle="tab">Section 2</a></li>
|
798
|
-
<li><a href="#tab3" data-toggle="tab">Section 3</a></li>
|
799
|
-
</ul>
|
800
|
-
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
|
801
|
-
<div class="tab-pane active" id="tab1">
|
802
|
-
<p>I'm in Section 1.</p>
|
803
|
-
</div>
|
804
|
-
<div class="tab-pane" id="tab2">
|
805
|
-
<p>Howdy, I'm in Section 2.</p>
|
806
|
-
</div>
|
807
|
-
<div class="tab-pane" id="tab3">
|
808
|
-
<p>What up girl, this is Section 3.</p>
|
809
|
-
</div>
|
810
|
-
</div>
|
811
|
-
</div> <!-- /tabbable -->
|
812
|
-
<p>For right or left aligned tabs, wrap the <code>.nav-tabs</code> and <code>.tab-content</code> in <code>.tabbable</code>.</p>
|
813
|
-
|
814
|
-
<h3>Straightforward markup</h3>
|
815
|
-
<p>Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.</p>
|
816
|
-
<pre class="prettyprint linenums">
|
817
|
-
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
818
|
-
<ul class="nav nav-tabs">
|
819
|
-
<li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
|
820
|
-
<li><a href="#tab2" data-toggle="tab">Section 2</a></li>
|
821
|
-
</ul>
|
822
|
-
<div class="tab-content">
|
823
|
-
<div class="tab-pane active" id="tab1">
|
824
|
-
<p>I'm in Section 1.</p>
|
825
|
-
</div>
|
826
|
-
<div class="tab-pane" id="tab2">
|
827
|
-
<p>Howdy, I'm in Section 2.</p>
|
828
|
-
</div>
|
829
|
-
</div>
|
830
|
-
</div>
|
831
|
-
</pre>
|
832
|
-
</div>
|
833
|
-
</div>
|
834
|
-
|
835
|
-
|
836
|
-
<h3>Tabbable in any direction</h3>
|
837
|
-
<div class="row">
|
838
|
-
<div class="span4">
|
839
|
-
<h4>Tabs on the bottom</h4>
|
840
|
-
<p>Flip the order of the HTML and add a class to put tabs on the bottom.</p>
|
841
|
-
<div class="tabbable tabs-below">
|
842
|
-
<div class="tab-content">
|
843
|
-
<div class="tab-pane active" id="A">
|
844
|
-
<p>I'm in Section A.</p>
|
845
|
-
</div>
|
846
|
-
<div class="tab-pane" id="B">
|
847
|
-
<p>Howdy, I'm in Section B.</p>
|
848
|
-
</div>
|
849
|
-
<div class="tab-pane" id="C">
|
850
|
-
<p>What up girl, this is Section C.</p>
|
851
|
-
</div>
|
852
|
-
</div>
|
853
|
-
<ul class="nav nav-tabs">
|
854
|
-
<li class="active"><a href="#A" data-toggle="tab">Section 1</a></li>
|
855
|
-
<li><a href="#B" data-toggle="tab">Section 2</a></li>
|
856
|
-
<li><a href="#C" data-toggle="tab">Section 3</a></li>
|
857
|
-
</ul>
|
858
|
-
</div> <!-- /tabbable -->
|
859
|
-
<pre class="prettyprint linenums" style="margin-top: 11px;">
|
860
|
-
<div class="tabbable tabs-below">
|
861
|
-
<div class="tab-content">
|
862
|
-
...
|
863
|
-
</div>
|
864
|
-
<ul class="nav nav-tabs">
|
865
|
-
...
|
866
|
-
</ul>
|
867
|
-
</div>
|
868
|
-
</pre>
|
869
|
-
</div>
|
870
|
-
<div class="span4">
|
871
|
-
<h4>Tabs on the left</h4>
|
872
|
-
<p>Swap the class to put tabs on the left.</p>
|
873
|
-
<div class="tabbable tabs-left">
|
874
|
-
<ul class="nav nav-tabs">
|
875
|
-
<li class="active"><a href="#lA" data-toggle="tab">Section 1</a></li>
|
876
|
-
<li><a href="#lB" data-toggle="tab">Section 2</a></li>
|
877
|
-
<li><a href="#lC" data-toggle="tab">Section 3</a></li>
|
878
|
-
</ul>
|
879
|
-
<div class="tab-content">
|
880
|
-
<div class="tab-pane active" id="lA">
|
881
|
-
<p>I'm in Section A.</p>
|
882
|
-
</div>
|
883
|
-
<div class="tab-pane" id="lB">
|
884
|
-
<p>Howdy, I'm in Section B.</p>
|
885
|
-
</div>
|
886
|
-
<div class="tab-pane" id="lC">
|
887
|
-
<p>What up girl, this is Section C.</p>
|
888
|
-
</div>
|
889
|
-
</div>
|
890
|
-
</div> <!-- /tabbable -->
|
891
|
-
<pre class="prettyprint linenums">
|
892
|
-
<div class="tabbable tabs-left">
|
893
|
-
<ul class="nav nav-tabs">
|
894
|
-
...
|
895
|
-
</ul>
|
896
|
-
<div class="tab-content">
|
897
|
-
...
|
898
|
-
</div>
|
899
|
-
</div>
|
900
|
-
</pre>
|
901
|
-
</div>
|
902
|
-
<div class="span4">
|
903
|
-
<h4>Tabs on the right</h4>
|
904
|
-
<p>Swap the class to put tabs on the right.</p>
|
905
|
-
<div class="tabbable tabs-right">
|
906
|
-
<ul class="nav nav-tabs">
|
907
|
-
<li class="active"><a href="#rA" data-toggle="tab">Section 1</a></li>
|
908
|
-
<li><a href="#rB" data-toggle="tab">Section 2</a></li>
|
909
|
-
<li><a href="#rC" data-toggle="tab">Section 3</a></li>
|
910
|
-
</ul>
|
911
|
-
<div class="tab-content">
|
912
|
-
<div class="tab-pane active" id="rA">
|
913
|
-
<p>I'm in Section A.</p>
|
914
|
-
</div>
|
915
|
-
<div class="tab-pane" id="rB">
|
916
|
-
<p>Howdy, I'm in Section B.</p>
|
917
|
-
</div>
|
918
|
-
<div class="tab-pane" id="rC">
|
919
|
-
<p>What up girl, this is Section C.</p>
|
920
|
-
</div>
|
921
|
-
</div>
|
922
|
-
</div> <!-- /tabbable -->
|
923
|
-
<pre class="prettyprint linenums">
|
924
|
-
<div class="tabbable tabs-right">
|
925
|
-
<ul class="nav nav-tabs">
|
926
|
-
...
|
927
|
-
</ul>
|
928
|
-
<div class="tab-content">
|
929
|
-
...
|
930
|
-
</div>
|
931
|
-
</div>
|
932
|
-
</pre>
|
933
|
-
</div>
|
934
|
-
</div>
|
935
|
-
|
936
|
-
</section>
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
<!-- Navbar
|
941
|
-
================================================== -->
|
942
|
-
<section id="navbar">
|
943
|
-
<div class="page-header">
|
944
|
-
<h1>Navbar</h1>
|
945
|
-
</div>
|
946
|
-
<h2>Static navbar example</h2>
|
947
|
-
<p>An example of a static (not fixed to the top) navbar with project name, navigation, and search form.</p>
|
948
|
-
<div class="navbar">
|
949
|
-
<div class="navbar-inner">
|
950
|
-
<div class="container">
|
951
|
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
952
|
-
<span class="icon-bar"></span>
|
953
|
-
<span class="icon-bar"></span>
|
954
|
-
<span class="icon-bar"></span>
|
955
|
-
</a>
|
956
|
-
<a class="brand" href="#">Project name</a>
|
957
|
-
<div class="nav-collapse">
|
958
|
-
<ul class="nav">
|
959
|
-
<li class="active"><a href="#">Home</a></li>
|
960
|
-
<li><a href="#">Link</a></li>
|
961
|
-
<li><a href="#">Link</a></li>
|
962
|
-
<li><a href="#">Link</a></li>
|
963
|
-
<li class="dropdown">
|
964
|
-
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
965
|
-
<ul class="dropdown-menu">
|
966
|
-
<li><a href="#">Action</a></li>
|
967
|
-
<li><a href="#">Another action</a></li>
|
968
|
-
<li><a href="#">Something else here</a></li>
|
969
|
-
<li class="divider"></li>
|
970
|
-
<li class="nav-header">Nav header</li>
|
971
|
-
<li><a href="#">Separated link</a></li>
|
972
|
-
<li><a href="#">One more separated link</a></li>
|
973
|
-
</ul>
|
974
|
-
</li>
|
975
|
-
</ul>
|
976
|
-
<form class="navbar-search pull-left" action="">
|
977
|
-
<input type="text" class="search-query span2" placeholder="Search">
|
978
|
-
</form>
|
979
|
-
<ul class="nav pull-right">
|
980
|
-
<li><a href="#">Link</a></li>
|
981
|
-
<li class="divider-vertical"></li>
|
982
|
-
<li class="dropdown">
|
983
|
-
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
984
|
-
<ul class="dropdown-menu">
|
985
|
-
<li><a href="#">Action</a></li>
|
986
|
-
<li><a href="#">Another action</a></li>
|
987
|
-
<li><a href="#">Something else here</a></li>
|
988
|
-
<li class="divider"></li>
|
989
|
-
<li><a href="#">Separated link</a></li>
|
990
|
-
</ul>
|
991
|
-
</li>
|
992
|
-
</ul>
|
993
|
-
</div><!-- /.nav-collapse -->
|
994
|
-
</div>
|
995
|
-
</div><!-- /navbar-inner -->
|
996
|
-
</div><!-- /navbar -->
|
997
|
-
|
998
|
-
<div class="row">
|
999
|
-
<div class="span8">
|
1000
|
-
<h3>Navbar scaffolding</h3>
|
1001
|
-
<p>The navbar requires only a few divs to structure it well for static or fixed display.</p>
|
1002
|
-
<pre class="prettyprint linenums">
|
1003
|
-
<div class="navbar">
|
1004
|
-
<div class="navbar-inner">
|
1005
|
-
<div class="container">
|
1006
|
-
...
|
1007
|
-
</div>
|
1008
|
-
</div>
|
1009
|
-
</div>
|
1010
|
-
</pre>
|
1011
|
-
<h3>Fixed navbar</h3>
|
1012
|
-
<p>Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.</p>
|
1013
|
-
<div class="row">
|
1014
|
-
<div class="span4">
|
1015
|
-
<pre class="prettyprint linenums">
|
1016
|
-
<div class="navbar navbar-fixed-top">
|
1017
|
-
...
|
1018
|
-
</div>
|
1019
|
-
</pre>
|
1020
|
-
</div><!--/span-->
|
1021
|
-
<div class="span4">
|
1022
|
-
<pre class="prettyprint linenums">
|
1023
|
-
<div class="navbar navbar-fixed-bottom">
|
1024
|
-
...
|
1025
|
-
</div>
|
1026
|
-
</pre>
|
1027
|
-
</div><!--/span-->
|
1028
|
-
</div><!--/row-->
|
1029
|
-
<p>When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of padding to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
|
1030
|
-
<h3>Brand name</h3>
|
1031
|
-
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
|
1032
|
-
<pre class="prettyprint linenums">
|
1033
|
-
<a class="brand" href="#">
|
1034
|
-
Project name
|
1035
|
-
</a>
|
1036
|
-
</pre>
|
1037
|
-
<h3>Forms in navbar</h3>
|
1038
|
-
<p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p>
|
1039
|
-
<pre class="prettyprint linenums">
|
1040
|
-
<form class="navbar-form pull-left">
|
1041
|
-
<input type="text" class="span2">
|
1042
|
-
</form>
|
1043
|
-
</pre>
|
1044
|
-
<p>For a more customized search form, add <code>.navbar-search</code> to the <code>form</code> and <code>.search-query</code> to the input for specialized styles in the navbar.</p>
|
1045
|
-
<pre class="prettyprint linenums">
|
1046
|
-
<form class="navbar-search pull-left">
|
1047
|
-
<input type="text" class="search-query" placeholder="Search">
|
1048
|
-
</form>
|
1049
|
-
</pre>
|
1050
|
-
<h3>Optional responsive variation</h3>
|
1051
|
-
<p>Depending on the amount of content in your topbar, you might want to implement the responsive options. To do so, wrap your nav content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.btn-navbar</code>.</p>
|
1052
|
-
<pre class="prettyprint linenums">
|
1053
|
-
<div class="navbar">
|
1054
|
-
<div class="navbar-inner">
|
1055
|
-
<div class="container">
|
1056
|
-
|
1057
|
-
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
1058
|
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
1059
|
-
<span class="icon-bar"></span>
|
1060
|
-
<span class="icon-bar"></span>
|
1061
|
-
<span class="icon-bar"></span>
|
1062
|
-
</a>
|
1063
|
-
|
1064
|
-
<!-- Be sure to leave the brand out there if you want it shown -->
|
1065
|
-
<a class="brand" href="#">Project name</a>
|
1066
|
-
|
1067
|
-
<!-- Everything you want hidden at 940px or less, place within here -->
|
1068
|
-
<div class="nav-collapse">
|
1069
|
-
<!-- .nav, .navbar-search, .navbar-form, etc -->
|
1070
|
-
</div>
|
1071
|
-
|
1072
|
-
</div>
|
1073
|
-
</div>
|
1074
|
-
</div>
|
1075
|
-
</pre>
|
1076
|
-
<div class="alert alert-info">
|
1077
|
-
<strong>Heads up!</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
|
1078
|
-
</div>
|
1079
|
-
|
1080
|
-
</div><!-- /.span -->
|
1081
|
-
<div class="span4">
|
1082
|
-
<h3>Nav links</h3>
|
1083
|
-
<p>Nav items are simple to add via unordered lists.</p>
|
1084
|
-
<pre class="prettyprint linenums">
|
1085
|
-
<ul class="nav">
|
1086
|
-
<li class="active">
|
1087
|
-
<a href="#">Home</a>
|
1088
|
-
</li>
|
1089
|
-
<li><a href="#">Link</a></li>
|
1090
|
-
<li><a href="#">Link</a></li>
|
1091
|
-
</ul>
|
1092
|
-
</pre>
|
1093
|
-
<p>You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:</p>
|
1094
|
-
<pre class="prettyprint linenums">
|
1095
|
-
<ul class="nav">
|
1096
|
-
...
|
1097
|
-
<li class="divider-vertical"></li>
|
1098
|
-
...
|
1099
|
-
</ul>
|
1100
|
-
</pre>
|
1101
|
-
<h3>Component alignment</h3>
|
1102
|
-
<p>To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
1103
|
-
<h3>Adding dropdown menus</h3>
|
1104
|
-
<p>Adding dropdowns and dropups to the nav is super simple, but does require the use of <a href="./javascript.html#dropdowns">our javascript plugin</a>.</p>
|
1105
|
-
<pre class="prettyprint linenums">
|
1106
|
-
<ul class="nav">
|
1107
|
-
<li class="dropdown">
|
1108
|
-
<a href="#"
|
1109
|
-
class="dropdown-toggle"
|
1110
|
-
data-toggle="dropdown">
|
1111
|
-
Account
|
1112
|
-
<b class="caret"></b>
|
1113
|
-
</a>
|
1114
|
-
<ul class="dropdown-menu">
|
1115
|
-
...
|
1116
|
-
</ul>
|
1117
|
-
</li>
|
1118
|
-
</ul>
|
1119
|
-
</pre>
|
1120
|
-
<p><a class="btn" href="./javascript.html#dropdowns">Get the javascript →</a></p>
|
1121
|
-
<hr>
|
1122
|
-
<h3>Text in the navbar</h3>
|
1123
|
-
<p>Wrap strings of text in a <code><.navbar-text></code>, usually on a <code><p></code> tag for proper leading and color.</p>
|
1124
|
-
</div><!-- /.span -->
|
1125
|
-
</div><!-- /.row -->
|
1126
|
-
|
1127
|
-
</section>
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
<!-- Breadcrumbs
|
1132
|
-
================================================== -->
|
1133
|
-
<section id="breadcrumbs">
|
1134
|
-
<div class="page-header">
|
1135
|
-
<h1>Breadcrumbs <small></small></h1>
|
1136
|
-
</div>
|
1137
|
-
|
1138
|
-
<div class="row">
|
1139
|
-
<div class="span6">
|
1140
|
-
<h3>Why use them</h3>
|
1141
|
-
<p>Breadcrumb navigation is used as a way to show users where they are within an app or a site, but not for primary navigation. Keep their use sparse and succinct to be most effective.</p>
|
1142
|
-
|
1143
|
-
<h3>Examples</h3>
|
1144
|
-
<p>A single example shown as it might be displayed across multiple pages.</p>
|
1145
|
-
<ul class="breadcrumb">
|
1146
|
-
<li class="active">Home</li>
|
1147
|
-
</ul>
|
1148
|
-
<ul class="breadcrumb">
|
1149
|
-
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
1150
|
-
<li class="active">Library</li>
|
1151
|
-
</ul>
|
1152
|
-
<ul class="breadcrumb">
|
1153
|
-
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
1154
|
-
<li><a href="#">Library</a> <span class="divider">/</span></li>
|
1155
|
-
<li class="active">Data</li>
|
1156
|
-
</ul>
|
1157
|
-
</div>
|
1158
|
-
<div class="span6">
|
1159
|
-
<h3>Markup</h3>
|
1160
|
-
<p>HTML is your standard unordered list with links.</p>
|
1161
|
-
<pre class="prettyprint linenums">
|
1162
|
-
<ul class="breadcrumb">
|
1163
|
-
<li>
|
1164
|
-
<a href="#">Home</a> <span class="divider">/</span>
|
1165
|
-
</li>
|
1166
|
-
<li>
|
1167
|
-
<a href="#">Library</a> <span class="divider">/</span>
|
1168
|
-
</li>
|
1169
|
-
<li class="active">Data</li>
|
1170
|
-
</ul>
|
1171
|
-
</pre>
|
1172
|
-
</div>
|
1173
|
-
</div>
|
1174
|
-
|
1175
|
-
</section>
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
<!-- Pagination
|
1180
|
-
================================================== -->
|
1181
|
-
<section id="pagination">
|
1182
|
-
<div class="page-header">
|
1183
|
-
<h1>Pagination <small>Two options for paging through content</small></h1>
|
1184
|
-
</div>
|
1185
|
-
|
1186
|
-
<h2>Multicon-page pagination</h2>
|
1187
|
-
<div class="row">
|
1188
|
-
<div class="span4">
|
1189
|
-
<h3>When to use</h3>
|
1190
|
-
<p>Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
1191
|
-
<h3>Stateful page links</h3>
|
1192
|
-
<p>Links are customizable and work in a number of circumstances with the right class. <code>.disabled</code> for unclickable links and <code>.active</code> for current page.</p>
|
1193
|
-
<h3>Flexible alignment</h3>
|
1194
|
-
<p>Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
|
1195
|
-
</div>
|
1196
|
-
<div class="span4">
|
1197
|
-
<h3>Examples</h3>
|
1198
|
-
<p>The default pagination component is flexible and works in a number of variations.</p>
|
1199
|
-
<div class="pagination">
|
1200
|
-
<ul>
|
1201
|
-
<li class="disabled"><a href="#">«</a></li>
|
1202
|
-
<li class="active"><a href="#">1</a></li>
|
1203
|
-
<li><a href="#">2</a></li>
|
1204
|
-
<li><a href="#">3</a></li>
|
1205
|
-
<li><a href="#">4</a></li>
|
1206
|
-
<li><a href="#">»</a></li>
|
1207
|
-
</ul>
|
1208
|
-
</div>
|
1209
|
-
<div class="pagination">
|
1210
|
-
<ul>
|
1211
|
-
<li><a href="#">«</a></li>
|
1212
|
-
<li><a href="#">10</a></li>
|
1213
|
-
<li class="active"><a href="#">11</a></li>
|
1214
|
-
<li><a href="#">12</a></li>
|
1215
|
-
<li><a href="#">»</a></li>
|
1216
|
-
</ul>
|
1217
|
-
</div>
|
1218
|
-
<div class="pagination">
|
1219
|
-
<ul>
|
1220
|
-
<li><a href="#">«</a></li>
|
1221
|
-
<li class="active"><a href="#">10</a></li>
|
1222
|
-
<li class="disabled"><a href="#">...</a></li>
|
1223
|
-
<li><a href="#">20</a></li>
|
1224
|
-
<li><a href="#">»</a></li>
|
1225
|
-
</ul>
|
1226
|
-
</div>
|
1227
|
-
<div class="pagination pagination-centered">
|
1228
|
-
<ul>
|
1229
|
-
<li class="active"><a href="#">1</a></li>
|
1230
|
-
<li><a href="#">2</a></li>
|
1231
|
-
<li><a href="#">3</a></li>
|
1232
|
-
<li><a href="#">4</a></li>
|
1233
|
-
<li><a href="#">5</a></li>
|
1234
|
-
</ul>
|
1235
|
-
</div>
|
1236
|
-
</div>
|
1237
|
-
<div class="span4">
|
1238
|
-
<h3>Markup</h3>
|
1239
|
-
<p>Wrapped in a <code><div></code>, pagination is just a <code><ul></code>.</p>
|
1240
|
-
<pre class="prettyprint linenums">
|
1241
|
-
<div class="pagination">
|
1242
|
-
<ul>
|
1243
|
-
<li><a href="#">Prev</a></li>
|
1244
|
-
<li class="active">
|
1245
|
-
<a href="#">1</a>
|
1246
|
-
</li>
|
1247
|
-
<li><a href="#">2</a></li>
|
1248
|
-
<li><a href="#">3</a></li>
|
1249
|
-
<li><a href="#">4</a></li>
|
1250
|
-
<li><a href="#">Next</a></li>
|
1251
|
-
</ul>
|
1252
|
-
</div>
|
1253
|
-
</pre>
|
1254
|
-
</div>
|
1255
|
-
</div><!-- /row -->
|
1256
|
-
|
1257
|
-
<h2>Pager <small>For quick previous and next links</small></h2>
|
1258
|
-
<div class="row">
|
1259
|
-
<div class="span4">
|
1260
|
-
<h3>About pager</h3>
|
1261
|
-
<p>The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.</p>
|
1262
|
-
<h4>Optional disabled state</h4>
|
1263
|
-
<p>Pager links also use the general <code>.disabled</code> class from the pagination.</p>
|
1264
|
-
</div>
|
1265
|
-
<div class="span4">
|
1266
|
-
<h3>Default example</h3>
|
1267
|
-
<p>By default, the pager centers links.</p>
|
1268
|
-
<ul class="pager">
|
1269
|
-
<li><a href="#">Previous</a></li>
|
1270
|
-
<li><a href="#">Next</a></li>
|
1271
|
-
</ul>
|
1272
|
-
<pre class="prettyprint linenums">
|
1273
|
-
<ul class="pager">
|
1274
|
-
<li>
|
1275
|
-
<a href="#">Previous</a>
|
1276
|
-
</li>
|
1277
|
-
<li>
|
1278
|
-
<a href="#">Next</a>
|
1279
|
-
</li>
|
1280
|
-
</ul>
|
1281
|
-
</pre>
|
1282
|
-
</div>
|
1283
|
-
<div class="span4">
|
1284
|
-
<h3>Aligned links</h3>
|
1285
|
-
<p>Alternatively, you can align each link to the sides:</p>
|
1286
|
-
<ul class="pager">
|
1287
|
-
<li class="previous"><a href="#">← Older</a></li>
|
1288
|
-
<li class="next"><a href="#">Newer →</a></li>
|
1289
|
-
</ul>
|
1290
|
-
<pre class="prettyprint linenums">
|
1291
|
-
<ul class="pager">
|
1292
|
-
<li class="previous">
|
1293
|
-
<a href="#">&larr; Older</a>
|
1294
|
-
</li>
|
1295
|
-
<li class="next">
|
1296
|
-
<a href="#">Newer &rarr;</a>
|
1297
|
-
</li>
|
1298
|
-
</ul>
|
1299
|
-
</pre>
|
1300
|
-
</div>
|
1301
|
-
</div><!-- /row -->
|
1302
|
-
</section>
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
<!-- Labels
|
1307
|
-
================================================== -->
|
1308
|
-
<section id="labels">
|
1309
|
-
<div class="page-header">
|
1310
|
-
<h1>Inline labels <small>Label and annotate text</small></h1>
|
1311
|
-
</div>
|
1312
|
-
<table class="table table-bordered table-striped">
|
1313
|
-
<thead>
|
1314
|
-
<tr>
|
1315
|
-
<th>Labels</th>
|
1316
|
-
<th>Markup</th>
|
1317
|
-
</tr>
|
1318
|
-
</thead>
|
1319
|
-
<tbody>
|
1320
|
-
<tr>
|
1321
|
-
<td>
|
1322
|
-
<span class="label">Default</span>
|
1323
|
-
</td>
|
1324
|
-
<td>
|
1325
|
-
<code><span class="label">Default</span></code>
|
1326
|
-
</td>
|
1327
|
-
</tr>
|
1328
|
-
<tr>
|
1329
|
-
<td>
|
1330
|
-
<span class="label label-success">Success</span>
|
1331
|
-
</td>
|
1332
|
-
<td>
|
1333
|
-
<code><span class="label label-success">Success</span></code>
|
1334
|
-
</td>
|
1335
|
-
</tr>
|
1336
|
-
<tr>
|
1337
|
-
<td>
|
1338
|
-
<span class="label label-warning">Warning</span>
|
1339
|
-
</td>
|
1340
|
-
<td>
|
1341
|
-
<code><span class="label label-warning">Warning</span></code>
|
1342
|
-
</td>
|
1343
|
-
</tr>
|
1344
|
-
<tr>
|
1345
|
-
<td>
|
1346
|
-
<span class="label label-important">Important</span>
|
1347
|
-
</td>
|
1348
|
-
<td>
|
1349
|
-
<code><span class="label label-important">Important</span></code>
|
1350
|
-
</td>
|
1351
|
-
</tr>
|
1352
|
-
<tr>
|
1353
|
-
<td>
|
1354
|
-
<span class="label label-info">Info</span>
|
1355
|
-
</td>
|
1356
|
-
<td>
|
1357
|
-
<code><span class="label label-info">Info</span></code>
|
1358
|
-
</td>
|
1359
|
-
</tr>
|
1360
|
-
<tr>
|
1361
|
-
<td>
|
1362
|
-
<span class="label label-inverse">Inverse</span>
|
1363
|
-
</td>
|
1364
|
-
<td>
|
1365
|
-
<code><span class="label label-inverse">Inverse</span></code>
|
1366
|
-
</td>
|
1367
|
-
</tr>
|
1368
|
-
</tbody>
|
1369
|
-
</table>
|
1370
|
-
</section>
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
<!-- Badges
|
1375
|
-
================================================== -->
|
1376
|
-
<section id="badges">
|
1377
|
-
<div class="page-header">
|
1378
|
-
<h1>Badges <small>Indicators and unread counts</small></h1>
|
1379
|
-
</div>
|
1380
|
-
<div class="row">
|
1381
|
-
<div class="span4">
|
1382
|
-
<h3>About</h3>
|
1383
|
-
<p>Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.</p>
|
1384
|
-
</div><!-- /.span -->
|
1385
|
-
<div class="span8">
|
1386
|
-
<h3>Available classes</h3>
|
1387
|
-
<table class="table table-bordered table-striped">
|
1388
|
-
<thead>
|
1389
|
-
<tr>
|
1390
|
-
<th>Name</th>
|
1391
|
-
<th>Example</th>
|
1392
|
-
<th>Markup</th>
|
1393
|
-
</tr>
|
1394
|
-
</thead>
|
1395
|
-
<tbody>
|
1396
|
-
<tr>
|
1397
|
-
<td>
|
1398
|
-
Default
|
1399
|
-
</td>
|
1400
|
-
<td>
|
1401
|
-
<span class="badge">1</span>
|
1402
|
-
</td>
|
1403
|
-
<td>
|
1404
|
-
<code><span class="badge">1</span></code>
|
1405
|
-
</td>
|
1406
|
-
</tr>
|
1407
|
-
<tr>
|
1408
|
-
<td>
|
1409
|
-
Success
|
1410
|
-
</td>
|
1411
|
-
<td>
|
1412
|
-
<span class="badge badge-success">2</span>
|
1413
|
-
</td>
|
1414
|
-
<td>
|
1415
|
-
<code><span class="badge badge-success">2</span></code>
|
1416
|
-
</td>
|
1417
|
-
</tr>
|
1418
|
-
<tr>
|
1419
|
-
<td>
|
1420
|
-
Warning
|
1421
|
-
</td>
|
1422
|
-
<td>
|
1423
|
-
<span class="badge badge-warning">4</span>
|
1424
|
-
</td>
|
1425
|
-
<td>
|
1426
|
-
<code><span class="badge badge-warning">4</span></code>
|
1427
|
-
</td>
|
1428
|
-
</tr>
|
1429
|
-
<tr>
|
1430
|
-
<td>
|
1431
|
-
Important
|
1432
|
-
</td>
|
1433
|
-
<td>
|
1434
|
-
<span class="badge badge-important">6</span>
|
1435
|
-
</td>
|
1436
|
-
<td>
|
1437
|
-
<code><span class="badge badge-important">6</span></code>
|
1438
|
-
</td>
|
1439
|
-
</tr>
|
1440
|
-
<tr>
|
1441
|
-
<td>
|
1442
|
-
Info
|
1443
|
-
</td>
|
1444
|
-
<td>
|
1445
|
-
<span class="badge badge-info">8</span>
|
1446
|
-
</td>
|
1447
|
-
<td>
|
1448
|
-
<code><span class="badge badge-info">8</span></code>
|
1449
|
-
</td>
|
1450
|
-
</tr>
|
1451
|
-
<tr>
|
1452
|
-
<td>
|
1453
|
-
Inverse
|
1454
|
-
</td>
|
1455
|
-
<td>
|
1456
|
-
<span class="badge badge-inverse">10</span>
|
1457
|
-
</td>
|
1458
|
-
<td>
|
1459
|
-
<code><span class="badge badge-inverse">10</span></code>
|
1460
|
-
</td>
|
1461
|
-
</tr>
|
1462
|
-
</tbody>
|
1463
|
-
</table>
|
1464
|
-
</div><!-- /.span -->
|
1465
|
-
</div><!-- /.row -->
|
1466
|
-
</section>
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
<!-- Typographic components
|
1471
|
-
================================================== -->
|
1472
|
-
<section id="typography">
|
1473
|
-
<div class="page-header">
|
1474
|
-
<h1>Typographic components <small>Page header and hero unit for segmenting content</small></h1>
|
1475
|
-
</div>
|
1476
|
-
<h2>Hero unit</h2>
|
1477
|
-
<div class="row">
|
1478
|
-
<div class="span4">
|
1479
|
-
<p>Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.</p>
|
1480
|
-
<h3>Markup</h3>
|
1481
|
-
<p>Wrap your content in a <code>div</code> like so:</p>
|
1482
|
-
<pre class="prettyprint linenums">
|
1483
|
-
<div class="hero-unit">
|
1484
|
-
<h1>Heading</h1>
|
1485
|
-
<p>Tagline</p>
|
1486
|
-
<p>
|
1487
|
-
<a class="btn btn-primary btn-large">
|
1488
|
-
Learn more
|
1489
|
-
</a>
|
1490
|
-
</p>
|
1491
|
-
</div>
|
1492
|
-
</pre>
|
1493
|
-
</div>
|
1494
|
-
<div class="span8">
|
1495
|
-
<div class="hero-unit">
|
1496
|
-
<h1>Hello, world!</h1>
|
1497
|
-
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
|
1498
|
-
<p><a class="btn btn-primary btn-large">Learn more</a></p>
|
1499
|
-
</div>
|
1500
|
-
</div>
|
1501
|
-
</div><!-- /row -->
|
1502
|
-
<h2>Page header</h2>
|
1503
|
-
<div class="row">
|
1504
|
-
<div class="span4">
|
1505
|
-
<p>A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
|
1506
|
-
</div>
|
1507
|
-
<div class="span8">
|
1508
|
-
<div class="page-header">
|
1509
|
-
<h1>Example page header <small>Subtext for header</small></h1>
|
1510
|
-
</div>
|
1511
|
-
<pre class="prettyprint linenums">
|
1512
|
-
<div class="page-header">
|
1513
|
-
<h1>Example page header</h1>
|
1514
|
-
</div>
|
1515
|
-
</pre>
|
1516
|
-
</div>
|
1517
|
-
</div><!-- /row -->
|
1518
|
-
</section>
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
<!-- Thumbnails
|
1523
|
-
================================================== -->
|
1524
|
-
<section id="thumbnails">
|
1525
|
-
<div class="page-header">
|
1526
|
-
<h1>Thumbnails <small>Grids of images, videos, text, and more</small></h1>
|
1527
|
-
</div>
|
1528
|
-
|
1529
|
-
<div class="row">
|
1530
|
-
<div class="span6">
|
1531
|
-
<h2>Default thumbnails</h2>
|
1532
|
-
<p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
|
1533
|
-
<ul class="thumbnails">
|
1534
|
-
<li class="span3">
|
1535
|
-
<a href="#" class="thumbnail">
|
1536
|
-
<img src="http://placehold.it/260x180" alt="">
|
1537
|
-
</a>
|
1538
|
-
</li>
|
1539
|
-
<li class="span3">
|
1540
|
-
<a href="#" class="thumbnail">
|
1541
|
-
<img src="http://placehold.it/260x180" alt="">
|
1542
|
-
</a>
|
1543
|
-
</li>
|
1544
|
-
<li class="span3">
|
1545
|
-
<a href="#" class="thumbnail">
|
1546
|
-
<img src="http://placehold.it/260x180" alt="">
|
1547
|
-
</a>
|
1548
|
-
</li>
|
1549
|
-
<li class="span3">
|
1550
|
-
<a href="#" class="thumbnail">
|
1551
|
-
<img src="http://placehold.it/260x180" alt="">
|
1552
|
-
</a>
|
1553
|
-
</li>
|
1554
|
-
</ul>
|
1555
|
-
</div>
|
1556
|
-
<div class="span6">
|
1557
|
-
<h2>Highly customizable</h2>
|
1558
|
-
<p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
|
1559
|
-
<ul class="thumbnails">
|
1560
|
-
<li class="span3">
|
1561
|
-
<div class="thumbnail">
|
1562
|
-
<img src="http://placehold.it/260x180" alt="">
|
1563
|
-
<div class="caption">
|
1564
|
-
<h5>Thumbnail label</h5>
|
1565
|
-
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
1566
|
-
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
|
1567
|
-
</div>
|
1568
|
-
</div>
|
1569
|
-
</li>
|
1570
|
-
<li class="span3">
|
1571
|
-
<div class="thumbnail">
|
1572
|
-
<img src="http://placehold.it/260x180" alt="">
|
1573
|
-
<div class="caption">
|
1574
|
-
<h5>Thumbnail label</h5>
|
1575
|
-
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
1576
|
-
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
|
1577
|
-
</div>
|
1578
|
-
</div>
|
1579
|
-
</li>
|
1580
|
-
</ul>
|
1581
|
-
</div>
|
1582
|
-
</div>
|
1583
|
-
|
1584
|
-
<div class="row">
|
1585
|
-
<div class="span4">
|
1586
|
-
<h3>Why use thumbnails</h3>
|
1587
|
-
<p>Thumbnails (previously <code>.media-grid</code> up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.</p>
|
1588
|
-
</div>
|
1589
|
-
<div class="span4">
|
1590
|
-
<h3>Simple, flexible markup</h3>
|
1591
|
-
<p>Thumbnail markup is simple—a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.</p>
|
1592
|
-
</div>
|
1593
|
-
<div class="span4">
|
1594
|
-
<h3>Uses grid column sizes</h3>
|
1595
|
-
<p>Lastly, the thumbnails component uses existing grid system classes—like <code>.span2</code> or <code>.span3</code>—for control of thumbnail dimensions.</p>
|
1596
|
-
</div>
|
1597
|
-
</div>
|
1598
|
-
|
1599
|
-
<div class="row">
|
1600
|
-
<div class="span6">
|
1601
|
-
<h2>The markup</h2>
|
1602
|
-
<p>As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup <strong>for linked images</strong>:</p>
|
1603
|
-
<pre class="prettyprint linenums">
|
1604
|
-
<ul class="thumbnails">
|
1605
|
-
<li class="span3">
|
1606
|
-
<a href="#" class="thumbnail">
|
1607
|
-
<img src="http://placehold.it/260x180" alt="">
|
1608
|
-
</a>
|
1609
|
-
</li>
|
1610
|
-
...
|
1611
|
-
</ul>
|
1612
|
-
</pre>
|
1613
|
-
<p>For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code><a></code> for a <code><div></code> like so:</p>
|
1614
|
-
<pre class="prettyprint linenums">
|
1615
|
-
<ul class="thumbnails">
|
1616
|
-
<li class="span3">
|
1617
|
-
<div class="thumbnail">
|
1618
|
-
<img src="http://placehold.it/260x180" alt="">
|
1619
|
-
<h5>Thumbnail label</h5>
|
1620
|
-
<p>Thumbnail caption right here...</p>
|
1621
|
-
</div>
|
1622
|
-
</li>
|
1623
|
-
...
|
1624
|
-
</ul>
|
1625
|
-
</pre>
|
1626
|
-
</div>
|
1627
|
-
<div class="span6">
|
1628
|
-
<h2>More examples</h2>
|
1629
|
-
<p>Explore all your options with the various grid classes available to you. You can also mix and match different sizes.</p>
|
1630
|
-
<ul class="thumbnails">
|
1631
|
-
<li class="span4">
|
1632
|
-
<a href="#" class="thumbnail">
|
1633
|
-
<img src="http://placehold.it/360x268" alt="">
|
1634
|
-
</a>
|
1635
|
-
</li>
|
1636
|
-
<li class="span2">
|
1637
|
-
<a href="#" class="thumbnail">
|
1638
|
-
<img src="http://placehold.it/160x120" alt="">
|
1639
|
-
</a>
|
1640
|
-
</li>
|
1641
|
-
<li class="span2">
|
1642
|
-
<a href="#" class="thumbnail">
|
1643
|
-
<img src="http://placehold.it/160x120" alt="">
|
1644
|
-
</a>
|
1645
|
-
</li>
|
1646
|
-
<li class="span2">
|
1647
|
-
<a href="#" class="thumbnail">
|
1648
|
-
<img src="http://placehold.it/160x120" alt="">
|
1649
|
-
</a>
|
1650
|
-
</li>
|
1651
|
-
<li class="span2">
|
1652
|
-
<a href="#" class="thumbnail">
|
1653
|
-
<img src="http://placehold.it/160x120" alt="">
|
1654
|
-
</a>
|
1655
|
-
</li>
|
1656
|
-
<li class="span2">
|
1657
|
-
<a href="#" class="thumbnail">
|
1658
|
-
<img src="http://placehold.it/160x120" alt="">
|
1659
|
-
</a>
|
1660
|
-
</li>
|
1661
|
-
</ul>
|
1662
|
-
</div>
|
1663
|
-
</div>
|
1664
|
-
|
1665
|
-
</section>
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
<!-- Alerts
|
1670
|
-
================================================== -->
|
1671
|
-
<section id="alerts">
|
1672
|
-
<div class="page-header">
|
1673
|
-
<h1>Alerts <small>Styles for success, warning, and error messages</small></h1>
|
1674
|
-
</div>
|
1675
|
-
|
1676
|
-
<h2>Lightweight defaults</h2>
|
1677
|
-
<div class="row">
|
1678
|
-
<div class="span4">
|
1679
|
-
<h3>Rewritten base class</h3>
|
1680
|
-
<p>With Bootstrap 2, we've simplified the base class: <code>.alert</code> instead of <code>.alert-message</code>. We've also reduced the minimum required markup—no <code><p></code> is required by default, just the outer <code><div></code>.</p>
|
1681
|
-
<h3>Single alert message</h3>
|
1682
|
-
<p>For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to <code>.alert-block</code>.</p>
|
1683
|
-
<hr>
|
1684
|
-
<h3>Goes great with javascript</h3>
|
1685
|
-
<p>Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.</p>
|
1686
|
-
<p><a class="btn js-btn" href="./javascript.html#alerts">Get the plugin »</a></p>
|
1687
|
-
</div>
|
1688
|
-
<div class="span8">
|
1689
|
-
<h3>Example alerts</h3>
|
1690
|
-
<p>Wrap your message and an optional close icon in a div with simple class.</p>
|
1691
|
-
<div class="alert">
|
1692
|
-
<button type="button" class="close" data-dismiss="alert">×</button>
|
1693
|
-
<strong>Warning!</strong> Best check yo self, you're not looking too good.
|
1694
|
-
</div>
|
1695
|
-
<pre class="prettyprint linenums">
|
1696
|
-
<div class="alert">
|
1697
|
-
<button class="close" data-dismiss="alert">×</button>
|
1698
|
-
<strong>Warning!</strong> Best check yo self, you're not looking too good.
|
1699
|
-
</div>
|
1700
|
-
</pre>
|
1701
|
-
<p><span class="label label-info">Heads up!</span> iOS devices require an <code>href="#"</code> for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <code><button></code> element with the data attribute, which we have opted to do for our docs. When using <code><button></code>, you must include <code>type="button"</code> or your forms may not submit.</p>
|
1702
|
-
<p>Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.</p>
|
1703
|
-
<div class="alert alert-block">
|
1704
|
-
<button type="button" class="close" data-dismiss="alert">×</button>
|
1705
|
-
<h4 class="alert-heading">Warning!</h4>
|
1706
|
-
<p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
|
1707
|
-
</div>
|
1708
|
-
<pre class="prettyprint linenums">
|
1709
|
-
<div class="alert alert-block">
|
1710
|
-
<a class="close" data-dismiss="alert" href="#">×</a>
|
1711
|
-
<h4 class="alert-heading">Warning!</h4>
|
1712
|
-
Best check yo self, you're not...
|
1713
|
-
</div>
|
1714
|
-
</pre>
|
1715
|
-
</div>
|
1716
|
-
</div>
|
1717
|
-
|
1718
|
-
<h2>Contextual alternatives <small>Add optional classes to change an alert's connotation</small></h2>
|
1719
|
-
<div class="row">
|
1720
|
-
<div class="span4">
|
1721
|
-
<h3>Error or danger</h3>
|
1722
|
-
<div class="alert alert-error">
|
1723
|
-
<button type="button" class="close" data-dismiss="alert">×</button>
|
1724
|
-
<strong>Oh snap!</strong> Change a few things up and try submitting again.
|
1725
|
-
</div>
|
1726
|
-
<pre class="prettyprint linenums">
|
1727
|
-
<div class="alert alert-error">
|
1728
|
-
...
|
1729
|
-
</div>
|
1730
|
-
</pre>
|
1731
|
-
</div>
|
1732
|
-
<div class="span4">
|
1733
|
-
<h3>Success</h3>
|
1734
|
-
<div class="alert alert-success">
|
1735
|
-
<button type="button" class="close" data-dismiss="alert">×</button>
|
1736
|
-
<strong>Well done!</strong> You successfully read this important alert message.
|
1737
|
-
</div>
|
1738
|
-
<pre class="prettyprint linenums">
|
1739
|
-
<div class="alert alert-success">
|
1740
|
-
...
|
1741
|
-
</div>
|
1742
|
-
</pre>
|
1743
|
-
</div>
|
1744
|
-
<div class="span4">
|
1745
|
-
<h3>Information</h3>
|
1746
|
-
<div class="alert alert-info">
|
1747
|
-
<button type="button" class="close" data-dismiss="alert">×</button>
|
1748
|
-
<strong>Heads up!</strong> This alert needs your attention, but it's not super important.
|
1749
|
-
</div>
|
1750
|
-
<pre class="prettyprint linenums">
|
1751
|
-
<div class="alert alert-info">
|
1752
|
-
...
|
1753
|
-
</div>
|
1754
|
-
</pre>
|
1755
|
-
</div>
|
1756
|
-
</div>
|
1757
|
-
|
1758
|
-
</section>
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
<!-- Progress bars
|
1763
|
-
================================================== -->
|
1764
|
-
<section id="progress">
|
1765
|
-
<div class="page-header">
|
1766
|
-
<h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
|
1767
|
-
</div>
|
1768
|
-
|
1769
|
-
<h2>Examples and markup</h2>
|
1770
|
-
<div class="row">
|
1771
|
-
<div class="span4">
|
1772
|
-
<h3>Basic</h3>
|
1773
|
-
<p>Default progress bar with a vertical gradient.</p>
|
1774
|
-
<div class="progress">
|
1775
|
-
<div class="bar" style="width: 60%;"></div>
|
1776
|
-
</div>
|
1777
|
-
<pre class="prettyprint linenums">
|
1778
|
-
<div class="progress">
|
1779
|
-
<div class="bar"
|
1780
|
-
style="width: 60%;"></div>
|
1781
|
-
</div>
|
1782
|
-
</pre>
|
1783
|
-
</div>
|
1784
|
-
<div class="span4">
|
1785
|
-
<h3>Striped</h3>
|
1786
|
-
<p>Uses a gradient to create a striped effect (no IE).</p>
|
1787
|
-
<div class="progress progress-striped">
|
1788
|
-
<div class="bar" style="width: 20%;"></div>
|
1789
|
-
</div>
|
1790
|
-
<pre class="prettyprint linenums">
|
1791
|
-
<div class="progress progress-striped">
|
1792
|
-
<div class="bar"
|
1793
|
-
style="width: 20%;"></div>
|
1794
|
-
</div>
|
1795
|
-
</pre>
|
1796
|
-
</div>
|
1797
|
-
<div class="span4">
|
1798
|
-
<h3>Animated</h3>
|
1799
|
-
<p>Takes the striped example and animates it (no IE).</p>
|
1800
|
-
<div class="progress progress-striped active">
|
1801
|
-
<div class="bar" style="width: 45%"></div>
|
1802
|
-
</div>
|
1803
|
-
<pre class="prettyprint linenums">
|
1804
|
-
<div class="progress progress-striped
|
1805
|
-
active">
|
1806
|
-
<div class="bar"
|
1807
|
-
style="width: 40%;"></div>
|
1808
|
-
</div>
|
1809
|
-
</pre>
|
1810
|
-
</div>
|
1811
|
-
</div>
|
1812
|
-
|
1813
|
-
<h2>Options and browser support</h2>
|
1814
|
-
<div class="row">
|
1815
|
-
<div class="span3">
|
1816
|
-
<h3>Additional colors</h3>
|
1817
|
-
<p>Progress bars use some of the same button and alert classes for consistent styles.</p>
|
1818
|
-
<div class="progress progress-info" style="margin-bottom: 9px;">
|
1819
|
-
<div class="bar" style="width: 20%"></div>
|
1820
|
-
</div>
|
1821
|
-
<div class="progress progress-success" style="margin-bottom: 9px;">
|
1822
|
-
<div class="bar" style="width: 40%"></div>
|
1823
|
-
</div>
|
1824
|
-
<div class="progress progress-warning" style="margin-bottom: 9px;">
|
1825
|
-
<div class="bar" style="width: 60%"></div>
|
1826
|
-
</div>
|
1827
|
-
<div class="progress progress-danger" style="margin-bottom: 9px;">
|
1828
|
-
<div class="bar" style="width: 80%"></div>
|
1829
|
-
</div>
|
1830
|
-
</div>
|
1831
|
-
<div class="span3">
|
1832
|
-
<h3>Striped bars</h3>
|
1833
|
-
<p>Similar to the solid colors, we have varied striped progress bars.</p>
|
1834
|
-
<div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
|
1835
|
-
<div class="bar" style="width: 20%"></div>
|
1836
|
-
</div>
|
1837
|
-
<div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
|
1838
|
-
<div class="bar" style="width: 40%"></div>
|
1839
|
-
</div>
|
1840
|
-
<div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
|
1841
|
-
<div class="bar" style="width: 60%"></div>
|
1842
|
-
</div>
|
1843
|
-
<div class="progress progress-danger progress-striped" style="margin-bottom: 9px;">
|
1844
|
-
<div class="bar" style="width: 80%"></div>
|
1845
|
-
</div>
|
1846
|
-
</div>
|
1847
|
-
<div class="span3">
|
1848
|
-
<h3>Behavior</h3>
|
1849
|
-
<p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
|
1850
|
-
<p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
|
1851
|
-
</div>
|
1852
|
-
<div class="span3">
|
1853
|
-
<h3>Browser support</h3>
|
1854
|
-
<p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.</p>
|
1855
|
-
<p>Opera and IE do not support animations at this time.</p>
|
1856
|
-
</div>
|
1857
|
-
</div>
|
1858
|
-
|
1859
|
-
</section>
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
<!-- Miscellaneous
|
1866
|
-
================================================== -->
|
1867
|
-
<section id="misc">
|
1868
|
-
<div class="page-header">
|
1869
|
-
<h1>Miscellaneous <small>Lightweight utility components</small></h1>
|
1870
|
-
</div>
|
1871
|
-
<div class="row">
|
1872
|
-
<div class="span4">
|
1873
|
-
<h2>Wells</h2>
|
1874
|
-
<p>Use the well as a simple effect on an element to give it an inset effect.</p>
|
1875
|
-
<div class="well">
|
1876
|
-
Look, I'm in a well!
|
1877
|
-
</div>
|
1878
|
-
<pre class="prettyprint linenums">
|
1879
|
-
<div class="well">
|
1880
|
-
...
|
1881
|
-
</div>
|
1882
|
-
</pre>
|
1883
|
-
</div><!--/span-->
|
1884
|
-
<div class="span4">
|
1885
|
-
<h2>Close icon</h2>
|
1886
|
-
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
1887
|
-
<p><button class="close" style="float: none;">×</button></p>
|
1888
|
-
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
|
1889
|
-
<p>iOS devices require an href="#" for click events if you rather use an anchor.</p>
|
1890
|
-
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
|
1891
|
-
</div><!--/span-->
|
1892
|
-
</div><!--/row-->
|
1893
|
-
</section>
|
1894
|
-
|
1895
|
-
|
1896
|
-
<!-- Footer
|
1897
|
-
================================================== -->
|
1898
|
-
<footer class="footer">
|
1899
|
-
<p class="pull-right"><a href="#">Back to top</a></p>
|
1900
|
-
<p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
|
1901
|
-
<p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
1902
|
-
<p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
1903
|
-
</footer>
|
1904
|
-
|
1905
|
-
</div><!-- /container -->
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
<!-- Le javascript
|
1910
|
-
================================================== -->
|
1911
|
-
<!-- Placed at the end of the document so the pages load faster -->
|
1912
|
-
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
1913
|
-
<script src="assets/js/jquery.js"></script>
|
1914
|
-
<script src="assets/js/google-code-prettify/prettify.js"></script>
|
1915
|
-
<script src="assets/js/bootstrap-transition.js"></script>
|
1916
|
-
<script src="assets/js/bootstrap-alert.js"></script>
|
1917
|
-
<script src="assets/js/bootstrap-modal.js"></script>
|
1918
|
-
<script src="assets/js/bootstrap-dropdown.js"></script>
|
1919
|
-
<script src="assets/js/bootstrap-scrollspy.js"></script>
|
1920
|
-
<script src="assets/js/bootstrap-tab.js"></script>
|
1921
|
-
<script src="assets/js/bootstrap-tooltip.js"></script>
|
1922
|
-
<script src="assets/js/bootstrap-popover.js"></script>
|
1923
|
-
<script src="assets/js/bootstrap-button.js"></script>
|
1924
|
-
<script src="assets/js/bootstrap-collapse.js"></script>
|
1925
|
-
<script src="assets/js/bootstrap-carousel.js"></script>
|
1926
|
-
<script src="assets/js/bootstrap-typeahead.js"></script>
|
1927
|
-
<script src="assets/js/application.js"></script>
|
1928
|
-
|
1929
|
-
|
1930
|
-
</body>
|
1931
|
-
</html>
|