shopify_app 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/lib/generators/shopify_app/shopify_app_generator.rb +4 -0
- data/lib/generators/shopify_app/templates/app/assets/images/favicon.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/images/grid-18px.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/images/shopify-114.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/images/shopify-57.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/images/shopify-72.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/images/shopify.png +0 -0
- data/lib/generators/shopify_app/templates/app/assets/javascripts/application.js +15 -0
- data/lib/generators/shopify_app/templates/app/assets/stylesheets/application.css +10 -0
- data/lib/generators/shopify_app/templates/app/assets/stylesheets/imports.css.less +5 -0
- data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.scss +150 -0
- data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app_buttons.css.less +77 -0
- data/lib/generators/shopify_app/templates/app/controllers/home_controller.rb +4 -4
- data/lib/generators/shopify_app/templates/app/helpers/tabs_helper.rb +8 -7
- data/lib/generators/shopify_app/templates/app/views/home/design.html.erb +3542 -164
- data/lib/generators/shopify_app/templates/app/views/home/index.html.erb +161 -96
- data/lib/generators/shopify_app/templates/app/views/layouts/application.html.erb +62 -25
- data/lib/generators/shopify_app/templates/app/views/login/index.html.erb +18 -12
- data/lib/generators/shopify_app/templates/public/404.html +43 -0
- data/lib/generators/shopify_app/templates/public/422.html +43 -0
- data/lib/generators/shopify_app/templates/public/500.html +43 -0
- data/lib/generators/shopify_app/templates/public/favicon.png +0 -0
- data/lib/generators/shopify_app/templates/public/shopify-114.png +0 -0
- data/lib/generators/shopify_app/templates/public/shopify-57.png +0 -0
- data/lib/generators/shopify_app/templates/public/shopify-72.png +0 -0
- data/lib/shopify_app/version.rb +1 -1
- data/shopify_app.gemspec +1 -1
- metadata +21 -32
- data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.css +0 -285
- data/lib/generators/shopify_app/templates/public/images/box-bg2.gif +0 -0
- data/lib/generators/shopify_app/templates/public/images/info-bg.gif +0 -0
- data/lib/generators/shopify_app/templates/public/images/info.gif +0 -0
- data/lib/generators/shopify_app/templates/public/images/logo.png +0 -0
data/CHANGELOG
CHANGED
@@ -31,6 +31,10 @@ class ShopifyAppGenerator < Rails::Generators::Base
|
|
31
31
|
|
32
32
|
DATA
|
33
33
|
end
|
34
|
+
|
35
|
+
def add_bootstrap_gem
|
36
|
+
insert_into_file "Gemfile", "\ngem 'less-rails-bootstrap'\n\n", :before => '# Gems used only for assets and not required'
|
37
|
+
end
|
34
38
|
|
35
39
|
def add_routes
|
36
40
|
unless options[:skip_routes]
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
// If you need to customize any bootstrap js, we've placed the un-minified versions in
|
8
|
+
// assets/javascripts/bootstrap including the test suite that ships with bootstrap.
|
9
|
+
// Love,
|
10
|
+
// Shopify
|
11
|
+
//
|
12
|
+
//= require jquery
|
13
|
+
//= require jquery_ujs
|
14
|
+
//= require twitter/bootstrap
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require_self
|
6
|
+
*= require twitter/bootstrap
|
7
|
+
*= require imports
|
8
|
+
*= require shopify_app_buttons
|
9
|
+
*= require shopify_app
|
10
|
+
*/
|
@@ -0,0 +1,150 @@
|
|
1
|
+
/* SCSS
|
2
|
+
============================================================= */
|
3
|
+
/* Mixins */
|
4
|
+
@mixin rounded($px:3px) { -webkit-border-radius:$px; -moz-border-radius:$px; border-radius:$px; }
|
5
|
+
@mixin border-radius($tl,$tr,$br,$bl) { -webkit-border-radius:$tl $tr $br $bl; -moz-border-radius:$tl $tr $br $bl; border-radius:$tl $tr $br $bl; }
|
6
|
+
@mixin box-shadow($x:0,$y:1px,$spread:1px,$opac:0.15) { -moz-box-shadow:$x $y $spread rgba(0,0,0,$opac); -webkit-box-shadow:$x $y $spread rgba(0,0,0,$opac); box-shadow:$x $y $spread rgba(0,0,0,$opac); }
|
7
|
+
@mixin transition($properties:all,$timing:0.3s,$transition:ease-in-out) { -o-transition: $properties $timing $transition; -webkit-transition: $properties $timing $transition; -moz-transition: $properties $timing $transition; }
|
8
|
+
@mixin gradient($color1, $color2) { background-image:-o-linear-gradient($color1, $color2); background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, $color1),color-stop(1, $color2)); background-image: -moz-linear-gradient(center bottom,$color1 0%, $color2 100%); background-image: linear-gradient(top, $color1, $color2); }
|
9
|
+
|
10
|
+
/* Fonts */
|
11
|
+
$open-sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
12
|
+
|
13
|
+
/* Colours */
|
14
|
+
$col-blue: #40a1c9;
|
15
|
+
$col-blue-hover: #2a8eb7;
|
16
|
+
$col-blue-hover-light: #86cce9;
|
17
|
+
$col-green: #96c944;
|
18
|
+
$col-light-green: #c4ec84;
|
19
|
+
$col-green-hover: #87b936;
|
20
|
+
$col-grey: #818181;
|
21
|
+
$col-grey-hover: #d2d2d2;
|
22
|
+
$col-light-grey: #c3c2c3;
|
23
|
+
|
24
|
+
|
25
|
+
/* BOOTSTRAP OVERRIDES
|
26
|
+
============================================================= */
|
27
|
+
html, body { background-color: #eee; }
|
28
|
+
body { padding-top: 40px;}
|
29
|
+
|
30
|
+
footer { margin-top: 7px; padding-top: 7px; color:#aaa;}
|
31
|
+
|
32
|
+
a { color:$col-blue;
|
33
|
+
&:hover { color:$col-blue-hover; text-decoration:none;}
|
34
|
+
}
|
35
|
+
|
36
|
+
.dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover {
|
37
|
+
background-color:$col-blue !important;
|
38
|
+
[class^="icon-"] { background-image: url('../assets/glyphicons-halflings-white.png');}
|
39
|
+
}
|
40
|
+
|
41
|
+
.container {
|
42
|
+
> footer p { text-align: center;}
|
43
|
+
> .content { background-color: #fff; padding: 20px; margin: 0 -20px; @include border-radius(0,0,6px,6px); @include box-shadow(0,1px,2px);}
|
44
|
+
}
|
45
|
+
|
46
|
+
.page-header h1 { color:$col-blue;}
|
47
|
+
|
48
|
+
.content { min-height: 500px;}
|
49
|
+
|
50
|
+
[class^="icon-"] { background-image: url('../assets/glyphicons-halflings.png');}
|
51
|
+
|
52
|
+
.icon-white { background-image: url('../assets/glyphicons-halflings-white.png');}
|
53
|
+
|
54
|
+
.navbar {
|
55
|
+
.brand { color: #fff;}
|
56
|
+
.navbar-inner { background-image:none; background-color:#000; box-shadow:none;}
|
57
|
+
.nav > li.active > a, .nav > li.active > a:hover { background-color: #222;}
|
58
|
+
p a { color: #ffffff;}
|
59
|
+
}
|
60
|
+
|
61
|
+
.navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover { background-color: #171717;}
|
62
|
+
|
63
|
+
.btn-navbar {
|
64
|
+
background-color: #111;
|
65
|
+
background-image: none;
|
66
|
+
border-color:#222;
|
67
|
+
-webkit-box-shadow: none;
|
68
|
+
-moz-box-shadow: none;
|
69
|
+
box-shadow: none;
|
70
|
+
}
|
71
|
+
.btn-navbar:hover { border-color:#333;}
|
72
|
+
.btn-navbar:before { opacity:0;}
|
73
|
+
|
74
|
+
input:focus, textarea:focus {
|
75
|
+
border-color: rgba(64,161,201, 0.8);
|
76
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
77
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
78
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
79
|
+
}
|
80
|
+
|
81
|
+
input[type=text].btn-large { height:20px;}
|
82
|
+
|
83
|
+
a.thumbnail:hover {
|
84
|
+
border-color: rgba(64,161,201, 0.8);
|
85
|
+
-webkit-box-shadow: 0 1px 4px rgba(64,161,201, 0.25);
|
86
|
+
-moz-box-shadow: 0 1px 4px rgba(64,161,201, 0.25);
|
87
|
+
box-shadow: 0 1px 4px rgba(64,161,201, 0.25);
|
88
|
+
}
|
89
|
+
|
90
|
+
@media(max-width: 768px) {
|
91
|
+
.container > .content { @include rounded(0);}
|
92
|
+
}
|
93
|
+
|
94
|
+
@media (max-width: 980px) {
|
95
|
+
body { padding-top: 0px !important;}
|
96
|
+
.navbar .nav.pull-right { display:none;}
|
97
|
+
.navbar-fixed-top { margin:0;}
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
/* APP CSS
|
102
|
+
============================================================= */
|
103
|
+
/* General */
|
104
|
+
h1,h2,h3,h4,h5,h6,.brand {
|
105
|
+
font-family: $open-sans;
|
106
|
+
font-weight:normal;
|
107
|
+
small { letter-spacing:0px;}
|
108
|
+
}
|
109
|
+
|
110
|
+
h1,h2 { letter-spacing:-1px;}
|
111
|
+
|
112
|
+
.polaroid { float:right; display:block; padding: 20px; margin: 0 0 50px 50px; border: 1px solid #ccc; border: 1px solid #fff; background: #f5f5f5;
|
113
|
+
@include gradient(#f5f5f5,#f0f0f0);
|
114
|
+
@include box-shadow(0,1px,5px,.5);
|
115
|
+
@include rounded(4px);
|
116
|
+
}
|
117
|
+
|
118
|
+
#login-header { border-bottom:none;
|
119
|
+
h1 { text-align:center;}
|
120
|
+
}
|
121
|
+
|
122
|
+
/* Optional Bootstrap Overrides */
|
123
|
+
.accordion-body {
|
124
|
+
background: #f9f9f9;
|
125
|
+
.accordion-inner { padding:20px;
|
126
|
+
img { border:1px solid rgba(0,0,0,.07);}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
.modal { max-height:700px; width:auto;
|
131
|
+
.modal-body { text-align:center;}
|
132
|
+
}
|
133
|
+
|
134
|
+
/* "Where do I start?" header -- you can delete this safely (all the way to the bottom) */
|
135
|
+
.jumbotron { background: #222; margin:-20px -20px 20px -20px; position: relative;}
|
136
|
+
.jumbotron h1 { font-size: 54px; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);}
|
137
|
+
.jumbotron h1, .jumbotron p { margin-right:0; margin-bottom: 9px; color: #fff; text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);}
|
138
|
+
.jumbotron .inner { background: transparent url('../assets/grid-18px.png') top center; padding: 45px 0;
|
139
|
+
-webkit-box-shadow: inset 0 -20px 300px rgba(0,0,0,.4); -moz-box-shadow: inset 0 -20px 300px rgba(0,0,0,.4);}
|
140
|
+
|
141
|
+
@media (max-width: 480px) {
|
142
|
+
.jumbotron h1,.jumbotron p { text-align: center; margin-right: 0;}
|
143
|
+
.jumbotron h1 { font-size: 45px; margin-right: 0;}
|
144
|
+
.jumbotron p { margin-right: 0; font-size: 18px; line-height: 24px;}}
|
145
|
+
@media (min-width: 480px) and (max-width: 768px) {
|
146
|
+
.jumbotron h1 { font-size: 54px;}
|
147
|
+
.jumbotron h1,.jumbotron p { margin-right: 0;}}
|
148
|
+
@media (min-width: 768px) and (max-width: 940px) {
|
149
|
+
.jumbotron h1 { font-size: 72px;}}
|
150
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
@import "twitter/bootstrap/variables";
|
2
|
+
@import "twitter/bootstrap/mixins";
|
3
|
+
|
4
|
+
@shopifyBtnBackground: #1196c1;
|
5
|
+
@shopifyBtnBackground2: #36abce;
|
6
|
+
|
7
|
+
// core
|
8
|
+
.btn {
|
9
|
+
display: inline-block;
|
10
|
+
padding: 4px 10px 4px;
|
11
|
+
font-size: @baseFontSize;
|
12
|
+
line-height: @baseLineHeight;
|
13
|
+
color: @grayDark;
|
14
|
+
text-align: center;
|
15
|
+
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
16
|
+
#gradient > .vertical-three-colors(@white, @white, 25%, darken(@white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
17
|
+
border: 1px solid #ccc;
|
18
|
+
border-bottom-color: #bbb;
|
19
|
+
.border-radius(4px);
|
20
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
21
|
+
.box-shadow(@shadow);
|
22
|
+
cursor: pointer;
|
23
|
+
|
24
|
+
// Give IE7 some love
|
25
|
+
.ie7-restore-left-whitespace();
|
26
|
+
}
|
27
|
+
|
28
|
+
// Hover state
|
29
|
+
.btn:hover {
|
30
|
+
color: @grayDark;
|
31
|
+
text-decoration: none;
|
32
|
+
background-color: darken(@white, 10%);
|
33
|
+
background-position: 0 -15px;
|
34
|
+
|
35
|
+
// transition is only when going to hover, otherwise the background
|
36
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
37
|
+
.transition(background-position .1s linear);
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Set text color
|
42
|
+
// -------------------------
|
43
|
+
.btn-primary,
|
44
|
+
.btn-primary:hover,
|
45
|
+
.btn-warning,
|
46
|
+
.btn-warning:hover,
|
47
|
+
.btn-danger,
|
48
|
+
.btn-danger:hover,
|
49
|
+
.btn-success,
|
50
|
+
.btn-success:hover,
|
51
|
+
.btn-info,
|
52
|
+
.btn-info:hover {
|
53
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
54
|
+
color: @white
|
55
|
+
}
|
56
|
+
|
57
|
+
// Set the backgrounds
|
58
|
+
// -------------------------
|
59
|
+
.btn-primary {
|
60
|
+
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
61
|
+
}
|
62
|
+
// Warning appears are orange
|
63
|
+
.btn-warning {
|
64
|
+
.buttonBackground(lighten(@orange, 15%), @orange);
|
65
|
+
}
|
66
|
+
// Danger and error appear as red
|
67
|
+
.btn-danger {
|
68
|
+
.buttonBackground(#ee5f5b, #bd362f);
|
69
|
+
}
|
70
|
+
// Success appears as green
|
71
|
+
.btn-success {
|
72
|
+
.buttonBackground(#62c462, #51a351);
|
73
|
+
}
|
74
|
+
// Info appears as a neutral blue
|
75
|
+
.btn-info {
|
76
|
+
.buttonBackground(#5bc0de, #2f96b4);
|
77
|
+
}
|
@@ -8,11 +8,11 @@ class HomeController < ApplicationController
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def index
|
11
|
-
# get
|
12
|
-
@products = ShopifyAPI::Product.find(:all, :params => {:limit =>
|
11
|
+
# get 5 products
|
12
|
+
@products = ShopifyAPI::Product.find(:all, :params => {:limit => 10})
|
13
13
|
|
14
|
-
# get latest
|
15
|
-
@orders = ShopifyAPI::Order.find(:all, :params => {:limit =>
|
14
|
+
# get latest 5 orders
|
15
|
+
@orders = ShopifyAPI::Order.find(:all, :params => {:limit => 5, :order => "created_at DESC" })
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module TabsHelper
|
2
|
-
|
3
|
-
def
|
4
|
-
if
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
|
3
|
+
def active_nav_class(name, action = nil)
|
4
|
+
if action.present?
|
5
|
+
return if controller.action_name != action
|
6
|
+
end
|
7
|
+
|
8
|
+
'active' if controller.controller_name =~ /#{name}/i
|
9
9
|
end
|
10
|
+
|
10
11
|
end
|
@@ -1,164 +1,3542 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
1
|
+
<style>
|
2
|
+
/* Space out sub-sections more
|
3
|
+
-------------------------------------------------- */
|
4
|
+
section {
|
5
|
+
padding-top: 60px;
|
6
|
+
}
|
7
|
+
.page-header {
|
8
|
+
margin: 18px 0;
|
9
|
+
border-bottom: 1px solid #eee;
|
10
|
+
background:none;
|
11
|
+
padding:0;
|
12
|
+
}
|
13
|
+
.page-header h1 {
|
14
|
+
margin-bottom: 17px;
|
15
|
+
line-height: 1;
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
/* Jumbotrons
|
20
|
+
-------------------------------------------------- */
|
21
|
+
.masthead {
|
22
|
+
background-color: #0277BD;
|
23
|
+
background-repeat: no-repeat;
|
24
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
|
25
|
+
background-image: -webkit-linear-gradient(#004D9F, #049cd9);
|
26
|
+
background-image: -moz-linear-gradient(#004D9F, #049cd9);
|
27
|
+
background-image: -o-linear-gradient(top, #004D9F, #049cd9);
|
28
|
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
|
29
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0);
|
30
|
+
|
31
|
+
margin:-20px -20px -50px -20px;
|
32
|
+
}
|
33
|
+
|
34
|
+
.jumbotron .inner {
|
35
|
+
background: transparent url('../assets/grid-18px.png') top center;
|
36
|
+
padding: 45px 0;
|
37
|
+
-webkit-box-shadow: inset 0 -10px 100px rgba(0,0,0,.1);
|
38
|
+
-moz-box-shadow: inset 0 -10px 100px rgba(0,0,0,.1);
|
39
|
+
}
|
40
|
+
|
41
|
+
.jumbotron {
|
42
|
+
position: relative;
|
43
|
+
}
|
44
|
+
|
45
|
+
.jumbotron h1 {
|
46
|
+
font-size: 54px;
|
47
|
+
line-height: 1;
|
48
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
|
49
|
+
}
|
50
|
+
|
51
|
+
.jumbotron h1, .jumbotron p {
|
52
|
+
margin-bottom: 9px;
|
53
|
+
color: white;
|
54
|
+
text-align: center;
|
55
|
+
text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
|
56
|
+
}
|
57
|
+
|
58
|
+
.jumbotron .btn-large {
|
59
|
+
font-size: 20px;
|
60
|
+
padding: 14px 24px;
|
61
|
+
margin-right: 5px;
|
62
|
+
-webkit-border-radius: 6px;
|
63
|
+
-moz-border-radius: 6px;
|
64
|
+
border-radius: 6px;
|
65
|
+
border:1px solid rgba(0,0,0,.35);
|
66
|
+
box-shadow:0 2px 2px rgba(0,0,0,.25);
|
67
|
+
}
|
68
|
+
|
69
|
+
.jumbotron .btn-large [class^="icon-"] { margin-top:6px;}
|
70
|
+
|
71
|
+
/* Specific jumbotrons
|
72
|
+
------------------------- */
|
73
|
+
/* supporting docs pages */
|
74
|
+
.subhead {
|
75
|
+
padding-bottom: 0;
|
76
|
+
border-bottom: 0;
|
77
|
+
}
|
78
|
+
.subhead h1,
|
79
|
+
.subhead p {
|
80
|
+
margin-right: 0;
|
81
|
+
}
|
82
|
+
.subhead h1 {
|
83
|
+
font-size: 54px;
|
84
|
+
}
|
85
|
+
|
86
|
+
/* Subnav */
|
87
|
+
.subnav {
|
88
|
+
width: 100%;
|
89
|
+
height: 36px;
|
90
|
+
overflow: hidden;
|
91
|
+
background-color: #eeeeee; /* Old browsers */
|
92
|
+
background-repeat: repeat-x; /* Repeat the gradient */
|
93
|
+
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
|
94
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
|
95
|
+
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
|
96
|
+
background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
|
97
|
+
background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
|
98
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
|
99
|
+
background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
|
100
|
+
border: 1px solid #e5e5e5;
|
101
|
+
-webkit-border-radius: 4px;
|
102
|
+
-moz-border-radius: 4px;
|
103
|
+
border-radius: 4px;
|
104
|
+
}
|
105
|
+
.subnav .nav {
|
106
|
+
margin-bottom: 0;
|
107
|
+
}
|
108
|
+
.subnav .nav a {
|
109
|
+
margin: 0;
|
110
|
+
padding-top: 11px;
|
111
|
+
padding-bottom: 11px;
|
112
|
+
font-size: 13px;
|
113
|
+
color: #777;
|
114
|
+
border-left: 1px solid #f5f5f5;
|
115
|
+
border-right: 1px solid #e5e5e5;
|
116
|
+
-webkit-border-radius: 0;
|
117
|
+
-moz-border-radius: 0;
|
118
|
+
border-radius: 0;
|
119
|
+
}
|
120
|
+
.subnav .nav a:hover,
|
121
|
+
.subnav .nav .active a {
|
122
|
+
background-color: transparent;
|
123
|
+
color: #333;
|
124
|
+
}
|
125
|
+
.subnav .nav .active a {
|
126
|
+
background-color: #e9e9e9;
|
127
|
+
border-right-color: #ddd;
|
128
|
+
border-left: 0;
|
129
|
+
padding-left: 13px;
|
130
|
+
-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.075);
|
131
|
+
-moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.075);
|
132
|
+
box-shadow: inset 0 3px 5px rgba(0,0,0,.075);
|
133
|
+
}
|
134
|
+
.subnav .nav li:first-child a {
|
135
|
+
border-left: 0;
|
136
|
+
padding-left: 12px;
|
137
|
+
}
|
138
|
+
.subnav .nav li:last-child a {
|
139
|
+
border-right: 0;
|
140
|
+
}
|
141
|
+
|
142
|
+
/* Fixed subnav on scroll, but only for 940px and up (sorry IE!) */
|
143
|
+
@media (min-width: 940px) {
|
144
|
+
.subnav-fixed {
|
145
|
+
position: fixed;
|
146
|
+
top: 40px;
|
147
|
+
left: 0;
|
148
|
+
right: 0;
|
149
|
+
z-index: 1030;
|
150
|
+
border-color: #d5d5d5;
|
151
|
+
border-width: 0 0 1px; /* drop the border on the fixed edges */
|
152
|
+
-webkit-border-radius: 0;
|
153
|
+
-moz-border-radius: 0;
|
154
|
+
border-radius: 0;
|
155
|
+
-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
|
156
|
+
-moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
|
157
|
+
box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
|
158
|
+
}
|
159
|
+
.subnav-fixed .nav {
|
160
|
+
width: 938px;
|
161
|
+
margin: 0 auto;
|
162
|
+
padding: 0 1px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
|
167
|
+
/* Quick links
|
168
|
+
-------------------------------------------------- */
|
169
|
+
.quick-links {
|
170
|
+
min-height: 30px;
|
171
|
+
padding: 5px 20px;
|
172
|
+
margin: 45px 0;
|
173
|
+
list-style: none;
|
174
|
+
text-align: center;
|
175
|
+
background-color: #eee;
|
176
|
+
-webkit-border-radius: 3px;
|
177
|
+
-moz-border-radius: 3px;
|
178
|
+
border-radius: 3px;
|
179
|
+
-webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
|
180
|
+
-moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
|
181
|
+
box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
|
182
|
+
overflow: hidden;
|
183
|
+
}
|
184
|
+
.quick-links li {
|
185
|
+
display: inline;
|
186
|
+
margin: 0 5px;
|
187
|
+
}
|
188
|
+
.quick-links .divider {
|
189
|
+
color: #999;
|
190
|
+
}
|
191
|
+
.quick-links strong {
|
192
|
+
font-weight: normal;
|
193
|
+
color: #999;
|
194
|
+
}
|
195
|
+
.quick-links .github-btn,
|
196
|
+
.quick-links .tweet-btn,
|
197
|
+
.quick-links .follow-btn {
|
198
|
+
position: relative;
|
199
|
+
top: 5px;
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
/* Marketing section of Overview
|
204
|
+
-------------------------------------------------- */
|
205
|
+
.marketing .row {
|
206
|
+
margin-bottom: 9px;
|
207
|
+
}
|
208
|
+
.marketing h1 {
|
209
|
+
margin: 36px 0 27px;
|
210
|
+
font-size: 40px;
|
211
|
+
font-weight: 300;
|
212
|
+
text-align: center;
|
213
|
+
}
|
214
|
+
.marketing h2,
|
215
|
+
.marketing h3 {
|
216
|
+
font-weight: 300;
|
217
|
+
}
|
218
|
+
.marketing h2 {
|
219
|
+
font-size: 22px;
|
220
|
+
}
|
221
|
+
.marketing p {
|
222
|
+
margin-right: 10px;
|
223
|
+
}
|
224
|
+
.marketing .bs-icon {
|
225
|
+
float: left;
|
226
|
+
margin: 7px 10px 0 0;
|
227
|
+
opacity: .8;
|
228
|
+
}
|
229
|
+
.marketing .small-bs-icon {
|
230
|
+
float: left;
|
231
|
+
margin: 4px 5px 0 0;
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
/* Quickstart section for getting le code
|
236
|
+
-------------------------------------------------- */
|
237
|
+
.getting-started h3,
|
238
|
+
.getting-started p {
|
239
|
+
line-height: 18px;
|
240
|
+
text-align: center;
|
241
|
+
margin-bottom: 9px;
|
242
|
+
}
|
243
|
+
.getting-started p {
|
244
|
+
color: #777;
|
245
|
+
}
|
246
|
+
.getting-started .current-version,
|
247
|
+
.getting-started .current-version a {
|
248
|
+
color: #999;
|
249
|
+
}
|
250
|
+
.getting-started form {
|
251
|
+
margin-bottom: 0;
|
252
|
+
}
|
253
|
+
.getting-started textarea {
|
254
|
+
display: block;
|
255
|
+
width: 95%;
|
256
|
+
height: auto;
|
257
|
+
margin-left: auto;
|
258
|
+
margin-right: auto;
|
259
|
+
font-family: Menlo, Monaco, "Courier New", monospace;
|
260
|
+
font-size: 12px;
|
261
|
+
line-height: 20px;
|
262
|
+
white-space: nowrap;
|
263
|
+
overflow: hidden;
|
264
|
+
background-color: #f5f5f5;
|
265
|
+
/* Makes inputs behave like true block-level elements */
|
266
|
+
-webkit-box-sizing: border-box; /* Older Webkit */
|
267
|
+
-moz-box-sizing: border-box; /* Older FF */
|
268
|
+
-ms-box-sizing: border-box; /* IE8 */
|
269
|
+
box-sizing: border-box; /* CSS3 spec*/
|
270
|
+
/* Hacks for IE7 to make this work just okay enough to function */
|
271
|
+
*width: 80%;
|
272
|
+
*height: 24px;
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
/* Footer
|
277
|
+
-------------------------------------------------- */
|
278
|
+
.footer {
|
279
|
+
margin-top: 45px;
|
280
|
+
padding: 35px 0 36px;
|
281
|
+
border-top: 1px solid #e5e5e5;
|
282
|
+
}
|
283
|
+
.footer p {
|
284
|
+
margin-bottom: 0;
|
285
|
+
color: #555;
|
286
|
+
}
|
287
|
+
.footer dl {
|
288
|
+
margin-bottom: 0;
|
289
|
+
}
|
290
|
+
.footer dl dt {
|
291
|
+
font-size: 11px;
|
292
|
+
color: #999;
|
293
|
+
text-transform: uppercase;
|
294
|
+
}
|
295
|
+
.footer dl dd + dt {
|
296
|
+
margin-top: 18px;
|
297
|
+
}
|
298
|
+
.footer dl dd {
|
299
|
+
margin-left: 0;
|
300
|
+
font-size: 12px;
|
301
|
+
}
|
302
|
+
.footer dl a {
|
303
|
+
color: #999;
|
304
|
+
}
|
305
|
+
.footer dl a:hover {
|
306
|
+
color: #555;
|
307
|
+
}
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
/* Special grid styles
|
312
|
+
-------------------------------------------------- */
|
313
|
+
.show-grid {
|
314
|
+
margin-top: 10px;
|
315
|
+
margin-bottom: 20px;
|
316
|
+
}
|
317
|
+
.show-grid [class*="span"] {
|
318
|
+
background-color: #eee;
|
319
|
+
text-align: center;
|
320
|
+
-webkit-border-radius: 3px;
|
321
|
+
-moz-border-radius: 3px;
|
322
|
+
border-radius: 3px;
|
323
|
+
min-height: 30px;
|
324
|
+
line-height: 30px;
|
325
|
+
}
|
326
|
+
.show-grid:hover [class*="span"] {
|
327
|
+
background: #ddd;
|
328
|
+
}
|
329
|
+
.show-grid .show-grid {
|
330
|
+
margin-top: 0;
|
331
|
+
margin-bottom: 0;
|
332
|
+
}
|
333
|
+
.show-grid .show-grid [class*="span"] {
|
334
|
+
background-color: #ccc;
|
335
|
+
}
|
336
|
+
|
337
|
+
|
338
|
+
/* Render mini layout previews
|
339
|
+
-------------------------------------------------- */
|
340
|
+
.mini-layout {
|
341
|
+
border: 1px solid #ddd;
|
342
|
+
-webkit-border-radius: 6px;
|
343
|
+
-moz-border-radius: 6px;
|
344
|
+
border-radius: 6px;
|
345
|
+
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
|
346
|
+
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
|
347
|
+
box-shadow: 0 1px 2px rgba(0,0,0,.075);
|
348
|
+
}
|
349
|
+
.mini-layout {
|
350
|
+
height: 240px;
|
351
|
+
margin-bottom: 20px;
|
352
|
+
padding: 9px;
|
353
|
+
}
|
354
|
+
.mini-layout div {
|
355
|
+
-webkit-border-radius: 3px;
|
356
|
+
-moz-border-radius: 3px;
|
357
|
+
border-radius: 3px;
|
358
|
+
}
|
359
|
+
.mini-layout .mini-layout-body {
|
360
|
+
background-color: #dceaf4;
|
361
|
+
margin: 0 auto;
|
362
|
+
width: 70%;
|
363
|
+
height: 240px;
|
364
|
+
}
|
365
|
+
.mini-layout.fluid .mini-layout-sidebar,
|
366
|
+
.mini-layout.fluid .mini-layout-header,
|
367
|
+
.mini-layout.fluid .mini-layout-body {
|
368
|
+
float: left;
|
369
|
+
}
|
370
|
+
.mini-layout.fluid .mini-layout-sidebar {
|
371
|
+
background-color: #bbd8e9;
|
372
|
+
width: 20%;
|
373
|
+
height: 240px;
|
374
|
+
}
|
375
|
+
.mini-layout.fluid .mini-layout-body {
|
376
|
+
width: 60%;
|
377
|
+
margin-left: 10px;
|
378
|
+
}
|
379
|
+
|
380
|
+
|
381
|
+
/* Popover docs
|
382
|
+
-------------------------------------------------- */
|
383
|
+
.popover-well {
|
384
|
+
min-height: 160px;
|
385
|
+
}
|
386
|
+
.popover-well .popover {
|
387
|
+
display: block;
|
388
|
+
}
|
389
|
+
.popover-well .popover-wrapper {
|
390
|
+
width: 50%;
|
391
|
+
height: 160px;
|
392
|
+
float: left;
|
393
|
+
margin-left: 55px;
|
394
|
+
position: relative;
|
395
|
+
}
|
396
|
+
.popover-well .popover-menu-wrapper {
|
397
|
+
height: 80px;
|
398
|
+
}
|
399
|
+
.large-bird {
|
400
|
+
margin: 5px 0 0 310px;
|
401
|
+
opacity: .1;
|
402
|
+
}
|
403
|
+
|
404
|
+
|
405
|
+
/* Download page
|
406
|
+
-------------------------------------------------- */
|
407
|
+
.download .page-header {
|
408
|
+
margin-top: 36px;
|
409
|
+
}
|
410
|
+
.page-header .toggle-all {
|
411
|
+
margin-top: 13px;
|
412
|
+
}
|
413
|
+
|
414
|
+
/* Space out h3s when following a section */
|
415
|
+
.download h3 {
|
416
|
+
margin-bottom: 5px;
|
417
|
+
}
|
418
|
+
.download-builder input + h3,
|
419
|
+
.download-builder .checkbox + h3 {
|
420
|
+
margin-top: 9px;
|
421
|
+
}
|
422
|
+
|
423
|
+
/* Fields for variables */
|
424
|
+
.download-builder input[type=text] {
|
425
|
+
margin-bottom: 9px;
|
426
|
+
font-family: Menlo, Monaco, "Courier New", monospace;
|
427
|
+
font-size: 12px;
|
428
|
+
color: #d14;
|
429
|
+
}
|
430
|
+
.download-builder input[type=text]:focus {
|
431
|
+
background-color: #fff;
|
432
|
+
}
|
433
|
+
|
434
|
+
/* Custom, larger checkbox labels */
|
435
|
+
.download .checkbox {
|
436
|
+
padding: 6px 10px 6px 25px;
|
437
|
+
color: #555;
|
438
|
+
background-color: #f9f9f9;
|
439
|
+
-webkit-border-radius: 3px;
|
440
|
+
-moz-border-radius: 3px;
|
441
|
+
border-radius: 3px;
|
442
|
+
cursor: pointer;
|
443
|
+
}
|
444
|
+
.download .checkbox:hover {
|
445
|
+
color: #333;
|
446
|
+
background-color: #f5f5f5;
|
447
|
+
}
|
448
|
+
.download .checkbox small {
|
449
|
+
font-size: 12px;
|
450
|
+
color: #777;
|
451
|
+
}
|
452
|
+
|
453
|
+
/* Giant download button */
|
454
|
+
.download-btn {
|
455
|
+
margin: 36px 0 108px.i;
|
456
|
+
}
|
457
|
+
.download p,
|
458
|
+
.download h4 {
|
459
|
+
max-width: 50%;
|
460
|
+
margin: 0 auto 18px;
|
461
|
+
color: #999;
|
462
|
+
text-align: center;
|
463
|
+
}
|
464
|
+
.download-btn h4 {
|
465
|
+
margin-bottom: 0;
|
466
|
+
}
|
467
|
+
.btn.xlarge {
|
468
|
+
display: block;
|
469
|
+
width: auto;
|
470
|
+
padding: 19px 24px;
|
471
|
+
margin-bottom: 27px;
|
472
|
+
font-size: 30px;
|
473
|
+
text-align: center;
|
474
|
+
-webkit-border-radius: 6px;
|
475
|
+
-moz-border-radius: 6px;
|
476
|
+
border-radius: 6px;
|
477
|
+
}
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
/* Misc
|
482
|
+
-------------------------------------------------- */
|
483
|
+
|
484
|
+
pre.prettyprint {
|
485
|
+
overflow: hidden;
|
486
|
+
}
|
487
|
+
|
488
|
+
.browser-support {
|
489
|
+
max-width: 100%;
|
490
|
+
}
|
491
|
+
|
492
|
+
/* Make tables spaced out a bit more */
|
493
|
+
h2 + table,
|
494
|
+
h3 + table,
|
495
|
+
h4 + table,
|
496
|
+
h2 + .row {
|
497
|
+
margin-top: 5px;
|
498
|
+
}
|
499
|
+
|
500
|
+
/* Example sites showcase */
|
501
|
+
.example-sites img {
|
502
|
+
max-width: 100%;
|
503
|
+
}
|
504
|
+
.marketing-byline {
|
505
|
+
margin: -18px 0 27px;
|
506
|
+
font-size: 18px;
|
507
|
+
font-weight: 300;
|
508
|
+
line-height: 24px;
|
509
|
+
color: #999;
|
510
|
+
text-align: center;
|
511
|
+
}
|
512
|
+
|
513
|
+
.scrollspy-example {
|
514
|
+
height: 200px;
|
515
|
+
overflow: auto;
|
516
|
+
position: relative;
|
517
|
+
}
|
518
|
+
|
519
|
+
/* Remove bottom margin on example forms in wells */
|
520
|
+
form.well {
|
521
|
+
padding: 14px;
|
522
|
+
}
|
523
|
+
|
524
|
+
/* Tighten up spacing */
|
525
|
+
.well hr {
|
526
|
+
margin: 18px 0;
|
527
|
+
}
|
528
|
+
|
529
|
+
/* Form docs for horizontal forms */
|
530
|
+
.form-docs {
|
531
|
+
padding-left: 10px;
|
532
|
+
}
|
533
|
+
.form-docs h3,
|
534
|
+
.form-docs p,
|
535
|
+
.form-docs li {
|
536
|
+
color: #777;
|
537
|
+
}
|
538
|
+
.form-docs hr {
|
539
|
+
margin: 18px 0;
|
540
|
+
}
|
541
|
+
|
542
|
+
/* Fake the :focus state to demo it */
|
543
|
+
.focused {
|
544
|
+
border-color: rgba(64,161,201, 0.8);
|
545
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
546
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
547
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(64,161,201, 0.6);
|
548
|
+
outline: 0;
|
549
|
+
}
|
550
|
+
|
551
|
+
/* For input sizes, make them display block */
|
552
|
+
.docs-input-sizes input[type=text] {
|
553
|
+
display: block;
|
554
|
+
margin-bottom: 9px;
|
555
|
+
}
|
556
|
+
|
557
|
+
/* Icons
|
558
|
+
------------------------- */
|
559
|
+
.the-icons {
|
560
|
+
margin-bottom: 18px;
|
561
|
+
}
|
562
|
+
.the-icons i {
|
563
|
+
display: block;
|
564
|
+
margin-bottom: 5px;
|
565
|
+
}
|
566
|
+
.the-icons i:hover {
|
567
|
+
background-color: rgba(255,0,0,.25);
|
568
|
+
}
|
569
|
+
.the-icons i:after {
|
570
|
+
display: block;
|
571
|
+
content: attr(class);
|
572
|
+
font-style: normal;
|
573
|
+
margin-left: 20px;
|
574
|
+
width: 140px;
|
575
|
+
}
|
576
|
+
#javascript input[type=checkbox] {
|
577
|
+
position: relative;
|
578
|
+
top: -1px;
|
579
|
+
display: inline;
|
580
|
+
margin-left: 6px;
|
581
|
+
}
|
582
|
+
|
583
|
+
|
584
|
+
/* Responsive Docs
|
585
|
+
-------------------------------------------------- */
|
586
|
+
@media (max-width: 480px) {
|
587
|
+
|
588
|
+
/* Reduce padding above jumbotron */
|
589
|
+
body {
|
590
|
+
padding-top: 70px;
|
591
|
+
}
|
592
|
+
|
593
|
+
/* Change up some type stuff */
|
594
|
+
h1 small {
|
595
|
+
display: block;
|
596
|
+
line-height: 20px;
|
597
|
+
}
|
598
|
+
/* More space between sections */
|
599
|
+
h2 {
|
600
|
+
margin-top: 27px;
|
601
|
+
}
|
602
|
+
h3 {
|
603
|
+
margin-top: 18px;
|
604
|
+
}
|
605
|
+
|
606
|
+
/* Adjust the jumbotron */
|
607
|
+
.jumbotron h1,
|
608
|
+
.jumbotron p {
|
609
|
+
text-align: center;
|
610
|
+
margin-right: 0;
|
611
|
+
}
|
612
|
+
.jumbotron h1 {
|
613
|
+
font-size: 45px;
|
614
|
+
margin-right: 0;
|
615
|
+
}
|
616
|
+
.jumbotron p {
|
617
|
+
margin-right: 0;
|
618
|
+
font-size: 18px;
|
619
|
+
line-height: 24px;
|
620
|
+
}
|
621
|
+
.jumbotron .btn {
|
622
|
+
display: block;
|
623
|
+
font-size: 18px;
|
624
|
+
padding: 10px 14px;
|
625
|
+
margin: 0 auto 10px;
|
626
|
+
}
|
627
|
+
|
628
|
+
/* Don't space out quick links so much */
|
629
|
+
.quick-links {
|
630
|
+
margin: 40px 0 0;
|
631
|
+
}
|
632
|
+
/* hide the bullets on mobile since our horizontal space is limited */
|
633
|
+
.quick-links .divider {
|
634
|
+
display: none;
|
635
|
+
}
|
636
|
+
|
637
|
+
/* center example sites */
|
638
|
+
.example-sites {
|
639
|
+
margin-left: 0;
|
640
|
+
}
|
641
|
+
.example-sites > li {
|
642
|
+
float: none;
|
643
|
+
display: block;
|
644
|
+
max-width: 300px;
|
645
|
+
margin: 0 auto 18px;
|
646
|
+
}
|
647
|
+
.example-sites img {
|
648
|
+
max-width: 270px;
|
649
|
+
}
|
650
|
+
|
651
|
+
table code {
|
652
|
+
white-space: normal;
|
653
|
+
word-wrap: break-word;
|
654
|
+
word-break: break-all;
|
655
|
+
}
|
656
|
+
}
|
657
|
+
|
658
|
+
|
659
|
+
@media (max-width: 768px) {
|
660
|
+
|
661
|
+
/* Subnav */
|
662
|
+
.subnav {
|
663
|
+
position: static;
|
664
|
+
top: auto;
|
665
|
+
z-index: auto;
|
666
|
+
width: auto;
|
667
|
+
height: auto;
|
668
|
+
background: #fff; /* whole background property since we use a background-image for gradient */
|
669
|
+
-webkit-box-shadow: none;
|
670
|
+
-moz-box-shadow: none;
|
671
|
+
box-shadow: none;
|
672
|
+
}
|
673
|
+
.subnav .nav > li {
|
674
|
+
float: none;
|
675
|
+
}
|
676
|
+
.subnav .nav a {
|
677
|
+
border: 0;
|
678
|
+
}
|
679
|
+
.subnav .nav li + li a {
|
680
|
+
border-top: 1px solid #e5e5e5;
|
681
|
+
}
|
682
|
+
|
683
|
+
/* Adjust the jumbotron */
|
684
|
+
.jumbotron .benefits {
|
685
|
+
position: relative;
|
686
|
+
width: auto;
|
687
|
+
margin: 36px 0;
|
688
|
+
}
|
689
|
+
|
690
|
+
/* Popovers */
|
691
|
+
.large-bird {
|
692
|
+
display: none;
|
693
|
+
}
|
694
|
+
.popover-well .popover-wrapper {
|
695
|
+
margin-left: 0;
|
696
|
+
}
|
697
|
+
|
698
|
+
/* Space out the show-grid examples */
|
699
|
+
.show-grid [class*="span"] {
|
700
|
+
margin-bottom: 5px;
|
701
|
+
}
|
702
|
+
|
703
|
+
/* Space out the getting started sections */
|
704
|
+
.getting-started .span4 {
|
705
|
+
margin-bottom: 18px;
|
706
|
+
}
|
707
|
+
|
708
|
+
/* Unfloat the back to top link in footer */
|
709
|
+
.footer .pull-right {
|
710
|
+
float: none;
|
711
|
+
}
|
712
|
+
.footer p {
|
713
|
+
margin-bottom: 9px;
|
714
|
+
}
|
715
|
+
|
716
|
+
}
|
717
|
+
|
718
|
+
|
719
|
+
@media (min-width: 480px) and (max-width: 768px) {
|
720
|
+
|
721
|
+
/* Scale down the jumbotron content */
|
722
|
+
.jumbotron h1 {
|
723
|
+
font-size: 54px;
|
724
|
+
}
|
725
|
+
.jumbotron h1,
|
726
|
+
.jumbotron p {
|
727
|
+
margin-right: 0;
|
728
|
+
}
|
729
|
+
|
730
|
+
}
|
731
|
+
|
732
|
+
|
733
|
+
@media (min-width: 768px) and (max-width: 940px) {
|
734
|
+
.jumbotron h1 {
|
735
|
+
font-size: 72px;
|
736
|
+
}
|
737
|
+
}
|
738
|
+
</style>
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
<!-- Masthead (blueprinty thing)
|
744
|
+
================================================== -->
|
745
|
+
<header class="jumbotron masthead" id="overview">
|
746
|
+
<div class="inner">
|
747
|
+
<div class="container">
|
748
|
+
<h1 style="letter-spacing:-3px; margin-bottom:20px;">Shopify Apps, Built on Bootstrap</h1>
|
749
|
+
<p class="lead">
|
750
|
+
This Shopify App Template is built on Twitter's <strong>Bootstrap framework.</strong><br />
|
751
|
+
It includes <strong>base CSS and HTML</strong> for typography, forms, buttons, tables, grids, navigation, and more.<br />
|
752
|
+
Below is only a portion of what falls under the bootstrap umbrella.<br/><br/>
|
753
|
+
<%= link_to raw('View Official Docs <i class="icon-chevron-right" style="opacity:.25"></i>'), "http://twitter.github.com/bootstrap/", :class => 'btn btn-large', :target => '_blank' %>
|
754
|
+
</p>
|
755
|
+
</div><!-- /container -->
|
756
|
+
</div>
|
757
|
+
</header>
|
758
|
+
|
759
|
+
|
760
|
+
<!-- Grid system
|
761
|
+
================================================== -->
|
762
|
+
<section id="grid-system">
|
763
|
+
<div class="page-header">
|
764
|
+
<h1>Grid system <small>12 columns with a responsive twist</small></h1>
|
765
|
+
</div>
|
766
|
+
|
767
|
+
<h2>Default 940px grid</h2>
|
768
|
+
<div class="row show-grid">
|
769
|
+
<div class="span1">1</div>
|
770
|
+
<div class="span1">1</div>
|
771
|
+
<div class="span1">1</div>
|
772
|
+
<div class="span1">1</div>
|
773
|
+
<div class="span1">1</div>
|
774
|
+
<div class="span1">1</div>
|
775
|
+
<div class="span1">1</div>
|
776
|
+
<div class="span1">1</div>
|
777
|
+
<div class="span1">1</div>
|
778
|
+
<div class="span1">1</div>
|
779
|
+
<div class="span1">1</div>
|
780
|
+
<div class="span1">1</div>
|
781
|
+
</div>
|
782
|
+
<div class="row show-grid">
|
783
|
+
<div class="span4">4</div>
|
784
|
+
<div class="span4">4</div>
|
785
|
+
<div class="span4">4</div>
|
786
|
+
</div>
|
787
|
+
<div class="row show-grid">
|
788
|
+
<div class="span4">4</div>
|
789
|
+
<div class="span8">8</div>
|
790
|
+
</div>
|
791
|
+
<div class="row show-grid">
|
792
|
+
<div class="span6">6</div>
|
793
|
+
<div class="span6">6</div>
|
794
|
+
</div>
|
795
|
+
<div class="row show-grid">
|
796
|
+
<div class="span12">12</div>
|
797
|
+
</div>
|
798
|
+
<div class="row">
|
799
|
+
<div class="span4">
|
800
|
+
<p>The default grid system provided as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.</p>
|
801
|
+
<p>It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.</p>
|
802
|
+
</div>
|
803
|
+
<div class="span4">
|
804
|
+
<pre class="prettyprint linenums">
|
805
|
+
<div class="row">
|
806
|
+
<div class="span4">...</div>
|
807
|
+
<div class="span8">...</div>
|
808
|
+
</div>
|
809
|
+
</pre>
|
810
|
+
</div>
|
811
|
+
<div class="span4">
|
812
|
+
<p>As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.</p>
|
813
|
+
</div>
|
814
|
+
</div><!-- /row -->
|
815
|
+
|
816
|
+
<br>
|
817
|
+
|
818
|
+
<h2>Offsetting columns</h2>
|
819
|
+
<div class="row show-grid">
|
820
|
+
<div class="span4">4</div>
|
821
|
+
<div class="span4 offset4">4 offset 4</div>
|
822
|
+
</div><!-- /row -->
|
823
|
+
<div class="row show-grid">
|
824
|
+
<div class="span3 offset3">3 offset 3</div>
|
825
|
+
<div class="span3 offset3">3 offset 3</div>
|
826
|
+
</div><!-- /row -->
|
827
|
+
<div class="row show-grid">
|
828
|
+
<div class="span8 offset4">8 offset 4</div>
|
829
|
+
</div><!-- /row -->
|
830
|
+
<pre class="prettyprint linenums">
|
831
|
+
<div class="row">
|
832
|
+
<div class="span4">...</div>
|
833
|
+
<div class="span4 offset4">...</div>
|
834
|
+
</div>
|
835
|
+
</pre>
|
836
|
+
|
837
|
+
<br>
|
838
|
+
|
839
|
+
<h2>Nesting columns</h2>
|
840
|
+
<div class="row">
|
841
|
+
<div class="span6">
|
842
|
+
<p>With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column.</p>
|
843
|
+
<h4>Example</h4>
|
844
|
+
<div class="row show-grid">
|
845
|
+
<div class="span6">
|
846
|
+
Level 1 of column
|
847
|
+
<div class="row show-grid">
|
848
|
+
<div class="span3">
|
849
|
+
Level 2
|
850
|
+
</div>
|
851
|
+
<div class="span3">
|
852
|
+
Level 2
|
853
|
+
</div>
|
854
|
+
</div>
|
855
|
+
</div>
|
856
|
+
</div>
|
857
|
+
</div>
|
858
|
+
<div class="span6">
|
859
|
+
<pre class="prettyprint linenums">
|
860
|
+
<div class="row">
|
861
|
+
<div class="span12">
|
862
|
+
Level 1 of column
|
863
|
+
<div class="row">
|
864
|
+
<div class="span6">Level 2</div>
|
865
|
+
<div class="span6">Level 2</div>
|
866
|
+
</div>
|
867
|
+
</div>
|
868
|
+
</div>
|
869
|
+
</pre>
|
870
|
+
</div>
|
871
|
+
</div>
|
872
|
+
|
873
|
+
<h2>Grid customization</h2>
|
874
|
+
<table class="table table-bordered table-striped">
|
875
|
+
<thead>
|
876
|
+
<tr>
|
877
|
+
<th>Variable</th>
|
878
|
+
<th>Default value</th>
|
879
|
+
<th>Description</th>
|
880
|
+
</tr>
|
881
|
+
</thead>
|
882
|
+
<tbody>
|
883
|
+
<tr>
|
884
|
+
<td><code>@gridColumns</code></td>
|
885
|
+
<td>12</td>
|
886
|
+
<td>Number of columns</td>
|
887
|
+
</tr>
|
888
|
+
<tr>
|
889
|
+
<td><code>@gridColumnWidth</code></td>
|
890
|
+
<td>60px</td>
|
891
|
+
<td>Width of each column</td>
|
892
|
+
</tr>
|
893
|
+
<tr>
|
894
|
+
<td><code>@gridGutterWidth</code></td>
|
895
|
+
<td>20px</td>
|
896
|
+
<td>Negative space between columns</td>
|
897
|
+
</tr>
|
898
|
+
<tr>
|
899
|
+
<td><code>@siteWidth</code></td>
|
900
|
+
<td><em>Computed sum of all columns and gutters</em></td>
|
901
|
+
<td>Counts number of columns and gutters to set width of the <code>.container-fixed()</code> mixin</td>
|
902
|
+
</tr>
|
903
|
+
</tbody>
|
904
|
+
</table>
|
905
|
+
<div class="row">
|
906
|
+
<div class="span4">
|
907
|
+
<h3>Variables in LESS</h3>
|
908
|
+
<p>Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.</p>
|
909
|
+
</div>
|
910
|
+
<div class="span4">
|
911
|
+
<h3>How to customize</h3>
|
912
|
+
<p>Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.</p>
|
913
|
+
</div>
|
914
|
+
<div class="span4">
|
915
|
+
<h3>Staying responsive</h3>
|
916
|
+
<p>Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.</p>
|
917
|
+
</div>
|
918
|
+
</div><!-- /row -->
|
919
|
+
|
920
|
+
</section>
|
921
|
+
|
922
|
+
|
923
|
+
<!-- Layouts (Default and fluid)
|
924
|
+
================================================== -->
|
925
|
+
<section id="layouts">
|
926
|
+
<div class="page-header">
|
927
|
+
<h1>Layouts <small>Basic templates to create webpages</small></h1>
|
928
|
+
</div>
|
929
|
+
|
930
|
+
<div class="row">
|
931
|
+
<div class="span6">
|
932
|
+
<h2>Fixed layout</h2>
|
933
|
+
<p>The default and simple 940px-wide, centered layout for just about any website or page provided by a single <code><div class="container"></code>.</p>
|
934
|
+
<div class="minicon-layout">
|
935
|
+
<div class="minicon-layout-body"></div>
|
936
|
+
</div>
|
937
|
+
<pre class="prettyprint linenums">
|
938
|
+
<body>
|
939
|
+
<div class="container">
|
940
|
+
...
|
941
|
+
</div>
|
942
|
+
</body>
|
943
|
+
</pre>
|
944
|
+
</div><!-- /col -->
|
945
|
+
<div class="span6">
|
946
|
+
<h2>Fluid layout</h2>
|
947
|
+
<p><code><div class="container-fluid"></code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.</p>
|
948
|
+
<div class="minicon-layout fluid">
|
949
|
+
<div class="minicon-layout-sidebar"></div>
|
950
|
+
<div class="minicon-layout-body"></div>
|
951
|
+
</div>
|
952
|
+
<pre class="prettyprint linenums">
|
953
|
+
<div class="container-fluid">
|
954
|
+
<div class="row-fluid">
|
955
|
+
<div class="span2">
|
956
|
+
<!--Sidebar content-->
|
957
|
+
</div>
|
958
|
+
<div class="span10">
|
959
|
+
<!--Body content-->
|
960
|
+
</div>
|
961
|
+
</div>
|
962
|
+
</div>
|
963
|
+
</pre>
|
964
|
+
</div><!-- /col -->
|
965
|
+
</div><!-- /row -->
|
966
|
+
</section>
|
967
|
+
<!-- Typography
|
968
|
+
================================================== -->
|
969
|
+
<section id="typography">
|
970
|
+
<div class="page-header">
|
971
|
+
<h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
|
972
|
+
</div>
|
973
|
+
|
974
|
+
<h2>Headings & body copy</h2>
|
975
|
+
|
976
|
+
<!-- Headings & Paragraph Copy -->
|
977
|
+
<div class="row">
|
978
|
+
<div class="span4">
|
979
|
+
<h3>Typographic scale</h3>
|
980
|
+
<p>The entire typographic grid is based on two Less variables in our variables.less file: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height.</p>
|
981
|
+
<p>We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.</p>
|
982
|
+
</div>
|
983
|
+
<div class="span4">
|
984
|
+
<h3>Example body text</h3>
|
985
|
+
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
986
|
+
<p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.</p>
|
987
|
+
</div>
|
988
|
+
<div class="span4">
|
989
|
+
<div class="well">
|
990
|
+
<h1>h1. Heading 1</h1>
|
991
|
+
<h2>h2. Heading 2</h2>
|
992
|
+
<h3>h3. Heading 3</h3>
|
993
|
+
<h4>h4. Heading 4</h4>
|
994
|
+
<h5>h5. Heading 5</h5>
|
995
|
+
<h6>h6. Heading 6</h6>
|
996
|
+
</div>
|
997
|
+
</div>
|
998
|
+
</div>
|
999
|
+
|
1000
|
+
<!-- Misc Elements -->
|
1001
|
+
<h2>Emphasis, address, and abbreviation</h2>
|
1002
|
+
<table class="table table-bordered table-striped">
|
1003
|
+
<thead>
|
1004
|
+
<tr>
|
1005
|
+
<th>Element</th>
|
1006
|
+
<th>Usage</th>
|
1007
|
+
<th>Optional</th>
|
1008
|
+
</tr>
|
1009
|
+
</thead>
|
1010
|
+
<tbody>
|
1011
|
+
<tr>
|
1012
|
+
<td>
|
1013
|
+
<code><strong></code>
|
1014
|
+
</td>
|
1015
|
+
<td>
|
1016
|
+
For emphasizing a snippet of text with <strong>important</strong>
|
1017
|
+
</td>
|
1018
|
+
<td>
|
1019
|
+
<span class="muted">None</span>
|
1020
|
+
</td>
|
1021
|
+
</tr>
|
1022
|
+
<tr>
|
1023
|
+
<td>
|
1024
|
+
<code><em></code>
|
1025
|
+
</td>
|
1026
|
+
<td>
|
1027
|
+
For emphasizing a snippet of text with <em>stress</em>
|
1028
|
+
</td>
|
1029
|
+
<td>
|
1030
|
+
<span class="muted">None</span>
|
1031
|
+
</td>
|
1032
|
+
</tr>
|
1033
|
+
<tr>
|
1034
|
+
<td>
|
1035
|
+
<code><abbr></code>
|
1036
|
+
</td>
|
1037
|
+
<td>
|
1038
|
+
Wraps abbreviations and acronyms to show the expanded version on hover
|
1039
|
+
</td>
|
1040
|
+
<td>
|
1041
|
+
Include optional <code>title</code> for expanded text
|
1042
|
+
</td>
|
1043
|
+
</tr>
|
1044
|
+
<tr>
|
1045
|
+
<td>
|
1046
|
+
<code><address></code>
|
1047
|
+
</td>
|
1048
|
+
<td>
|
1049
|
+
For contact information for its nearest ancestor or the entire body of work
|
1050
|
+
</td>
|
1051
|
+
<td>
|
1052
|
+
Preserve formatting by ending all lines with <code><br></code>
|
1053
|
+
</td>
|
1054
|
+
</tr>
|
1055
|
+
</tbody>
|
1056
|
+
</table>
|
1057
|
+
|
1058
|
+
<div class="row">
|
1059
|
+
<div class="span4">
|
1060
|
+
<h3>Using emphasis</h3>
|
1061
|
+
<p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
|
1062
|
+
<p><strong>Note:</strong> Feel free to use <code><b></code> and <code><i></code> in HTML5, but their usage has changed a bit. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
|
1063
|
+
</div>
|
1064
|
+
<div class="span4">
|
1065
|
+
<h3>Example addresses</h3>
|
1066
|
+
<p>Here are two examples of how the <code><address></code> tag can be used:</p>
|
1067
|
+
<address>
|
1068
|
+
<strong>Twitter, Inc.</strong><br>
|
1069
|
+
795 Folsom Ave, Suite 600<br>
|
1070
|
+
San Francisco, CA 94107<br>
|
1071
|
+
<abbr title="Phone">P:</abbr> (123) 456-7890
|
1072
|
+
</address>
|
1073
|
+
<address>
|
1074
|
+
<strong>Full Name</strong><br>
|
1075
|
+
<a href="mailto:#">first.last@gmail.com</a>
|
1076
|
+
</address>
|
1077
|
+
</div>
|
1078
|
+
<div class="span4">
|
1079
|
+
<h3>Example abbreviations</h3>
|
1080
|
+
<p>Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.</p>
|
1081
|
+
<p><abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.</p>
|
1082
|
+
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
1083
|
+
</div>
|
1084
|
+
</div>
|
1085
|
+
|
1086
|
+
|
1087
|
+
<!-- Blockquotes -->
|
1088
|
+
<h2>Blockquotes</h2>
|
1089
|
+
<table class="table table-bordered table-striped">
|
1090
|
+
<thead>
|
1091
|
+
<tr>
|
1092
|
+
<th>Element</th>
|
1093
|
+
<th>Usage</th>
|
1094
|
+
<th>Optional</th>
|
1095
|
+
</tr>
|
1096
|
+
</thead>
|
1097
|
+
<tbody>
|
1098
|
+
<tr>
|
1099
|
+
<td>
|
1100
|
+
<code><blockquote></code>
|
1101
|
+
</td>
|
1102
|
+
<td>
|
1103
|
+
Block-level element for quoting content from another source
|
1104
|
+
</td>
|
1105
|
+
<td>
|
1106
|
+
<p>Add <code>cite</code> attribute for source URL</p>
|
1107
|
+
Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated options
|
1108
|
+
</td>
|
1109
|
+
</tr>
|
1110
|
+
<tr>
|
1111
|
+
<td>
|
1112
|
+
<code><small></code>
|
1113
|
+
</td>
|
1114
|
+
<td>
|
1115
|
+
Optional element for adding a user-facing citation, typically an author with title of work
|
1116
|
+
</td>
|
1117
|
+
<td>
|
1118
|
+
Place the <code><cite></code> around the title or name of source
|
1119
|
+
</td>
|
1120
|
+
</tr>
|
1121
|
+
</tbody>
|
1122
|
+
</table>
|
1123
|
+
<div class="row">
|
1124
|
+
<div class="span4">
|
1125
|
+
<p>To include a blockquote, wrap <code><blockquote></code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code><p></code>.</p>
|
1126
|
+
<p>Include an optional <code><small></code> element to cite your source and you'll get an em dash <code>&mdash;</code> before it for styling purposes.</p>
|
1127
|
+
</div>
|
1128
|
+
<div class="span8">
|
1129
|
+
<pre class="prettyprint linenums">
|
1130
|
+
<blockquote>
|
1131
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
|
1132
|
+
<small>Someone famous</small>
|
1133
|
+
</blockquote>
|
1134
|
+
</pre>
|
1135
|
+
</div>
|
1136
|
+
</div><!--/row-->
|
1137
|
+
|
1138
|
+
<h3>Example blockquotes</h3>
|
1139
|
+
<div class="row">
|
1140
|
+
<div class="span6">
|
1141
|
+
<p>Default blockquotes are styled as such:</p>
|
1142
|
+
<blockquote>
|
1143
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
|
1144
|
+
<small>Someone famous in <cite title="">Body of work</cite></small>
|
1145
|
+
</blockquote>
|
1146
|
+
</div>
|
1147
|
+
<div class="span6">
|
1148
|
+
<p>To float your blockquote to the right, add <code>class="pull-right"</code>:</p>
|
1149
|
+
<blockquote class="pull-right">
|
1150
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
|
1151
|
+
<small>Someone famous in <cite title="">Body of work</cite></small>
|
1152
|
+
</blockquote>
|
1153
|
+
</div>
|
1154
|
+
</div>
|
1155
|
+
|
1156
|
+
|
1157
|
+
<!-- Lists -->
|
1158
|
+
<h2>Lists</h2>
|
1159
|
+
<div class="row">
|
1160
|
+
<div class="span3">
|
1161
|
+
<h4>Unordered</h4>
|
1162
|
+
<p><code><ul></code></p>
|
1163
|
+
<ul>
|
1164
|
+
<li>Lorem ipsum dolor sit amet</li>
|
1165
|
+
<li>Consectetur adipiscing elit</li>
|
1166
|
+
<li>Integer molestie lorem at massa</li>
|
1167
|
+
<li>Facilisis in pretium nisl aliquet</li>
|
1168
|
+
<li>Nulla volutpat aliquam velit
|
1169
|
+
<ul>
|
1170
|
+
<li>Phasellus iaculis neque</li>
|
1171
|
+
<li>Purus sodales ultricies</li>
|
1172
|
+
<li>Vestibulum laoreet porttitor sem</li>
|
1173
|
+
<li>Ac tristique libero volutpat at</li>
|
1174
|
+
</ul>
|
1175
|
+
</li>
|
1176
|
+
<li>Faucibus porta lacus fringilla vel</li>
|
1177
|
+
<li>Aenean sit amet erat nunc</li>
|
1178
|
+
<li>Eget porttitor lorem</li>
|
1179
|
+
</ul>
|
1180
|
+
</div>
|
1181
|
+
<div class="span3">
|
1182
|
+
<h4>Unstyled</h4>
|
1183
|
+
<p><code><ul class="unstyled"></code></p>
|
1184
|
+
<ul class="unstyled">
|
1185
|
+
<li>Lorem ipsum dolor sit amet</li>
|
1186
|
+
<li>Consectetur adipiscing elit</li>
|
1187
|
+
<li>Integer molestie lorem at massa</li>
|
1188
|
+
<li>Facilisis in pretium nisl aliquet</li>
|
1189
|
+
<li>Nulla volutpat aliquam velit
|
1190
|
+
<ul>
|
1191
|
+
<li>Phasellus iaculis neque</li>
|
1192
|
+
<li>Purus sodales ultricies</li>
|
1193
|
+
<li>Vestibulum laoreet porttitor sem</li>
|
1194
|
+
<li>Ac tristique libero volutpat at</li>
|
1195
|
+
</ul>
|
1196
|
+
</li>
|
1197
|
+
<li>Faucibus porta lacus fringilla vel</li>
|
1198
|
+
<li>Aenean sit amet erat nunc</li>
|
1199
|
+
<li>Eget porttitor lorem</li>
|
1200
|
+
</ul>
|
1201
|
+
</div>
|
1202
|
+
<div class="span3">
|
1203
|
+
<h4>Ordered</h4>
|
1204
|
+
<p><code><ol></code></p>
|
1205
|
+
<ol>
|
1206
|
+
<li>Lorem ipsum dolor sit amet</li>
|
1207
|
+
<li>Consectetur adipiscing elit</li>
|
1208
|
+
<li>Integer molestie lorem at massa</li>
|
1209
|
+
<li>Facilisis in pretium nisl aliquet</li>
|
1210
|
+
<li>Nulla volutpat aliquam velit</li>
|
1211
|
+
<li>Faucibus porta lacus fringilla vel</li>
|
1212
|
+
<li>Aenean sit amet erat nunc</li>
|
1213
|
+
<li>Eget porttitor lorem</li>
|
1214
|
+
</ol>
|
1215
|
+
</div>
|
1216
|
+
<div class="span3">
|
1217
|
+
<h4>Description</h4>
|
1218
|
+
<p><code><dl></code></p>
|
1219
|
+
<dl>
|
1220
|
+
<dt>Description lists</dt>
|
1221
|
+
<dd>A description list is perfect for defining terms.</dd>
|
1222
|
+
<dt>Euismod</dt>
|
1223
|
+
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
1224
|
+
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
1225
|
+
<dt>Malesuada porta</dt>
|
1226
|
+
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
1227
|
+
</dl>
|
1228
|
+
</div>
|
1229
|
+
</div><!-- /row -->
|
1230
|
+
</section>
|
1231
|
+
|
1232
|
+
|
1233
|
+
|
1234
|
+
<!-- Code
|
1235
|
+
================================================== -->
|
1236
|
+
<section id="code">
|
1237
|
+
<div class="page-header">
|
1238
|
+
<h1>Code <small>Inline and block code snippets</small></h1>
|
1239
|
+
</div>
|
1240
|
+
<div class="row">
|
1241
|
+
<div class="span4">
|
1242
|
+
<h2>Inline</h2>
|
1243
|
+
<p>Wrap inline snippets of code with <code><code></code>.</p>
|
1244
|
+
<pre class="prettyprint linenums">
|
1245
|
+
For example, <code>section</code> should be wrapped as inline.
|
1246
|
+
</pre>
|
1247
|
+
</div><!--/span-->
|
1248
|
+
<div class="span4">
|
1249
|
+
<h2>Basic block</h2>
|
1250
|
+
<p>Use <code><pre></code> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.</p>
|
1251
|
+
<pre>
|
1252
|
+
<p>Sample text here...</p>
|
1253
|
+
</pre>
|
1254
|
+
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
|
1255
|
+
<pre>
|
1256
|
+
&lt;p&gt;Sample text here...&lt;/p&gt;
|
1257
|
+
</pre>
|
1258
|
+
</pre>
|
1259
|
+
<p><strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p>
|
1260
|
+
</div><!--/span-->
|
1261
|
+
<div class="span4">
|
1262
|
+
<h2>Google Prettify</h2>
|
1263
|
+
<p>Take the same <code><pre></code> element and add two optional classes for enhanced rendering.</p>
|
1264
|
+
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
|
1265
|
+
<p>Sample text here...</p>
|
1266
|
+
</pre>
|
1267
|
+
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
|
1268
|
+
<pre class="prettyprint
|
1269
|
+
linenums">
|
1270
|
+
&lt;p&gt;Sample text here...&lt;/p&gt;
|
1271
|
+
</pre>
|
1272
|
+
</pre>
|
1273
|
+
<p><a href="http://code.google.com/p/google-code-prettify/">Download google-code-prettify</a> and view the readme for <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html">how to use</a>.</p>
|
1274
|
+
</div><!--/span-->
|
1275
|
+
</div><!--/row-->
|
1276
|
+
</section>
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
<!-- Tables
|
1281
|
+
================================================== -->
|
1282
|
+
<section id="tables">
|
1283
|
+
<div class="page-header">
|
1284
|
+
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
|
1285
|
+
</div>
|
1286
|
+
|
1287
|
+
<h2>Table markup</h2>
|
1288
|
+
<div class="row">
|
1289
|
+
<div class="span8">
|
1290
|
+
<table class="table table-bordered table-striped">
|
1291
|
+
<thead>
|
1292
|
+
<tr>
|
1293
|
+
<th>Tag</th>
|
1294
|
+
<th>Description</th>
|
1295
|
+
</tr>
|
1296
|
+
</thead>
|
1297
|
+
<tbody>
|
1298
|
+
<tr>
|
1299
|
+
<td>
|
1300
|
+
<code><table></code>
|
1301
|
+
</td>
|
1302
|
+
<td>
|
1303
|
+
Wrapping element for displaying data in a tabular format
|
1304
|
+
</td>
|
1305
|
+
</tr>
|
1306
|
+
<tr>
|
1307
|
+
<td>
|
1308
|
+
<code><thead></code>
|
1309
|
+
</td>
|
1310
|
+
<td>
|
1311
|
+
Container element for table header rows (<code><tr></code>) to label table columns
|
1312
|
+
</td>
|
1313
|
+
</tr>
|
1314
|
+
<tr>
|
1315
|
+
<td>
|
1316
|
+
<code><tbody></code>
|
1317
|
+
</td>
|
1318
|
+
<td>
|
1319
|
+
Container element for table rows (<code><tr></code>) in the body of the table
|
1320
|
+
</td>
|
1321
|
+
</tr>
|
1322
|
+
<tr>
|
1323
|
+
<td>
|
1324
|
+
<code><tr></code>
|
1325
|
+
</td>
|
1326
|
+
<td>
|
1327
|
+
Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row
|
1328
|
+
</td>
|
1329
|
+
</tr>
|
1330
|
+
<tr>
|
1331
|
+
<td>
|
1332
|
+
<code><td></code>
|
1333
|
+
</td>
|
1334
|
+
<td>
|
1335
|
+
Default table cell
|
1336
|
+
</td>
|
1337
|
+
</tr>
|
1338
|
+
<tr>
|
1339
|
+
<td>
|
1340
|
+
<code><th></code>
|
1341
|
+
</td>
|
1342
|
+
<td>
|
1343
|
+
Special table cell for column (or row, depending on scope and placement) labels<br>
|
1344
|
+
Must be used within a <code><thead></code>
|
1345
|
+
</td>
|
1346
|
+
</tr>
|
1347
|
+
<tr>
|
1348
|
+
<td>
|
1349
|
+
<code><caption></code>
|
1350
|
+
</td>
|
1351
|
+
<td>
|
1352
|
+
Description or summary of what the table holds, especially useful for screen readers
|
1353
|
+
</td>
|
1354
|
+
</tr>
|
1355
|
+
</tbody>
|
1356
|
+
</table>
|
1357
|
+
</div>
|
1358
|
+
<div class="span4">
|
1359
|
+
<pre class="prettyprint linenums">
|
1360
|
+
<table>
|
1361
|
+
<thead>
|
1362
|
+
<tr>
|
1363
|
+
<th>…</th>
|
1364
|
+
<th>…</th>
|
1365
|
+
</tr>
|
1366
|
+
</thead>
|
1367
|
+
<tbody>
|
1368
|
+
<tr>
|
1369
|
+
<td>…</td>
|
1370
|
+
<td>…</td>
|
1371
|
+
</tr>
|
1372
|
+
</tbody>
|
1373
|
+
</table>
|
1374
|
+
</pre>
|
1375
|
+
</div>
|
1376
|
+
</div>
|
1377
|
+
|
1378
|
+
<h2>Table options</h2>
|
1379
|
+
<table class="table table-bordered table-striped">
|
1380
|
+
<thead>
|
1381
|
+
<tr>
|
1382
|
+
<th>Name</th>
|
1383
|
+
<th>Class</th>
|
1384
|
+
<th>Description</th>
|
1385
|
+
</tr>
|
1386
|
+
</thead>
|
1387
|
+
<tbody>
|
1388
|
+
<tr>
|
1389
|
+
<td>Default</td>
|
1390
|
+
<td class="muted">None</td>
|
1391
|
+
<td>No styles, just columns and rows</td>
|
1392
|
+
</tr>
|
1393
|
+
<tr>
|
1394
|
+
<td>Basic</td>
|
1395
|
+
<td>
|
1396
|
+
<code>.table</code>
|
1397
|
+
</td>
|
1398
|
+
<td>Only horizontal lines between rows</td>
|
1399
|
+
</tr>
|
1400
|
+
<tr>
|
1401
|
+
<td>Bordered</td>
|
1402
|
+
<td>
|
1403
|
+
<code>.table-bordered</code>
|
1404
|
+
</td>
|
1405
|
+
<td>Rounds corners and adds outter border</td>
|
1406
|
+
</tr>
|
1407
|
+
<tr>
|
1408
|
+
<td>Zebra-stripe</td>
|
1409
|
+
<td>
|
1410
|
+
<code>.table-striped</code>
|
1411
|
+
</td>
|
1412
|
+
<td>Adds light gray background color to odd rows (1, 3, 5, etc)</td>
|
1413
|
+
</tr>
|
1414
|
+
<tr>
|
1415
|
+
<td>Condensed</td>
|
1416
|
+
<td>
|
1417
|
+
<code>.table-condensed</code>
|
1418
|
+
</td>
|
1419
|
+
<td>Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements</td>
|
1420
|
+
</tr>
|
1421
|
+
</tbody>
|
1422
|
+
</table>
|
1423
|
+
|
1424
|
+
|
1425
|
+
<h2>Example tables</h2>
|
1426
|
+
|
1427
|
+
<h3>1. Default table styles</h3>
|
1428
|
+
<div class="row">
|
1429
|
+
<div class="span4">
|
1430
|
+
<p>Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the <code>.table</code> class is required.</p>
|
1431
|
+
<pre class="prettyprint linenums">
|
1432
|
+
<table class="table">
|
1433
|
+
…
|
1434
|
+
</table></pre>
|
1435
|
+
</div>
|
1436
|
+
<div class="span8">
|
1437
|
+
<table class="table">
|
1438
|
+
<thead>
|
1439
|
+
<tr>
|
1440
|
+
<th>#</th>
|
1441
|
+
<th>First Name</th>
|
1442
|
+
<th>Last Name</th>
|
1443
|
+
<th>Language</th>
|
1444
|
+
</tr>
|
1445
|
+
</thead>
|
1446
|
+
<tbody>
|
1447
|
+
<tr>
|
1448
|
+
<td>1</td>
|
1449
|
+
<td>Mark</td>
|
1450
|
+
<td>Otto</td>
|
1451
|
+
<td>CSS</td>
|
1452
|
+
</tr>
|
1453
|
+
<tr>
|
1454
|
+
<td>2</td>
|
1455
|
+
<td>Jacob</td>
|
1456
|
+
<td>Thornton</td>
|
1457
|
+
<td>Javascript</td>
|
1458
|
+
</tr>
|
1459
|
+
<tr>
|
1460
|
+
<td>3</td>
|
1461
|
+
<td>Stu</td>
|
1462
|
+
<td>Dent</td>
|
1463
|
+
<td>HTML</td>
|
1464
|
+
</tr>
|
1465
|
+
</tbody>
|
1466
|
+
</table>
|
1467
|
+
</div>
|
1468
|
+
</div>
|
1469
|
+
|
1470
|
+
|
1471
|
+
<h3>2. Striped table</h3>
|
1472
|
+
<div class="row">
|
1473
|
+
<div class="span4">
|
1474
|
+
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.</p>
|
1475
|
+
<p class="muted"><strong>Note:</strong> Sprited tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.</p>
|
1476
|
+
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
1477
|
+
<table class="table table-striped">
|
1478
|
+
…
|
1479
|
+
</table></pre>
|
1480
|
+
</div>
|
1481
|
+
<div class="span8">
|
1482
|
+
<table class="table table-striped">
|
1483
|
+
<thead>
|
1484
|
+
<tr>
|
1485
|
+
<th>#</th>
|
1486
|
+
<th>First Name</th>
|
1487
|
+
<th>Last Name</th>
|
1488
|
+
<th>Language</th>
|
1489
|
+
</tr>
|
1490
|
+
</thead>
|
1491
|
+
<tbody>
|
1492
|
+
<tr>
|
1493
|
+
<td>1</td>
|
1494
|
+
<td>Mark</td>
|
1495
|
+
<td>Otto</td>
|
1496
|
+
<td>CSS</td>
|
1497
|
+
</tr>
|
1498
|
+
<tr>
|
1499
|
+
<td>2</td>
|
1500
|
+
<td>Jacob</td>
|
1501
|
+
<td>Thornton</td>
|
1502
|
+
<td>Javascript</td>
|
1503
|
+
</tr>
|
1504
|
+
<tr>
|
1505
|
+
<td>3</td>
|
1506
|
+
<td>Stu</td>
|
1507
|
+
<td>Dent</td>
|
1508
|
+
<td>HTML</td>
|
1509
|
+
</tr>
|
1510
|
+
</tbody>
|
1511
|
+
</table>
|
1512
|
+
</div>
|
1513
|
+
</div>
|
1514
|
+
|
1515
|
+
|
1516
|
+
<h3>3. Bordered table</h3>
|
1517
|
+
<div class="row">
|
1518
|
+
<div class="span4">
|
1519
|
+
<p>Add borders around the entire table and rounded corners for aesthetic purposes.</p>
|
1520
|
+
<pre class="prettyprint linenums">
|
1521
|
+
<table class="table table-bordered">
|
1522
|
+
…
|
1523
|
+
</table></pre>
|
1524
|
+
</div>
|
1525
|
+
<div class="span8">
|
1526
|
+
<table class="table table-bordered">
|
1527
|
+
<thead>
|
1528
|
+
<tr>
|
1529
|
+
<th>#</th>
|
1530
|
+
<th>First Name</th>
|
1531
|
+
<th>Last Name</th>
|
1532
|
+
<th>Language</th>
|
1533
|
+
</tr>
|
1534
|
+
</thead>
|
1535
|
+
<tbody>
|
1536
|
+
<tr>
|
1537
|
+
<td>1</td>
|
1538
|
+
<td colspan="2">Mark Otto</td>
|
1539
|
+
<td>CSS</td>
|
1540
|
+
</tr>
|
1541
|
+
<tr>
|
1542
|
+
<td>2</td>
|
1543
|
+
<td>Jacob</td>
|
1544
|
+
<td>Thornton</td>
|
1545
|
+
<td rowspan="2">Javascript</td>
|
1546
|
+
</tr>
|
1547
|
+
</tr>
|
1548
|
+
<td>3</td>
|
1549
|
+
<td>Stu</td>
|
1550
|
+
<td>Dent</td>
|
1551
|
+
</tr>
|
1552
|
+
<tr>
|
1553
|
+
<td>3</td>
|
1554
|
+
<td>Brosef</td>
|
1555
|
+
<td>Stalin</td>
|
1556
|
+
<td>HTML</td>
|
1557
|
+
</tr>
|
1558
|
+
</tbody>
|
1559
|
+
</table>
|
1560
|
+
</div>
|
1561
|
+
</div>
|
1562
|
+
|
1563
|
+
|
1564
|
+
<h3>4. Condensed table</h3>
|
1565
|
+
<div class="row">
|
1566
|
+
<div class="span4">
|
1567
|
+
<p>Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 8px to 4px).</p>
|
1568
|
+
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
1569
|
+
<table class="table table-condensed">
|
1570
|
+
…
|
1571
|
+
</table></pre>
|
1572
|
+
</div>
|
1573
|
+
<div class="span8">
|
1574
|
+
<table class="table table-condensed">
|
1575
|
+
<thead>
|
1576
|
+
<tr>
|
1577
|
+
<th>#</th>
|
1578
|
+
<th>First Name</th>
|
1579
|
+
<th>Last Name</th>
|
1580
|
+
<th>Language</th>
|
1581
|
+
</tr>
|
1582
|
+
</thead>
|
1583
|
+
<tbody>
|
1584
|
+
<tr>
|
1585
|
+
<td>1</td>
|
1586
|
+
<td>Mark</td>
|
1587
|
+
<td>Otto</td>
|
1588
|
+
<td>CSS</td>
|
1589
|
+
</tr>
|
1590
|
+
<tr>
|
1591
|
+
<td>2</td>
|
1592
|
+
<td>Jacob</td>
|
1593
|
+
<td>Thornton</td>
|
1594
|
+
<td>Javascript</td>
|
1595
|
+
</tr>
|
1596
|
+
<tr>
|
1597
|
+
<td>3</td>
|
1598
|
+
<td>Stu</td>
|
1599
|
+
<td>Dent</td>
|
1600
|
+
<td>HTML</td>
|
1601
|
+
</tr>
|
1602
|
+
</tbody>
|
1603
|
+
</table>
|
1604
|
+
</div>
|
1605
|
+
</div>
|
1606
|
+
|
1607
|
+
|
1608
|
+
|
1609
|
+
<h3>5. Combine them all!</h3>
|
1610
|
+
<div class="row">
|
1611
|
+
<div class="span4">
|
1612
|
+
<p>Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.</p>
|
1613
|
+
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
1614
|
+
<table class="table table-striped table-bordered table-condensed">
|
1615
|
+
...
|
1616
|
+
</table></pre>
|
1617
|
+
</div>
|
1618
|
+
<div class="span8">
|
1619
|
+
<table class="table table-striped table-bordered table-condensed">
|
1620
|
+
<thead>
|
1621
|
+
<tr>
|
1622
|
+
<th>#</th>
|
1623
|
+
<th class="yellow">First Name</th>
|
1624
|
+
<th class="blue">Last Name</th>
|
1625
|
+
<th class="green">Language</th>
|
1626
|
+
</tr>
|
1627
|
+
</thead>
|
1628
|
+
<tbody>
|
1629
|
+
<tr>
|
1630
|
+
<td>1</td>
|
1631
|
+
<td>Mark</td>
|
1632
|
+
<td>Otto</td>
|
1633
|
+
<td>CSS</td>
|
1634
|
+
</tr>
|
1635
|
+
<tr>
|
1636
|
+
<td>2</td>
|
1637
|
+
<td>Jacob</td>
|
1638
|
+
<td>Thornton</td>
|
1639
|
+
<td>Javascript</td>
|
1640
|
+
</tr>
|
1641
|
+
<tr>
|
1642
|
+
<td>3</td>
|
1643
|
+
<td>Stu</td>
|
1644
|
+
<td>Dent</td>
|
1645
|
+
<td>HTML</td>
|
1646
|
+
</tr>
|
1647
|
+
<tr>
|
1648
|
+
<td>4</td>
|
1649
|
+
<td>Brosef</td>
|
1650
|
+
<td>Stalin</td>
|
1651
|
+
<td>HTML</td>
|
1652
|
+
</tr>
|
1653
|
+
</tbody>
|
1654
|
+
</table>
|
1655
|
+
</div>
|
1656
|
+
</div>
|
1657
|
+
</section>
|
1658
|
+
|
1659
|
+
|
1660
|
+
|
1661
|
+
<!-- Forms
|
1662
|
+
================================================== -->
|
1663
|
+
<section id="forms">
|
1664
|
+
<div class="page-header">
|
1665
|
+
<h1>Forms</h1>
|
1666
|
+
</div>
|
1667
|
+
<div class="row">
|
1668
|
+
<div class="span4">
|
1669
|
+
<h2>Flexible HTML and CSS</h2>
|
1670
|
+
<p>The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.</p>
|
1671
|
+
<p>More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.</p>
|
1672
|
+
</div>
|
1673
|
+
<div class="span4">
|
1674
|
+
<h2>Four layouts included</h2>
|
1675
|
+
<p>Bootstrap comes with support for four types of form layouts:</p>
|
1676
|
+
<ul>
|
1677
|
+
<li>Vertical (default)</li>
|
1678
|
+
<li>Search</li>
|
1679
|
+
<li>Inline</li>
|
1680
|
+
<li>Horizontal</li>
|
1681
|
+
</ul>
|
1682
|
+
<p>Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.</p>
|
1683
|
+
</div>
|
1684
|
+
<div class="span4">
|
1685
|
+
<h2>Control states and more</h2>
|
1686
|
+
<p>Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.</p>
|
1687
|
+
<p>States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.</p>
|
1688
|
+
</div>
|
1689
|
+
</div>
|
1690
|
+
|
1691
|
+
<h2>Four types of forms</h2>
|
1692
|
+
<p>Bootstrap provides simple markup and styles for four styles of common web forms.</p>
|
1693
|
+
<table class="table table-bordered table-striped">
|
1694
|
+
<thead>
|
1695
|
+
<tr>
|
1696
|
+
<th>Name</th>
|
1697
|
+
<th>Class</th>
|
1698
|
+
<th>Description</th>
|
1699
|
+
</tr>
|
1700
|
+
</thead>
|
1701
|
+
<tbody>
|
1702
|
+
<tr>
|
1703
|
+
<th>Vertical (default)</th>
|
1704
|
+
<td><code>.form-vertical</code> <span class="muted">(not required)</span></td>
|
1705
|
+
<td>Stacked, left-aligned labels over controls</td>
|
1706
|
+
</tr>
|
1707
|
+
<tr>
|
1708
|
+
<th>Inline</th>
|
1709
|
+
<td><code>.form-inline</code></td>
|
1710
|
+
<td>Left-aligned label and inline-block controls for compact style</td>
|
1711
|
+
</tr>
|
1712
|
+
<tr>
|
1713
|
+
<th>Search</th>
|
1714
|
+
<td><code>.form-search</code></td>
|
1715
|
+
<td>Extra-rounded text input for a typical search aesthetic</td>
|
1716
|
+
</tr>
|
1717
|
+
<tr>
|
1718
|
+
<th>Horizontal</th>
|
1719
|
+
<td><code>.form-horizontal</code></td>
|
1720
|
+
<td>Float left, right-aligned labels on same line as controls</td>
|
1721
|
+
</tr>
|
1722
|
+
</tbody>
|
1723
|
+
</table>
|
1724
|
+
|
1725
|
+
|
1726
|
+
<h2>Example forms <small>using just form controls, no extra markup</small></h2>
|
1727
|
+
<h3>Basic form</h3>
|
1728
|
+
<div class="row">
|
1729
|
+
<div class="span3">
|
1730
|
+
<p>With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.</p>
|
1731
|
+
</div>
|
1732
|
+
<div class="span9">
|
1733
|
+
<form class="well">
|
1734
|
+
<label>Label name</label>
|
1735
|
+
<input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
|
1736
|
+
<label class="checkbox">
|
1737
|
+
<input type="checkbox"> Check me out
|
1738
|
+
</label>
|
1739
|
+
<button type="submit" class="btn">Submit</button>
|
1740
|
+
</form>
|
1741
|
+
</div>
|
1742
|
+
</div> <!-- /row -->
|
1743
|
+
<h3>Search form</h3>
|
1744
|
+
<div class="row">
|
1745
|
+
<div class="span3">
|
1746
|
+
<p>Reflecting default WebKit styles, just add <code>.form-search</code> for extra rounded search fields.</p>
|
1747
|
+
</div>
|
1748
|
+
<div class="span9">
|
1749
|
+
<form class="well form-search">
|
1750
|
+
<input type="text" class="input-medium search-query">
|
1751
|
+
<button type="submit" class="btn">Search</button>
|
1752
|
+
</form>
|
1753
|
+
</div>
|
1754
|
+
</div> <!-- /row -->
|
1755
|
+
<h3>Inline form</h3>
|
1756
|
+
<div class="row">
|
1757
|
+
<div class="span3">
|
1758
|
+
<p>Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.</p>
|
1759
|
+
</div>
|
1760
|
+
<div class="span9">
|
1761
|
+
<form class="well form-search">
|
1762
|
+
<input type="text" class="input-small" placeholder="Email">
|
1763
|
+
<input type="password" class="input-small" placeholder="Password">
|
1764
|
+
<button type="submit" class="btn">Go</button>
|
1765
|
+
</form>
|
1766
|
+
</div>
|
1767
|
+
</div><!-- /row -->
|
1768
|
+
|
1769
|
+
<br>
|
1770
|
+
|
1771
|
+
<h2>Horizontal forms</h2>
|
1772
|
+
<div class="row">
|
1773
|
+
<div class="span8">
|
1774
|
+
<form class="form-horizontal">
|
1775
|
+
<fieldset>
|
1776
|
+
<legend>Controls Bootstrap supports</legend>
|
1777
|
+
<div class="control-group">
|
1778
|
+
<label class="control-label" for="input01">Text input</label>
|
1779
|
+
<div class="controls">
|
1780
|
+
<input type="text" class="input-xlarge" id="input01">
|
1781
|
+
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
1782
|
+
</div>
|
1783
|
+
</div>
|
1784
|
+
<div class="control-group">
|
1785
|
+
<label class="control-label" for="optionsCheckbox">Checkbox</label>
|
1786
|
+
<div class="controls">
|
1787
|
+
<label class="checkbox">
|
1788
|
+
<input type="checkbox" id="optionsCheckbox" value="option1">
|
1789
|
+
Option one is this and that—be sure to include why it’s great
|
1790
|
+
</label>
|
1791
|
+
</div>
|
1792
|
+
</div>
|
1793
|
+
<div class="control-group">
|
1794
|
+
<label class="control-label" for="select01">Select list</label>
|
1795
|
+
<div class="controls">
|
1796
|
+
<select id="select01">
|
1797
|
+
<option>something</option>
|
1798
|
+
<option>2</option>
|
1799
|
+
<option>3</option>
|
1800
|
+
<option>4</option>
|
1801
|
+
<option>5</option>
|
1802
|
+
</select>
|
1803
|
+
</div>
|
1804
|
+
</div>
|
1805
|
+
<div class="control-group">
|
1806
|
+
<label class="control-label" for="multiSelect">Multicon-select</label>
|
1807
|
+
<div class="controls">
|
1808
|
+
<select multiple="multiple" id="multiSelect">
|
1809
|
+
<option>1</option>
|
1810
|
+
<option>2</option>
|
1811
|
+
<option>3</option>
|
1812
|
+
<option>4</option>
|
1813
|
+
<option>5</option>
|
1814
|
+
</select>
|
1815
|
+
</div>
|
1816
|
+
</div>
|
1817
|
+
<div class="control-group">
|
1818
|
+
<label class="control-label" for="fileInput">File input</label>
|
1819
|
+
<div class="controls">
|
1820
|
+
<input class="input-file" id="fileInput" type="file">
|
1821
|
+
</div>
|
1822
|
+
</div>
|
1823
|
+
<div class="control-group">
|
1824
|
+
<label class="control-label" for="textarea">Textarea</label>
|
1825
|
+
<div class="controls">
|
1826
|
+
<textarea class="input-xlarge" id="textarea" rows="3"></textarea>
|
1827
|
+
</div>
|
1828
|
+
</div>
|
1829
|
+
<div class="form-actions">
|
1830
|
+
<button type="submit" class="btn btn-primary">Save changes</button>
|
1831
|
+
<button type="reset" class="btn">Cancel</button>
|
1832
|
+
</div>
|
1833
|
+
</fieldset>
|
1834
|
+
</form>
|
1835
|
+
</div>
|
1836
|
+
<div class="span4">
|
1837
|
+
<h3>What's included</h3>
|
1838
|
+
<p>Shown on the left are all the default form controls we support. Here's the bulleted list:</p>
|
1839
|
+
<ul>
|
1840
|
+
<li>text inputs (text, password, email, etc)</li>
|
1841
|
+
<li>checkbox</li>
|
1842
|
+
<li>radio</li>
|
1843
|
+
<li>select</li>
|
1844
|
+
<li>multiple select</li>
|
1845
|
+
<li>file input</li>
|
1846
|
+
<li>textarea</li>
|
1847
|
+
</ul>
|
1848
|
+
<hr>
|
1849
|
+
<h3>New defaults with v2.0</h3>
|
1850
|
+
<p>Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.</p>
|
1851
|
+
</div>
|
1852
|
+
</div>
|
1853
|
+
|
1854
|
+
<br>
|
1855
|
+
|
1856
|
+
<div class="row">
|
1857
|
+
<div class="span8">
|
1858
|
+
<form class="form-horizontal">
|
1859
|
+
<fieldset>
|
1860
|
+
<legend>Form control states</legend>
|
1861
|
+
<div class="control-group">
|
1862
|
+
<label class="control-label" for="focusedInput">Focused input</label>
|
1863
|
+
<div class="controls">
|
1864
|
+
<input class="input-xlarge focused" id="focusedInput" type="text" value="This is focused…">
|
1865
|
+
</div>
|
1866
|
+
</div>
|
1867
|
+
<div class="control-group">
|
1868
|
+
<label class="control-label">Uneditable input</label>
|
1869
|
+
<div class="controls">
|
1870
|
+
<span class="input-xlarge uneditable-input">Some value here</span>
|
1871
|
+
</div>
|
1872
|
+
</div>
|
1873
|
+
<div class="control-group">
|
1874
|
+
<label class="control-label" for="disabledInput">Disabled input</label>
|
1875
|
+
<div class="controls">
|
1876
|
+
<input class="input-xlarge disabled" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
|
1877
|
+
</div>
|
1878
|
+
</div>
|
1879
|
+
<div class="control-group">
|
1880
|
+
<label class="control-label" for="optionsCheckbox2">Disabled checkbox</label>
|
1881
|
+
<div class="controls">
|
1882
|
+
<label class="checkbox">
|
1883
|
+
<input type="checkbox" id="optionsCheckbox2" value="option1" disabled>
|
1884
|
+
This is a disabled checkbox
|
1885
|
+
</label>
|
1886
|
+
</div>
|
1887
|
+
</div>
|
1888
|
+
<div class="control-group warning">
|
1889
|
+
<label class="control-label" for="inputError">Input with warning</label>
|
1890
|
+
<div class="controls">
|
1891
|
+
<input type="text" id="inputError">
|
1892
|
+
<span class="help-inline">Something may have gone wrong</span>
|
1893
|
+
</div>
|
1894
|
+
</div>
|
1895
|
+
<div class="control-group error">
|
1896
|
+
<label class="control-label" for="inputError">Input with error</label>
|
1897
|
+
<div class="controls">
|
1898
|
+
<input type="text" id="inputError">
|
1899
|
+
<span class="help-inline">Please correct the error</span>
|
1900
|
+
</div>
|
1901
|
+
</div>
|
1902
|
+
<div class="control-group success">
|
1903
|
+
<label class="control-label" for="inputError">Input with success</label>
|
1904
|
+
<div class="controls">
|
1905
|
+
<input type="text" id="inputError">
|
1906
|
+
<span class="help-inline">Woohoo!</span>
|
1907
|
+
</div>
|
1908
|
+
</div>
|
1909
|
+
<div class="control-group success">
|
1910
|
+
<label class="control-label" for="selectError">Select with success</label>
|
1911
|
+
<div class="controls">
|
1912
|
+
<select id="selectError">
|
1913
|
+
<option>1</option>
|
1914
|
+
<option>2</option>
|
1915
|
+
<option>3</option>
|
1916
|
+
<option>4</option>
|
1917
|
+
<option>5</option>
|
1918
|
+
</select>
|
1919
|
+
<span class="help-inline">Woohoo!</span>
|
1920
|
+
</div>
|
1921
|
+
</div>
|
1922
|
+
<div class="form-actions">
|
1923
|
+
<button type="submit" class="btn btn-primary">Save changes</button>
|
1924
|
+
<button type="reset" class="btn">Cancel</button>
|
1925
|
+
</div>
|
1926
|
+
</fieldset>
|
1927
|
+
</form>
|
1928
|
+
</div>
|
1929
|
+
<div class="span4">
|
1930
|
+
<h3>Redesigned browser states</h3>
|
1931
|
+
<p>Bootstrap features styles for browser-supported focused and <code>disabled</code> states. We remove the default Webkit <code>outline</code> and apply a <code>box-shadow</code> in it's place for <code>:focus</code>.</p>
|
1932
|
+
<hr>
|
1933
|
+
<h3>Form validation</h3>
|
1934
|
+
<p>It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding <code>.control-group</code>.</p>
|
1935
|
+
<pre class="prettyprint linenums">
|
1936
|
+
<fieldset
|
1937
|
+
class="control-group error">
|
1938
|
+
…
|
1939
|
+
</fieldset>
|
1940
|
+
</pre>
|
1941
|
+
</div>
|
1942
|
+
</div>
|
1943
|
+
|
1944
|
+
<br>
|
1945
|
+
|
1946
|
+
<div class="row">
|
1947
|
+
<div class="span8">
|
1948
|
+
<form class="form-horizontal">
|
1949
|
+
<fieldset>
|
1950
|
+
<legend>Extending form controls</legend>
|
1951
|
+
<div class="control-group">
|
1952
|
+
<label class="control-label">Form sizes</label>
|
1953
|
+
<div class="controls docs-input-sizes">
|
1954
|
+
<input class="span1" type="text" placeholder=".span1">
|
1955
|
+
<input class="span2" type="text" placeholder=".span2">
|
1956
|
+
<input class="span3" type="text" placeholder=".span3">
|
1957
|
+
<select class="span1">
|
1958
|
+
<option>1</option>
|
1959
|
+
<option>2</option>
|
1960
|
+
<option>3</option>
|
1961
|
+
<option>4</option>
|
1962
|
+
<option>5</option>
|
1963
|
+
</select>
|
1964
|
+
<select class="span2">
|
1965
|
+
<option>1</option>
|
1966
|
+
<option>2</option>
|
1967
|
+
<option>3</option>
|
1968
|
+
<option>4</option>
|
1969
|
+
<option>5</option>
|
1970
|
+
</select>
|
1971
|
+
<select class="span3">
|
1972
|
+
<option>1</option>
|
1973
|
+
<option>2</option>
|
1974
|
+
<option>3</option>
|
1975
|
+
<option>4</option>
|
1976
|
+
<option>5</option>
|
1977
|
+
</select>
|
1978
|
+
<p class="help-block">Use the same <code>.span*</code> classes from the grid system for input sizes.</p>
|
1979
|
+
</div>
|
1980
|
+
</div>
|
1981
|
+
<div class="control-group">
|
1982
|
+
<label class="control-label" for="prependedInput">Prepended text</label>
|
1983
|
+
<div class="controls">
|
1984
|
+
<div class="input-prepend">
|
1985
|
+
<span class="add-on">@</span>
|
1986
|
+
<input class="span2" id="prependedInput" size="16" type="text">
|
1987
|
+
</div>
|
1988
|
+
<p class="help-block">Here's some help text</p>
|
1989
|
+
</div>
|
1990
|
+
</div>
|
1991
|
+
<div class="control-group">
|
1992
|
+
<label class="control-label" for="appendedInput">Appended text</label>
|
1993
|
+
<div class="controls">
|
1994
|
+
<div class="input-append">
|
1995
|
+
<input class="span2" id="appendedInput" size="16" type="text">
|
1996
|
+
<span class="add-on">.00</span>
|
1997
|
+
</div>
|
1998
|
+
<p class="help-block">Here's more help text</p>
|
1999
|
+
</div>
|
2000
|
+
</div>
|
2001
|
+
<div class="control-group">
|
2002
|
+
<label class="control-label" for="inlineCheckboxes">Inline checkboxes</label>
|
2003
|
+
<div class="controls">
|
2004
|
+
<label class="checkbox inline">
|
2005
|
+
<input type="checkbox" id="inlineCheckbox1" value="option1"> 1
|
2006
|
+
</label>
|
2007
|
+
<label class="checkbox inline">
|
2008
|
+
<input type="checkbox" id="inlineCheckbox2" value="option2"> 2
|
2009
|
+
</label>
|
2010
|
+
<label class="checkbox inline">
|
2011
|
+
<input type="checkbox" id="inlineCheckbox3" value="option3"> 3
|
2012
|
+
</label>
|
2013
|
+
</div>
|
2014
|
+
</div>
|
2015
|
+
<div class="control-group">
|
2016
|
+
<label class="control-label" for="optionsCheckboxList">Checkboxes</label>
|
2017
|
+
<div class="controls">
|
2018
|
+
<label class="checkbox">
|
2019
|
+
<input type="checkbox" name="optionsCheckboxList1" value="option1">
|
2020
|
+
Option one is this and that—be sure to include why it’s great
|
2021
|
+
</label>
|
2022
|
+
<label class="checkbox">
|
2023
|
+
<input type="checkbox" name="optionsCheckboxList2" value="option2">
|
2024
|
+
Option two can also be checked and included in form results
|
2025
|
+
</label>
|
2026
|
+
<label class="checkbox">
|
2027
|
+
<input type="checkbox" name="optionsCheckboxList3" value="option3">
|
2028
|
+
Option three can—yes, you guessed it—also be checked and included in form results
|
2029
|
+
</label>
|
2030
|
+
<p class="help-block"><strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.</p>
|
2031
|
+
</div>
|
2032
|
+
</div>
|
2033
|
+
<div class="control-group">
|
2034
|
+
<label class="control-label">Radio buttons</label>
|
2035
|
+
<div class="controls">
|
2036
|
+
<label class="radio">
|
2037
|
+
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
|
2038
|
+
Option one is this and that—be sure to include why it’s great
|
2039
|
+
</label>
|
2040
|
+
<label class="radio">
|
2041
|
+
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
|
2042
|
+
Option two can is something else and selecting it will deselect option one
|
2043
|
+
</label>
|
2044
|
+
</div>
|
2045
|
+
</div>
|
2046
|
+
<div class="form-actions">
|
2047
|
+
<button type="submit" class="btn btn-primary">Save changes</button>
|
2048
|
+
<button type="reset" class="btn">Cancel</button>
|
2049
|
+
</div>
|
2050
|
+
</fieldset>
|
2051
|
+
</form>
|
2052
|
+
</div>
|
2053
|
+
<div class="span4">
|
2054
|
+
<h3>Prepend & append inputs</h3>
|
2055
|
+
<p>Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.</p>
|
2056
|
+
<hr>
|
2057
|
+
<h3>Checkboxes and radios</h3>
|
2058
|
+
<p>Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <code><label class="checkbox"></code> that wraps the <code><input type="checkbox"></code>.</p>
|
2059
|
+
<p>Inline checkboxes and radios are also supported. Just add <code>.inline</code> to any <code>.checkbox</code> or <code>.radio</code> and you're done.</p>
|
2060
|
+
<hr>
|
2061
|
+
<h4>Inline forms and append/prepend</h4>
|
2062
|
+
<p>To use prepend or append inputs in an inline form, be sure to place the <code>.add-on</code> and <code>input</code> on the same line, without spaces.</p>
|
2063
|
+
<hr>
|
2064
|
+
<h4>Form help text</h4>
|
2065
|
+
<p>To add help text for your form inputs, include inline help text with <code><span class="help-inline"></code> or a help text block with <code><p class="help-block"></code> after the input element.</p>
|
2066
|
+
</div>
|
2067
|
+
</div><!-- /row -->
|
2068
|
+
</section>
|
2069
|
+
|
2070
|
+
|
2071
|
+
|
2072
|
+
<!-- Buttons
|
2073
|
+
================================================== -->
|
2074
|
+
<section id="buttons">
|
2075
|
+
<div class="page-header">
|
2076
|
+
<h1>Buttons</h1>
|
2077
|
+
</div>
|
2078
|
+
<table class="table table-bordered table-striped">
|
2079
|
+
<thead>
|
2080
|
+
<tr>
|
2081
|
+
<th>Button</th>
|
2082
|
+
<th>Class</th>
|
2083
|
+
<th>Description</th>
|
2084
|
+
</tr>
|
2085
|
+
</thead>
|
2086
|
+
<tbody>
|
2087
|
+
<tr>
|
2088
|
+
<td><a class="btn" href="#">Default</a></td>
|
2089
|
+
<td><code>.btn</code></td>
|
2090
|
+
<td>Standard gray button with gradient</td>
|
2091
|
+
</tr>
|
2092
|
+
<tr>
|
2093
|
+
<td><a class="btn btn-primary" href="#">Primary</a></td>
|
2094
|
+
<td><code>.btn-primary</code></td>
|
2095
|
+
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
|
2096
|
+
</tr>
|
2097
|
+
<tr>
|
2098
|
+
<td><a class="btn btn-info" href="#">Info</a></td>
|
2099
|
+
<td><code>.btn-info</code></td>
|
2100
|
+
<td>Used as an alternate to the default styles</td>
|
2101
|
+
</tr>
|
2102
|
+
<tr>
|
2103
|
+
<td><a class="btn btn-success" href="#">Success</a></td>
|
2104
|
+
<td><code>.btn-success</code></td>
|
2105
|
+
<td>Indicates a successful or positive action</td>
|
2106
|
+
</tr>
|
2107
|
+
<tr>
|
2108
|
+
<td><a class="btn btn-warning" href="#">Warning</a></td>
|
2109
|
+
<td><code>.btn-warning</code></td>
|
2110
|
+
<td>Indicates caution should be taken with this action</td>
|
2111
|
+
</tr>
|
2112
|
+
<tr>
|
2113
|
+
<td><a class="btn btn-danger" href="#">Danger</a></td>
|
2114
|
+
<td><code>.btn-danger</code></td>
|
2115
|
+
<td>Indicates a dangerous or potentially negative action</td>
|
2116
|
+
</tr>
|
2117
|
+
</tbody>
|
2118
|
+
</table>
|
2119
|
+
|
2120
|
+
<div class="row">
|
2121
|
+
<div class="span4">
|
2122
|
+
<h3>Buttons for actions</h3>
|
2123
|
+
<p>As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.</p>
|
2124
|
+
</div>
|
2125
|
+
<div class="span4">
|
2126
|
+
<h3>For anchors and forms</h3>
|
2127
|
+
<p>Button styles can be applied to anything with the <code>.btn</code> applied. However, typically you’ll want to apply these to only <code><a></code> and <code><button></code> elements.</p>
|
2128
|
+
</div>
|
2129
|
+
<div class="span4">
|
2130
|
+
<p><strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code><button></code> and <code><a></code> elements for consistency.</p>
|
2131
|
+
</div>
|
2132
|
+
</div>
|
2133
|
+
|
2134
|
+
<div class="row">
|
2135
|
+
<div class="span4">
|
2136
|
+
<h3>Multiple sizes</h3>
|
2137
|
+
<p>Fancy larger or smaller buttons? Have at it!</p>
|
2138
|
+
<p>
|
2139
|
+
<a href="#" class="btn btn-large btn-primary">Primary action</a>
|
2140
|
+
<a href="#" class="btn btn-large">Action</a>
|
2141
|
+
</p>
|
2142
|
+
<p>
|
2143
|
+
<a href="#" class="btn btn-small btn-primary">Primary action</a>
|
2144
|
+
<a href="#" class="btn btn-small">Action</a>
|
2145
|
+
</p>
|
2146
|
+
</div>
|
2147
|
+
<div class="span4">
|
2148
|
+
<h3>Disabled state</h3>
|
2149
|
+
<p>For disabled buttons, use <code>.btn-disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
|
2150
|
+
<p>
|
2151
|
+
<a href="#" class="btn btn-large btn-primary disabled">Primary action</a>
|
2152
|
+
<a href="#" class="btn btn-large disabled">Action</a>
|
2153
|
+
</p>
|
2154
|
+
<p>
|
2155
|
+
<button class="btn btn-large btn-primary disabled" disabled="disabled">Primary action</button>
|
2156
|
+
<button class="btn btn-large" disabled>Action</button>
|
2157
|
+
</p>
|
2158
|
+
</div>
|
2159
|
+
<div class="span4">
|
2160
|
+
<h3>Cross browser compatibility</h3>
|
2161
|
+
<p>In IE9, we drop the gradient on all buttons in favor of rounded corners as IE9 doesn't crop background gradients to the corners.</p>
|
2162
|
+
<p>Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow—unfortunately we can't fix this.</p>
|
2163
|
+
</div>
|
2164
|
+
</div>
|
2165
|
+
|
2166
|
+
<br>
|
2167
|
+
|
2168
|
+
</section>
|
2169
|
+
|
2170
|
+
|
2171
|
+
|
2172
|
+
<!-- Icons
|
2173
|
+
================================================== -->
|
2174
|
+
<section id="icons">
|
2175
|
+
<div class="page-header">
|
2176
|
+
<h1>Icons <small>Graciously provided by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small></h1>
|
2177
|
+
</div>
|
2178
|
+
<div class="row">
|
2179
|
+
<div class="span3">
|
2180
|
+
<div class="the-icons">
|
2181
|
+
<i class="icon-glass"></i>
|
2182
|
+
<i class="icon-music"></i>
|
2183
|
+
<i class="icon-search"></i>
|
2184
|
+
<i class="icon-envelope"></i>
|
2185
|
+
<i class="icon-heart"></i>
|
2186
|
+
<i class="icon-star"></i>
|
2187
|
+
<i class="icon-star-empty"></i>
|
2188
|
+
<i class="icon-user"></i>
|
2189
|
+
<i class="icon-film"></i>
|
2190
|
+
<i class="icon-th-large"></i>
|
2191
|
+
<i class="icon-th"></i>
|
2192
|
+
<i class="icon-th-list"></i>
|
2193
|
+
<i class="icon-ok"></i>
|
2194
|
+
<i class="icon-remove"></i>
|
2195
|
+
<i class="icon-zoom-in"></i>
|
2196
|
+
<i class="icon-zoom-out"></i>
|
2197
|
+
<i class="icon-off"></i>
|
2198
|
+
<i class="icon-signal"></i>
|
2199
|
+
<i class="icon-cog"></i>
|
2200
|
+
<i class="icon-trash"></i>
|
2201
|
+
|
2202
|
+
<i class="icon-home"></i>
|
2203
|
+
<i class="icon-file"></i>
|
2204
|
+
<i class="icon-time"></i>
|
2205
|
+
<i class="icon-road"></i>
|
2206
|
+
<i class="icon-download-alt"></i>
|
2207
|
+
<i class="icon-download"></i>
|
2208
|
+
<i class="icon-upload"></i>
|
2209
|
+
<i class="icon-inbox"></i>
|
2210
|
+
<i class="icon-play-circle"></i>
|
2211
|
+
<i class="icon-repeat"></i>
|
2212
|
+
</div>
|
2213
|
+
</div>
|
2214
|
+
<div class="span3">
|
2215
|
+
<div class="the-icons">
|
2216
|
+
<i class="icon-refresh"></i>
|
2217
|
+
<i class="icon-list-alt"></i>
|
2218
|
+
<i class="icon-lock"></i>
|
2219
|
+
<i class="icon-flag"></i>
|
2220
|
+
<i class="icon-headphones"></i>
|
2221
|
+
<i class="icon-volume-off"></i>
|
2222
|
+
<i class="icon-volume-down"></i>
|
2223
|
+
<i class="icon-volume-up"></i>
|
2224
|
+
<i class="icon-qrcode"></i>
|
2225
|
+
<i class="icon-barcode"></i>
|
2226
|
+
|
2227
|
+
<i class="icon-tag"></i>
|
2228
|
+
<i class="icon-tags"></i>
|
2229
|
+
<i class="icon-book"></i>
|
2230
|
+
<i class="icon-bookmark"></i>
|
2231
|
+
<i class="icon-print"></i>
|
2232
|
+
<i class="icon-camera"></i>
|
2233
|
+
<i class="icon-font"></i>
|
2234
|
+
<i class="icon-bold"></i>
|
2235
|
+
<i class="icon-italic"></i>
|
2236
|
+
<i class="icon-text-height"></i>
|
2237
|
+
<i class="icon-text-width"></i>
|
2238
|
+
<i class="icon-align-left"></i>
|
2239
|
+
<i class="icon-align-center"></i>
|
2240
|
+
<i class="icon-align-right"></i>
|
2241
|
+
<i class="icon-align-justify"></i>
|
2242
|
+
<i class="icon-list"></i>
|
2243
|
+
<i class="icon-indent-left"></i>
|
2244
|
+
<i class="icon-indent-right"></i>
|
2245
|
+
<i class="icon-facetime-video"></i>
|
2246
|
+
<i class="icon-picture"></i>
|
2247
|
+
</div>
|
2248
|
+
</div>
|
2249
|
+
<div class="span3">
|
2250
|
+
<div class="the-icons">
|
2251
|
+
<i class="icon-pencil"></i>
|
2252
|
+
<i class="icon-map-marker"></i>
|
2253
|
+
<i class="icon-adjust"></i>
|
2254
|
+
<i class="icon-tint"></i>
|
2255
|
+
<i class="icon-edit"></i>
|
2256
|
+
<i class="icon-share"></i>
|
2257
|
+
<i class="icon-check"></i>
|
2258
|
+
<i class="icon-move"></i>
|
2259
|
+
<i class="icon-step-backward"></i>
|
2260
|
+
<i class="icon-fast-backward"></i>
|
2261
|
+
<i class="icon-backward"></i>
|
2262
|
+
<i class="icon-play"></i>
|
2263
|
+
<i class="icon-pause"></i>
|
2264
|
+
<i class="icon-stop"></i>
|
2265
|
+
<i class="icon-forward"></i>
|
2266
|
+
<i class="icon-fast-forward"></i>
|
2267
|
+
<i class="icon-step-forward"></i>
|
2268
|
+
<i class="icon-eject"></i>
|
2269
|
+
<i class="icon-chevron-left"></i>
|
2270
|
+
<i class="icon-chevron-right"></i>
|
2271
|
+
|
2272
|
+
<i class="icon-plus-sign"></i>
|
2273
|
+
<i class="icon-minus-sign"></i>
|
2274
|
+
<i class="icon-remove-sign"></i>
|
2275
|
+
<i class="icon-ok-sign"></i>
|
2276
|
+
<i class="icon-question-sign"></i>
|
2277
|
+
<i class="icon-info-sign"></i>
|
2278
|
+
<i class="icon-screenshot"></i>
|
2279
|
+
<i class="icon-remove-circle"></i>
|
2280
|
+
<i class="icon-ok-circle"></i>
|
2281
|
+
<i class="icon-ban-circle"></i>
|
2282
|
+
</div>
|
2283
|
+
</div>
|
2284
|
+
<div class="span3">
|
2285
|
+
<div class="the-icons">
|
2286
|
+
<i class="icon-arrow-left"></i>
|
2287
|
+
<i class="icon-arrow-right"></i>
|
2288
|
+
<i class="icon-arrow-up"></i>
|
2289
|
+
<i class="icon-arrow-down"></i>
|
2290
|
+
<i class="icon-share-alt"></i>
|
2291
|
+
<i class="icon-resize-full"></i>
|
2292
|
+
<i class="icon-resize-small"></i>
|
2293
|
+
<i class="icon-plus"></i>
|
2294
|
+
<i class="icon-minus"></i>
|
2295
|
+
<i class="icon-asterisk"></i>
|
2296
|
+
|
2297
|
+
<i class="icon-exclamation-sign"></i>
|
2298
|
+
<i class="icon-gift"></i>
|
2299
|
+
<i class="icon-leaf"></i>
|
2300
|
+
<i class="icon-fire"></i>
|
2301
|
+
<i class="icon-eye-open"></i>
|
2302
|
+
<i class="icon-eye-close"></i>
|
2303
|
+
<i class="icon-warning-sign"></i>
|
2304
|
+
<i class="icon-plane"></i>
|
2305
|
+
<i class="icon-calendar"></i>
|
2306
|
+
<i class="icon-random"></i>
|
2307
|
+
<i class="icon-comment"></i>
|
2308
|
+
<i class="icon-magnet"></i>
|
2309
|
+
<i class="icon-chevron-up"></i>
|
2310
|
+
<i class="icon-chevron-down"></i>
|
2311
|
+
<i class="icon-retweet"></i>
|
2312
|
+
<i class="icon-shopping-cart"></i>
|
2313
|
+
<i class="icon-folder-close"></i>
|
2314
|
+
<i class="icon-folder-open"></i>
|
2315
|
+
<i class="icon-resize-vertical"></i>
|
2316
|
+
<i class="icon-resize-horizontal"></i>
|
2317
|
+
</div>
|
2318
|
+
</div>
|
2319
|
+
</div>
|
2320
|
+
<div class="alert alert-info">
|
2321
|
+
<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to hightlight the icon's size.
|
2322
|
+
</div>
|
2323
|
+
|
2324
|
+
<br>
|
2325
|
+
|
2326
|
+
<div class="row">
|
2327
|
+
<div class="span4">
|
2328
|
+
<h3>Built as a sprite</h3>
|
2329
|
+
<p>Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with <code>background-position</code>. This is the same method we use on Twitter.com and it has worked well for us.</p>
|
2330
|
+
<p>All icons classes are prefixed with <code>.icon-</code> for proper namespacing and scoping, much like our other components. This will help avoid conflicts with other tools.</p>
|
2331
|
+
<p><a href="http://glyphicons.com" target="_blank">Glyphicons</a> has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.</p>
|
2332
|
+
</div>
|
2333
|
+
<div class="span4">
|
2334
|
+
<h3>How to use</h3>
|
2335
|
+
<p>With v2.0.0, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:</p>
|
2336
|
+
<pre class="prettyprint linenums">
|
2337
|
+
<i class="icon-search"></i>
|
2338
|
+
</pre>
|
2339
|
+
<p>There are also styles available for inverted (white) icons, made ready with one extra class:</p>
|
2340
|
+
<pre class="prettyprint linenums">
|
2341
|
+
<i class="icon-search icon-white"></i>
|
2342
|
+
</pre>
|
2343
|
+
<p>There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
|
2344
|
+
</div>
|
2345
|
+
<div class="span4">
|
2346
|
+
<h3>Use cases</h3>
|
2347
|
+
<p>Icons are great, but where would one use them? Here are a few ideas:</p>
|
2348
|
+
<ul>
|
2349
|
+
<li>As visuals for your sidebar navigation</li>
|
2350
|
+
<li>For a purely icon-driven navigation</li>
|
2351
|
+
<li>For buttons to help convey the meaning of an action</li>
|
2352
|
+
<li>With links to share context on a user's destination</li>
|
2353
|
+
</ul>
|
2354
|
+
<p>Essentially, anywhere you can put an <code><i></code> tag, you can put an icon.</p>
|
2355
|
+
</div>
|
2356
|
+
</div>
|
2357
|
+
|
2358
|
+
<h3>Examples</h3>
|
2359
|
+
<p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p>
|
2360
|
+
<div class="row">
|
2361
|
+
<div class="span4">
|
2362
|
+
<div class="btn-toolbar" style="margin-bottom: 9px">
|
2363
|
+
<div class="btn-group">
|
2364
|
+
<a class="btn" href="#"><i class="icon-align-left"></i></a>
|
2365
|
+
<a class="btn" href="#"><i class="icon-align-center"></i></a>
|
2366
|
+
<a class="btn" href="#"><i class="icon-align-right"></i></a>
|
2367
|
+
<a class="btn" href="#"><i class="icon-align-justify"></i></a>
|
2368
|
+
</div>
|
2369
|
+
<div class="btn-group">
|
2370
|
+
<a class="btn btn-primary" href="#"><i class="icon white user"></i> User</a>
|
2371
|
+
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2372
|
+
<ul class="dropdown-menu">
|
2373
|
+
<li><a href="#"><i class="icon-pencil"></i> Edit</a></li>
|
2374
|
+
<li><a href="#"><i class="icon-trash"></i> Delete</a></li>
|
2375
|
+
<li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li>
|
2376
|
+
<li class="divider"></li>
|
2377
|
+
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
2378
|
+
</ul>
|
2379
|
+
</div>
|
2380
|
+
</div>
|
2381
|
+
<p>
|
2382
|
+
<a class="btn" href="#"><i class="icon-refresh"></i> Refresh</a>
|
2383
|
+
<a class="btn btn-success" href="#"><i class="icon-shopping-cart icon-white"></i> Checkout</a>
|
2384
|
+
<a class="btn btn-danger" href="#"><i class="icon-trash icon-white"></i> Delete</a>
|
2385
|
+
</p>
|
2386
|
+
<p>
|
2387
|
+
<a class="btn btn-large" href="#"><i class="icon-comment"></i> Comment</a>
|
2388
|
+
<a class="btn btn-small" href="#"><i class="icon-cog"></i> Settings</a>
|
2389
|
+
<a class="btn btn-small btn-info" href="#"><i class="icon-info-sign icon-white"></i> More Info</a>
|
2390
|
+
</p>
|
2391
|
+
</div>
|
2392
|
+
<div class="span4">
|
2393
|
+
<div class="well" style="padding: 8px 0;">
|
2394
|
+
<ul class="nav nav-list">
|
2395
|
+
<li class="active"><a href="#"><i class="icon-home icon-white"></i> Home</a></li>
|
2396
|
+
<li><a href="#"><i class="icon-book"></i> Library</a></li>
|
2397
|
+
<li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
|
2398
|
+
<li><a href="#"><i class="i"></i> Misc</a></li>
|
2399
|
+
</ul>
|
2400
|
+
</div> <!-- /well -->
|
2401
|
+
</div>
|
2402
|
+
<div class="span4">
|
2403
|
+
<form>
|
2404
|
+
<div class="control-group">
|
2405
|
+
<label class="control-label" for="prependedInput">Email address</label>
|
2406
|
+
<div class="controls">
|
2407
|
+
<div class="input-prepend">
|
2408
|
+
<span class="add-on"><i class="icon-envelope"></i></span>
|
2409
|
+
<input class="span2" id="iconInput" type="text">
|
2410
|
+
</div>
|
2411
|
+
</div>
|
2412
|
+
</div>
|
2413
|
+
</form>
|
2414
|
+
</div>
|
2415
|
+
</div>
|
2416
|
+
</section>
|
2417
|
+
|
2418
|
+
|
2419
|
+
<!-- Button Groups
|
2420
|
+
================================================== -->
|
2421
|
+
<section id="buttonGroups">
|
2422
|
+
<div class="page-header">
|
2423
|
+
<h1>Button groups <small>Join buttons for more toolbar-like functionality</small></h1>
|
2424
|
+
</div>
|
2425
|
+
<div class="row">
|
2426
|
+
<div class="span4">
|
2427
|
+
<h3>Button groups</h3>
|
2428
|
+
<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>
|
2429
|
+
<p>You can also combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex projects.</p>
|
2430
|
+
<div class="btn-toolbar" style="margin-top: 18px;">
|
2431
|
+
<div class="btn-group">
|
2432
|
+
<a class="btn" href="#">Left</a>
|
2433
|
+
<a class="btn" href="#">Middle</a>
|
2434
|
+
<a class="btn" href="#">Right</a>
|
2435
|
+
</div>
|
2436
|
+
</div>
|
2437
|
+
<div class="btn-toolbar">
|
2438
|
+
<div class="btn-group">
|
2439
|
+
<a class="btn" href="#">1</a>
|
2440
|
+
<a class="btn" href="#">2</a>
|
2441
|
+
<a class="btn" href="#">3</a>
|
2442
|
+
<a class="btn" href="#">4</a>
|
2443
|
+
</div>
|
2444
|
+
<div class="btn-group">
|
2445
|
+
<a class="btn" href="#">5</a>
|
2446
|
+
<a class="btn" href="#">6</a>
|
2447
|
+
<a class="btn" href="#">7</a>
|
2448
|
+
</div>
|
2449
|
+
<div class="btn-group">
|
2450
|
+
<a class="btn" href="#">8</a>
|
2451
|
+
</div>
|
2452
|
+
</div>
|
2453
|
+
</div>
|
2454
|
+
<div class="span4">
|
2455
|
+
<h3>Example markup</h3>
|
2456
|
+
<p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
|
2457
|
+
<pre class="prettyprint linenums">
|
2458
|
+
<div class="btn-group">
|
2459
|
+
<a class="btn" href="#">1</a>
|
2460
|
+
<a class="btn" href="#">2</a>
|
2461
|
+
<a class="btn" href="#">3</a>
|
2462
|
+
</div>
|
2463
|
+
</pre>
|
2464
|
+
<p>And with a toolbar for multiple groups:</p>
|
2465
|
+
<pre class="prettyprint linenums">
|
2466
|
+
<div class="btn-toolbar">
|
2467
|
+
<div class="btn-group">
|
2468
|
+
...
|
2469
|
+
</div>
|
2470
|
+
</div>
|
2471
|
+
</pre>
|
2472
|
+
</div>
|
2473
|
+
<div class="span4">
|
2474
|
+
<h3>Checkbox and radio flavors</h3>
|
2475
|
+
<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>
|
2476
|
+
<p><a class="btn js-btn" href="./javascript.html#buttons">Get the javascript »</a></p>
|
2477
|
+
<hr>
|
2478
|
+
<h4 class="muted">Heads up</h4>
|
2479
|
+
<p class="muted">CSS for button groups is in a separate file, button-groups.less.</p>
|
2480
|
+
</div>
|
2481
|
+
</div>
|
2482
|
+
</section>
|
2483
|
+
|
2484
|
+
|
2485
|
+
|
2486
|
+
<!-- Split button dropdowns
|
2487
|
+
================================================== -->
|
2488
|
+
<section id="buttonDropdowns">
|
2489
|
+
<div class="page-header">
|
2490
|
+
<h1>Buttons dropdowns <small>Contextual dropdown menus built on button groups</small></h1>
|
2491
|
+
</div>
|
2492
|
+
|
2493
|
+
<div class="row">
|
2494
|
+
<div class="span4">
|
2495
|
+
<h3>Button dropdowns</h3>
|
2496
|
+
<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>
|
2497
|
+
<div class="btn-toolbar" style="margin-top: 18px;">
|
2498
|
+
<div class="btn-group">
|
2499
|
+
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
|
2500
|
+
<ul class="dropdown-menu">
|
2501
|
+
<li><a href="#">Action</a></li>
|
2502
|
+
<li><a href="#">Another action</a></li>
|
2503
|
+
<li><a href="#">Something else here</a></li>
|
2504
|
+
<li class="divider"></li>
|
2505
|
+
<li><a href="#">Separated link</a></li>
|
2506
|
+
</ul>
|
2507
|
+
</div><!-- /btn-group -->
|
2508
|
+
<div class="btn-group">
|
2509
|
+
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
|
2510
|
+
<ul class="dropdown-menu">
|
2511
|
+
<li><a href="#">Action</a></li>
|
2512
|
+
<li><a href="#">Another action</a></li>
|
2513
|
+
<li><a href="#">Something else here</a></li>
|
2514
|
+
<li class="divider"></li>
|
2515
|
+
<li><a href="#">Separated link</a></li>
|
2516
|
+
</ul>
|
2517
|
+
</div><!-- /btn-group -->
|
2518
|
+
<div class="btn-group">
|
2519
|
+
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">Danger <span class="caret"></span></a>
|
2520
|
+
<ul class="dropdown-menu">
|
2521
|
+
<li><a href="#">Action</a></li>
|
2522
|
+
<li><a href="#">Another action</a></li>
|
2523
|
+
<li><a href="#">Something else here</a></li>
|
2524
|
+
<li class="divider"></li>
|
2525
|
+
<li><a href="#">Separated link</a></li>
|
2526
|
+
</ul>
|
2527
|
+
</div><!-- /btn-group -->
|
2528
|
+
</div>
|
2529
|
+
<div class="btn-toolbar">
|
2530
|
+
<div class="btn-group">
|
2531
|
+
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">Success <span class="caret"></span></a>
|
2532
|
+
<ul class="dropdown-menu">
|
2533
|
+
<li><a href="#">Action</a></li>
|
2534
|
+
<li><a href="#">Another action</a></li>
|
2535
|
+
<li><a href="#">Something else here</a></li>
|
2536
|
+
<li class="divider"></li>
|
2537
|
+
<li><a href="#">Separated link</a></li>
|
2538
|
+
</ul>
|
2539
|
+
</div><!-- /btn-group -->
|
2540
|
+
<div class="btn-group">
|
2541
|
+
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">Info <span class="caret"></span></a>
|
2542
|
+
<ul class="dropdown-menu">
|
2543
|
+
<li><a href="#">Action</a></li>
|
2544
|
+
<li><a href="#">Another action</a></li>
|
2545
|
+
<li><a href="#">Something else here</a></li>
|
2546
|
+
<li class="divider"></li>
|
2547
|
+
<li><a href="#">Separated link</a></li>
|
2548
|
+
</ul>
|
2549
|
+
</div><!-- /btn-group -->
|
2550
|
+
</div>
|
2551
|
+
</div>
|
2552
|
+
<div class="span8">
|
2553
|
+
<h3>Example markup</h3>
|
2554
|
+
<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>
|
2555
|
+
<pre class="prettyprint linenums">
|
2556
|
+
<div class="btn-group">
|
2557
|
+
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
2558
|
+
Action
|
2559
|
+
<span class="caret"></span>
|
2560
|
+
</a>
|
2561
|
+
<ul class="dropdown-menu">
|
2562
|
+
<!-- dropdown menu links -->
|
2563
|
+
</ul>
|
2564
|
+
</div>
|
2565
|
+
</pre>
|
2566
|
+
</div>
|
2567
|
+
</div>
|
2568
|
+
|
2569
|
+
<div class="row">
|
2570
|
+
<div class="span4">
|
2571
|
+
<h3>Split button dropdowns</h3>
|
2572
|
+
<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>
|
2573
|
+
<div class="btn-toolbar" style="margin-top: 18px;">
|
2574
|
+
<div class="btn-group">
|
2575
|
+
<a class="btn" href="#">Action</a>
|
2576
|
+
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2577
|
+
<ul class="dropdown-menu">
|
2578
|
+
<li><a href="#">Action</a></li>
|
2579
|
+
<li><a href="#">Another action</a></li>
|
2580
|
+
<li><a href="#">Something else here</a></li>
|
2581
|
+
<li class="divider"></li>
|
2582
|
+
<li><a href="#">Separated link</a></li>
|
2583
|
+
</ul>
|
2584
|
+
</div><!-- /btn-group -->
|
2585
|
+
<div class="btn-group">
|
2586
|
+
<a class="btn btn-primary" href="#">Action</a>
|
2587
|
+
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2588
|
+
<ul class="dropdown-menu">
|
2589
|
+
<li><a href="#">Action</a></li>
|
2590
|
+
<li><a href="#">Another action</a></li>
|
2591
|
+
<li><a href="#">Something else here</a></li>
|
2592
|
+
<li class="divider"></li>
|
2593
|
+
<li><a href="#">Separated link</a></li>
|
2594
|
+
</ul>
|
2595
|
+
</div><!-- /btn-group -->
|
2596
|
+
<div class="btn-group">
|
2597
|
+
<a class="btn btn-danger" href="#">Danger</a>
|
2598
|
+
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2599
|
+
<ul class="dropdown-menu">
|
2600
|
+
<li><a href="#">Action</a></li>
|
2601
|
+
<li><a href="#">Another action</a></li>
|
2602
|
+
<li><a href="#">Something else here</a></li>
|
2603
|
+
<li class="divider"></li>
|
2604
|
+
<li><a href="#">Separated link</a></li>
|
2605
|
+
</ul>
|
2606
|
+
</div><!-- /btn-group -->
|
2607
|
+
</div>
|
2608
|
+
<div class="btn-toolbar">
|
2609
|
+
<div class="btn-group">
|
2610
|
+
<a class="btn btn-success" href="#">Success</a>
|
2611
|
+
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2612
|
+
<ul class="dropdown-menu">
|
2613
|
+
<li><a href="#">Action</a></li>
|
2614
|
+
<li><a href="#">Another action</a></li>
|
2615
|
+
<li><a href="#">Something else here</a></li>
|
2616
|
+
<li class="divider"></li>
|
2617
|
+
<li><a href="#">Separated link</a></li>
|
2618
|
+
</ul>
|
2619
|
+
</div><!-- /btn-group -->
|
2620
|
+
<div class="btn-group">
|
2621
|
+
<a class="btn btn-info" href="#">Info</a>
|
2622
|
+
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
2623
|
+
<ul class="dropdown-menu">
|
2624
|
+
<li><a href="#">Action</a></li>
|
2625
|
+
<li><a href="#">Another action</a></li>
|
2626
|
+
<li><a href="#">Something else here</a></li>
|
2627
|
+
<li class="divider"></li>
|
2628
|
+
<li><a href="#">Separated link</a></li>
|
2629
|
+
</ul>
|
2630
|
+
</div><!-- /btn-group -->
|
2631
|
+
</div>
|
2632
|
+
</div>
|
2633
|
+
<div class="span8">
|
2634
|
+
<h3>Example markup</h3>
|
2635
|
+
<p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
|
2636
|
+
<pre class="prettyprint linenums">
|
2637
|
+
<div class="btn-group">
|
2638
|
+
<a class="btn" href="#">Action</a>
|
2639
|
+
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
2640
|
+
<span class="caret"></span>
|
2641
|
+
</a>
|
2642
|
+
<ul class="dropdown-menu">
|
2643
|
+
<!-- dropdown menu links -->
|
2644
|
+
</ul>
|
2645
|
+
</div>
|
2646
|
+
</pre>
|
2647
|
+
</div>
|
2648
|
+
</div>
|
2649
|
+
</section>
|
2650
|
+
|
2651
|
+
|
2652
|
+
|
2653
|
+
<!-- Nav, Tabs, & Pills
|
2654
|
+
================================================== -->
|
2655
|
+
<section id="navs">
|
2656
|
+
<div class="page-header">
|
2657
|
+
<h1>Nav, tabs, and pills <small>Highly customizable list-style navigation</small></h1>
|
2658
|
+
</div>
|
2659
|
+
|
2660
|
+
<h2>Lightweight defaults <small>Same markup, different classes</small></h2>
|
2661
|
+
<div class="row">
|
2662
|
+
<div class="span4">
|
2663
|
+
<h3>Powerful base class</h3>
|
2664
|
+
<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>
|
2665
|
+
<h3>Why tabs and pills</h3>
|
2666
|
+
<p>Tabs and pills in Bootstrap are built on a <code><ul></code> with the same core HTML, a list of links. Swap between tabs or pills with only a class.</p>
|
2667
|
+
<p>Both options are great for sub-sections of content or navigating between pages of related content.</p>
|
2668
|
+
</div>
|
2669
|
+
<div class="span4">
|
2670
|
+
<h3>Basic tabs</h3>
|
2671
|
+
<p>Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:</p>
|
2672
|
+
<ul class="nav nav-tabs">
|
2673
|
+
<li class="active"><a href="#">Home</a></li>
|
2674
|
+
<li><a href="#">Profile</a></li>
|
2675
|
+
<li><a href="#">Messages</a></li>
|
2676
|
+
</ul>
|
2677
|
+
<pre class="prettyprint linenums">
|
2678
|
+
<ul class="nav nav-tabs">
|
2679
|
+
<li class="active">
|
2680
|
+
<a href="#">Home</a>
|
2681
|
+
</li>
|
2682
|
+
<li><a href="#">...</a></li>
|
2683
|
+
<li><a href="#">...</a></li>
|
2684
|
+
</ul>
|
2685
|
+
</pre>
|
2686
|
+
</div>
|
2687
|
+
<div class="span4">
|
2688
|
+
<h3>Basic pills</h3>
|
2689
|
+
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
2690
|
+
<ul class="nav nav-pills">
|
2691
|
+
<li class="active"><a href="#">Home</a></li>
|
2692
|
+
<li><a href="#">Profile</a></li>
|
2693
|
+
<li><a href="#">Messages</a></li>
|
2694
|
+
</ul>
|
2695
|
+
<pre class="prettyprint linenums">
|
2696
|
+
<ul class="nav nav-pills">
|
2697
|
+
<li class="active">
|
2698
|
+
<a href="#">Home</a>
|
2699
|
+
</li>
|
2700
|
+
<li><a href="#">...</a></li>
|
2701
|
+
<li><a href="#">...</a></li>
|
2702
|
+
</ul>
|
2703
|
+
</pre>
|
2704
|
+
</div>
|
2705
|
+
</div>
|
2706
|
+
|
2707
|
+
<h2>Stackable <small>Make tabs or pills vertical</small></h2>
|
2708
|
+
<div class="row">
|
2709
|
+
<div class="span4">
|
2710
|
+
<h3>How to stack 'em</h3>
|
2711
|
+
<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>
|
2712
|
+
</div>
|
2713
|
+
<div class="span4">
|
2714
|
+
<h3>Stacked tabs</h3>
|
2715
|
+
<ul class="nav nav-tabs nav-stacked">
|
2716
|
+
<li class="active"><a href="#">Home</a></li>
|
2717
|
+
<li><a href="#">Profile</a></li>
|
2718
|
+
<li><a href="#">Messages</a></li>
|
2719
|
+
</ul>
|
2720
|
+
<pre class="prettyprint linenums">
|
2721
|
+
<ul class="nav nav-tabs nav-stacked">
|
2722
|
+
...
|
2723
|
+
</ul>
|
2724
|
+
</pre>
|
2725
|
+
</div>
|
2726
|
+
<div class="span4">
|
2727
|
+
<h3>Stacked pills</h3>
|
2728
|
+
<ul class="nav nav-pills nav-stacked">
|
2729
|
+
<li class="active"><a href="#">Home</a></li>
|
2730
|
+
<li><a href="#">Profile</a></li>
|
2731
|
+
<li><a href="#">Messages</a></li>
|
2732
|
+
</ul>
|
2733
|
+
<pre class="prettyprint linenums">
|
2734
|
+
<ul class="nav nav-pills nav-stacked">
|
2735
|
+
...
|
2736
|
+
</ul>
|
2737
|
+
</pre>
|
2738
|
+
</div>
|
2739
|
+
</div>
|
2740
|
+
|
2741
|
+
<h2>Dropdowns <small>For advanced nav components</small></h2>
|
2742
|
+
<div class="row">
|
2743
|
+
<div class="span4">
|
2744
|
+
<h3>Rich menus made easy</h3>
|
2745
|
+
<p>Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.</p>
|
2746
|
+
<p>Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.</p>
|
2747
|
+
</div>
|
2748
|
+
<div class="span4">
|
2749
|
+
<h3>Tabs with dropdowns</h3>
|
2750
|
+
<ul class="nav nav-tabs">
|
2751
|
+
<li class="active"><a href="#">Home</a></li>
|
2752
|
+
<li><a href="#">Profile</a></li>
|
2753
|
+
<li class="dropdown">
|
2754
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
2755
|
+
<ul class="dropdown-menu">
|
2756
|
+
<li><a href="#">Action</a></li>
|
2757
|
+
<li><a href="#">Another action</a></li>
|
2758
|
+
<li><a href="#">Something else here</a></li>
|
2759
|
+
<li class="divider"></li>
|
2760
|
+
<li><a href="#">Separated link</a></li>
|
2761
|
+
</ul>
|
2762
|
+
</li>
|
2763
|
+
</ul>
|
2764
|
+
<pre class="prettyprint linenums">
|
2765
|
+
<ul class="nav nav-tabs">
|
2766
|
+
<li class="dropdown">
|
2767
|
+
<a class="dropdown-toggle"
|
2768
|
+
data-toggle="dropdown"
|
2769
|
+
href="#">
|
2770
|
+
Dropdown
|
2771
|
+
<b class="caret"></b>
|
2772
|
+
</a>
|
2773
|
+
<ul class="dropdown-menu">
|
2774
|
+
<!-- links -->
|
2775
|
+
</ul>
|
2776
|
+
</li>
|
2777
|
+
</ul>
|
2778
|
+
</pre>
|
2779
|
+
</div>
|
2780
|
+
<div class="span4">
|
2781
|
+
<h3>Pills with dropdowns</h3>
|
2782
|
+
<ul class="nav nav-pills">
|
2783
|
+
<li class="active"><a href="#">Home</a></li>
|
2784
|
+
<li><a href="#">Profile</a></li>
|
2785
|
+
<li class="dropdown">
|
2786
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
2787
|
+
<ul class="dropdown-menu">
|
2788
|
+
<li><a href="#">Action</a></li>
|
2789
|
+
<li><a href="#">Another action</a></li>
|
2790
|
+
<li><a href="#">Something else here</a></li>
|
2791
|
+
<li class="divider"></li>
|
2792
|
+
<li><a href="#">Separated link</a></li>
|
2793
|
+
</ul>
|
2794
|
+
</li>
|
2795
|
+
</ul>
|
2796
|
+
<pre class="prettyprint linenums">
|
2797
|
+
<ul class="nav nav-pills">
|
2798
|
+
<li class="dropdown">
|
2799
|
+
<a class="dropdown-toggle"
|
2800
|
+
data-toggle="dropdown"
|
2801
|
+
href="#">
|
2802
|
+
Dropdown
|
2803
|
+
<b class="caret"></b>
|
2804
|
+
</a>
|
2805
|
+
<ul class="dropdown-menu">
|
2806
|
+
<!-- links -->
|
2807
|
+
</ul>
|
2808
|
+
</li>
|
2809
|
+
</ul>
|
2810
|
+
</pre>
|
2811
|
+
</div>
|
2812
|
+
</div>
|
2813
|
+
|
2814
|
+
<h2>Nav lists <small>Build simple stacked navs, great for sidebars</small></h2>
|
2815
|
+
<div class="row">
|
2816
|
+
<div class="span4">
|
2817
|
+
<h3>Application-style navigation</h3>
|
2818
|
+
<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>
|
2819
|
+
<p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
|
2820
|
+
<h4>With icons</h4>
|
2821
|
+
<p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
|
2822
|
+
</div>
|
2823
|
+
<div class="span4">
|
2824
|
+
<h3>Example nav list</h3>
|
2825
|
+
<p>Take a list of links and add <code>class="nav nav-list"</code>:</p>
|
2826
|
+
<div class="well" style="padding: 8px 0;">
|
2827
|
+
<ul class="nav nav-list">
|
2828
|
+
<li class="nav-header">List header</li>
|
2829
|
+
<li class="active"><a href="#">Home</a></li>
|
2830
|
+
<li><a href="#">Library</a></li>
|
2831
|
+
<li><a href="#">Applications</a></li>
|
2832
|
+
<li class="nav-header">Another list header</li>
|
2833
|
+
<li><a href="#">Profile</a></li>
|
2834
|
+
<li><a href="#">Settings</a></li>
|
2835
|
+
<li><a href="#">Help</a></li>
|
2836
|
+
</ul>
|
2837
|
+
</div> <!-- /well -->
|
2838
|
+
<pre class="prettyprint linenums">
|
2839
|
+
<ul class="nav nav-list">
|
2840
|
+
<li class="nav-header">
|
2841
|
+
List header
|
2842
|
+
</li>
|
2843
|
+
<li class="active">
|
2844
|
+
<a href="#">Home</a>
|
2845
|
+
</li>
|
2846
|
+
<li>
|
2847
|
+
<a href="#">Library</a>
|
2848
|
+
</li>
|
2849
|
+
...
|
2850
|
+
</ul>
|
2851
|
+
</pre>
|
2852
|
+
</div>
|
2853
|
+
<div class="span4">
|
2854
|
+
<h3>Example with icons</h3>
|
2855
|
+
<p>Same example, but with <code><i></code> tags for icons.</p>
|
2856
|
+
<div class="well" style="padding: 8px 0;">
|
2857
|
+
<ul class="nav nav-list">
|
2858
|
+
<li class="nav-header">List header</li>
|
2859
|
+
<li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
|
2860
|
+
<li><a href="#"><i class="icon-book"></i> Library</a></li>
|
2861
|
+
<li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
|
2862
|
+
<li class="nav-header">Another list header</li>
|
2863
|
+
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
2864
|
+
<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
|
2865
|
+
<li><a href="#"><i class="icon-flag"></i> Help</a></li>
|
2866
|
+
</ul>
|
2867
|
+
</div> <!-- /well -->
|
2868
|
+
<pre class="prettyprint linenums">
|
2869
|
+
<ul class="nav nav-list">
|
2870
|
+
...
|
2871
|
+
<li>
|
2872
|
+
<a href="#">
|
2873
|
+
<i class="icon-book"></i>
|
2874
|
+
Library
|
2875
|
+
</a>
|
2876
|
+
</li>
|
2877
|
+
...
|
2878
|
+
</ul>
|
2879
|
+
</pre>
|
2880
|
+
</div>
|
2881
|
+
</div>
|
2882
|
+
|
2883
|
+
|
2884
|
+
<h2>Tabbable nav <small>Bring tabs to life via javascript</small></h2>
|
2885
|
+
<div class="row">
|
2886
|
+
<div class="span4">
|
2887
|
+
<h3>What's included</h3>
|
2888
|
+
<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>
|
2889
|
+
<p>Changing between them is easy and only requires changing very little markup.</p>
|
2890
|
+
</div>
|
2891
|
+
<div class="span4">
|
2892
|
+
<h3>Tabbable example</h3>
|
2893
|
+
<p>To make tabs tabbable, wrap the <code>.nav-tabs</code> in another div with class <code>.tabbable</code>.</p>
|
2894
|
+
<div class="tabbable" style="margin-bottom: 9px;">
|
2895
|
+
<ul class="nav nav-tabs">
|
2896
|
+
<li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
|
2897
|
+
<li><a href="#2" data-toggle="tab">Section 2</a></li>
|
2898
|
+
<li><a href="#3" data-toggle="tab">Section 3</a></li>
|
2899
|
+
</ul>
|
2900
|
+
<div class="tab-content">
|
2901
|
+
<div class="tab-pane active" id="1">
|
2902
|
+
<p>I'm in Section 1.</p>
|
2903
|
+
</div>
|
2904
|
+
<div class="tab-pane" id="2">
|
2905
|
+
<p>Howdy, I'm in Section 2.</p>
|
2906
|
+
</div>
|
2907
|
+
<div class="tab-pane" id="3">
|
2908
|
+
<p>What up girl, this is Section 3.</p>
|
2909
|
+
</div>
|
2910
|
+
</div>
|
2911
|
+
</div> <!-- /tabbable -->
|
2912
|
+
</div>
|
2913
|
+
<div class="span4">
|
2914
|
+
<h3>Custom jQuery plugin</h3>
|
2915
|
+
<p>All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.</p>
|
2916
|
+
<p><a class="btn" href="./javascript.html/#tabs">Get the javascript →</a></p>
|
2917
|
+
</div>
|
2918
|
+
</div>
|
2919
|
+
|
2920
|
+
<h3>Straightforward markup</h3>
|
2921
|
+
<p>Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.</p>
|
2922
|
+
<pre class="prettyprint linenums">
|
2923
|
+
<div class="tabbable">
|
2924
|
+
<ul class="nav nav-tabs">
|
2925
|
+
<li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
|
2926
|
+
<li><a href="#2" data-toggle="tab">Section 2</a></li>
|
2927
|
+
</ul>
|
2928
|
+
<div class="tab-content">
|
2929
|
+
<div class="tab-pane active" id="1">
|
2930
|
+
<p>I'm in Section 1.</p>
|
2931
|
+
</div>
|
2932
|
+
<div class="tab-pane" id="2">
|
2933
|
+
<p>Howdy, I'm in Section 2.</p>
|
2934
|
+
</div>
|
2935
|
+
</div>
|
2936
|
+
</div>
|
2937
|
+
</pre>
|
2938
|
+
|
2939
|
+
<h3>Tabbable in any direction</h3>
|
2940
|
+
<div class="row">
|
2941
|
+
<div class="span4">
|
2942
|
+
<h4>Tabs on the bottom</h4>
|
2943
|
+
<p>Flip the order of the HTML and add a class to put tabs on the bottom.</p>
|
2944
|
+
<div class="tabbable tabs-below">
|
2945
|
+
<div class="tab-content">
|
2946
|
+
<div class="tab-pane active" id="A">
|
2947
|
+
<p>I'm in Section A.</p>
|
2948
|
+
</div>
|
2949
|
+
<div class="tab-pane" id="B">
|
2950
|
+
<p>Howdy, I'm in Section B.</p>
|
2951
|
+
</div>
|
2952
|
+
<div class="tab-pane" id="C">
|
2953
|
+
<p>What up girl, this is Section C.</p>
|
2954
|
+
</div>
|
2955
|
+
</div>
|
2956
|
+
<ul class="nav nav-tabs">
|
2957
|
+
<li class="active"><a href="#A" data-toggle="tab">Section 1</a></li>
|
2958
|
+
<li><a href="#B" data-toggle="tab">Section 2</a></li>
|
2959
|
+
<li><a href="#C" data-toggle="tab">Section 3</a></li>
|
2960
|
+
</ul>
|
2961
|
+
</div> <!-- /tabbable -->
|
2962
|
+
<pre class="prettyprint linenums" style="margin-top: 11px;">
|
2963
|
+
<div class="tabbable tabs-below">
|
2964
|
+
<div class="tab-content">
|
2965
|
+
...
|
2966
|
+
</div>
|
2967
|
+
<ul class="nav nav-tabs">
|
2968
|
+
...
|
2969
|
+
</ul>
|
2970
|
+
</div>
|
2971
|
+
</pre>
|
2972
|
+
</div>
|
2973
|
+
<div class="span4">
|
2974
|
+
<h4>Tabs on the left</h4>
|
2975
|
+
<p>Swap the class to put tabs on the left.</p>
|
2976
|
+
<div class="tabbable tabs-left">
|
2977
|
+
<ul class="nav nav-tabs">
|
2978
|
+
<li class="active"><a href="#lA" data-toggle="tab">Section 1</a></li>
|
2979
|
+
<li><a href="#lB" data-toggle="tab">Section 2</a></li>
|
2980
|
+
<li><a href="#lC" data-toggle="tab">Section 3</a></li>
|
2981
|
+
</ul>
|
2982
|
+
<div class="tab-content">
|
2983
|
+
<div class="tab-pane active" id="lA">
|
2984
|
+
<p>I'm in Section A.</p>
|
2985
|
+
</div>
|
2986
|
+
<div class="tab-pane" id="lB">
|
2987
|
+
<p>Howdy, I'm in Section B.</p>
|
2988
|
+
</div>
|
2989
|
+
<div class="tab-pane" id="lC">
|
2990
|
+
<p>What up girl, this is Section C.</p>
|
2991
|
+
</div>
|
2992
|
+
</div>
|
2993
|
+
</div> <!-- /tabbable -->
|
2994
|
+
<pre class="prettyprint linenums">
|
2995
|
+
<div class="tabbable tabs-left">
|
2996
|
+
<ul class="nav nav-tabs">
|
2997
|
+
...
|
2998
|
+
</ul>
|
2999
|
+
<div class="tab-content">
|
3000
|
+
...
|
3001
|
+
</div>
|
3002
|
+
</div>
|
3003
|
+
</pre>
|
3004
|
+
</div>
|
3005
|
+
<div class="span4">
|
3006
|
+
<h4>Tabs on the right</h4>
|
3007
|
+
<p>Swap the class to put tabs on the right.</p>
|
3008
|
+
<div class="tabbable tabs-right">
|
3009
|
+
<ul class="nav nav-tabs">
|
3010
|
+
<li class="active"><a href="#rA" data-toggle="tab">Section 1</a></li>
|
3011
|
+
<li><a href="#rB" data-toggle="tab">Section 2</a></li>
|
3012
|
+
<li><a href="#rC" data-toggle="tab">Section 3</a></li>
|
3013
|
+
</ul>
|
3014
|
+
<div class="tab-content">
|
3015
|
+
<div class="tab-pane active" id="rA">
|
3016
|
+
<p>I'm in Section A.</p>
|
3017
|
+
</div>
|
3018
|
+
<div class="tab-pane" id="rB">
|
3019
|
+
<p>Howdy, I'm in Section B.</p>
|
3020
|
+
</div>
|
3021
|
+
<div class="tab-pane" id="rC">
|
3022
|
+
<p>What up girl, this is Section C.</p>
|
3023
|
+
</div>
|
3024
|
+
</div>
|
3025
|
+
</div> <!-- /tabbable -->
|
3026
|
+
<pre class="prettyprint linenums">
|
3027
|
+
<div class="tabbable tabs-right">
|
3028
|
+
<ul class="nav nav-tabs">
|
3029
|
+
...
|
3030
|
+
</ul>
|
3031
|
+
<div class="tab-content">
|
3032
|
+
...
|
3033
|
+
</div>
|
3034
|
+
</div>
|
3035
|
+
</pre>
|
3036
|
+
</div>
|
3037
|
+
</div>
|
3038
|
+
|
3039
|
+
</section>
|
3040
|
+
|
3041
|
+
|
3042
|
+
<!-- Pagination
|
3043
|
+
================================================== -->
|
3044
|
+
<section id="pagination">
|
3045
|
+
<div class="page-header">
|
3046
|
+
<h1>Pagination <small>Two options for paging through content</small></h1>
|
3047
|
+
</div>
|
3048
|
+
|
3049
|
+
<h2>Multicon-page pagination</h2>
|
3050
|
+
<div class="row">
|
3051
|
+
<div class="span4">
|
3052
|
+
<h3>When to use</h3>
|
3053
|
+
<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>
|
3054
|
+
<h3>Stateful page links</h3>
|
3055
|
+
<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>
|
3056
|
+
<h3>Flexible alignment</h3>
|
3057
|
+
<p>Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
|
3058
|
+
</div>
|
3059
|
+
<div class="span4">
|
3060
|
+
<h3>Examples</h3>
|
3061
|
+
<p>The default pagination component is flexible and works in a number of variations.</p>
|
3062
|
+
<div class="pagination">
|
3063
|
+
<ul>
|
3064
|
+
<li class="disabled"><a href="#">«</a></li>
|
3065
|
+
<li class="active"><a href="#">1</a></li>
|
3066
|
+
<li><a href="#">2</a></li>
|
3067
|
+
<li><a href="#">3</a></li>
|
3068
|
+
<li><a href="#">4</a></li>
|
3069
|
+
<li><a href="#">»</a></li>
|
3070
|
+
</ul>
|
3071
|
+
</div>
|
3072
|
+
<div class="pagination">
|
3073
|
+
<ul>
|
3074
|
+
<li><a href="#">«</a></li>
|
3075
|
+
<li><a href="#">10</a></li>
|
3076
|
+
<li class="active"><a href="#">11</a></li>
|
3077
|
+
<li><a href="#">12</a></li>
|
3078
|
+
<li><a href="#">»</a></li>
|
3079
|
+
</ul>
|
3080
|
+
</div>
|
3081
|
+
<div class="pagination">
|
3082
|
+
<ul>
|
3083
|
+
<li><a href="#">←</a></li>
|
3084
|
+
<li class="active"><a href="#">10</a></li>
|
3085
|
+
<li class="disabled"><a href="#">...</a></li>
|
3086
|
+
<li><a href="#">20</a></li>
|
3087
|
+
<li><a href="#">→</a></li>
|
3088
|
+
</ul>
|
3089
|
+
</div>
|
3090
|
+
<div class="pagination pagination-centered">
|
3091
|
+
<ul>
|
3092
|
+
<li class="active"><a href="#">1</a></li>
|
3093
|
+
<li><a href="#">2</a></li>
|
3094
|
+
<li><a href="#">3</a></li>
|
3095
|
+
<li><a href="#">4</a></li>
|
3096
|
+
<li><a href="#">5</a></li>
|
3097
|
+
</ul>
|
3098
|
+
</div>
|
3099
|
+
</div>
|
3100
|
+
<div class="span4">
|
3101
|
+
<h3>Markup</h3>
|
3102
|
+
<p>Wrapped in a <code><div></code>, pagination is just a <code><ul></code>.</p>
|
3103
|
+
<pre class="prettyprint linenums">
|
3104
|
+
<div class="pagination">
|
3105
|
+
<ul>
|
3106
|
+
<li><a href="#">Prev</a></li>
|
3107
|
+
<li class="active">
|
3108
|
+
<a href="#">1</a>
|
3109
|
+
</li>
|
3110
|
+
<li><a href="#">2</a></li>
|
3111
|
+
<li><a href="#">3</a></li>
|
3112
|
+
<li><a href="#">4</a></li>
|
3113
|
+
<li><a href="#">Next</a></li>
|
3114
|
+
</ul>
|
3115
|
+
</div>
|
3116
|
+
</pre>
|
3117
|
+
</div>
|
3118
|
+
</div><!-- /row -->
|
3119
|
+
|
3120
|
+
<h2>Pager <small>For quick previous and next links</small></h2>
|
3121
|
+
<div class="row">
|
3122
|
+
<div class="span4">
|
3123
|
+
<h3>About pager</h3>
|
3124
|
+
<p>The pager component is a set of links for simple pagination implemenations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.</p>
|
3125
|
+
</div>
|
3126
|
+
<div class="span4">
|
3127
|
+
<h3>Default example</h3>
|
3128
|
+
<p>By default, the pager centers links.</p>
|
3129
|
+
<ul class="pager">
|
3130
|
+
<li><a href="#">Previous</a></li>
|
3131
|
+
<li><a href="#">Next</a></li>
|
3132
|
+
</ul>
|
3133
|
+
<pre class="prettyprint linenums">
|
3134
|
+
<ul class="pager">
|
3135
|
+
<li>
|
3136
|
+
<a href="#">Previous</a>
|
3137
|
+
</li>
|
3138
|
+
<li>
|
3139
|
+
<a href="#">Next</a>
|
3140
|
+
</li>
|
3141
|
+
</ul>
|
3142
|
+
</pre>
|
3143
|
+
</div>
|
3144
|
+
<div class="span4">
|
3145
|
+
<h3>Aligned links</h3>
|
3146
|
+
<p>Alternatively, you can align each link to the sides:</p>
|
3147
|
+
<ul class="pager">
|
3148
|
+
<li class="previous"><a href="#">← Older</a></li>
|
3149
|
+
<li class="next"><a href="#">Newer →</a></li>
|
3150
|
+
</ul>
|
3151
|
+
<pre class="prettyprint linenums">
|
3152
|
+
<ul class="pager">
|
3153
|
+
<li class="previous">
|
3154
|
+
<a href="#">&larr; Older</a>
|
3155
|
+
</li>
|
3156
|
+
<li class="next">
|
3157
|
+
<a href="#">Newer &rarr;</a>
|
3158
|
+
</li>
|
3159
|
+
</ul>
|
3160
|
+
</pre>
|
3161
|
+
</div>
|
3162
|
+
</div><!-- /row -->
|
3163
|
+
</section>
|
3164
|
+
|
3165
|
+
|
3166
|
+
|
3167
|
+
<!-- Labels
|
3168
|
+
================================================== -->
|
3169
|
+
<section id="labels">
|
3170
|
+
<div class="page-header">
|
3171
|
+
<h1>Inline labels <small>Label and annotate text</small></h1>
|
3172
|
+
</div>
|
3173
|
+
<table class="table table-bordered table-striped">
|
3174
|
+
<thead>
|
3175
|
+
<tr>
|
3176
|
+
<th>Labels</th>
|
3177
|
+
<th>Markup</th>
|
3178
|
+
</tr>
|
3179
|
+
</thead>
|
3180
|
+
<tbody>
|
3181
|
+
<tr>
|
3182
|
+
<td>
|
3183
|
+
<span class="label">Default</span>
|
3184
|
+
</td>
|
3185
|
+
<td>
|
3186
|
+
<code><span class="label">Default</span></code>
|
3187
|
+
</td>
|
3188
|
+
</tr>
|
3189
|
+
<tr>
|
3190
|
+
<td>
|
3191
|
+
<span class="label label-success">New</span>
|
3192
|
+
</td>
|
3193
|
+
<td>
|
3194
|
+
<code><span class="label label-success">New</span></code>
|
3195
|
+
</td>
|
3196
|
+
</tr>
|
3197
|
+
<tr>
|
3198
|
+
<td>
|
3199
|
+
<span class="label label-warning">Warning</span>
|
3200
|
+
</td>
|
3201
|
+
<td>
|
3202
|
+
<code><span class="label label-warning">Warning</span></code>
|
3203
|
+
</td>
|
3204
|
+
</tr>
|
3205
|
+
<tr>
|
3206
|
+
<td>
|
3207
|
+
<span class="label label-important">Important</span>
|
3208
|
+
</td>
|
3209
|
+
<td>
|
3210
|
+
<code><span class="label label-important">Important</span></code>
|
3211
|
+
</td>
|
3212
|
+
</tr>
|
3213
|
+
<tr>
|
3214
|
+
<td>
|
3215
|
+
<span class="label label-info">Info</span>
|
3216
|
+
</td>
|
3217
|
+
<td>
|
3218
|
+
<code><span class="label label-info">Info</span></code>
|
3219
|
+
</td>
|
3220
|
+
</tr>
|
3221
|
+
</tbody>
|
3222
|
+
</table>
|
3223
|
+
</section>
|
3224
|
+
|
3225
|
+
|
3226
|
+
|
3227
|
+
<!-- Thumbnails
|
3228
|
+
================================================== -->
|
3229
|
+
<section id="thumbnails">
|
3230
|
+
<div class="page-header">
|
3231
|
+
<h1>Thumbnails <small>Grids of images, videos, text, and more</small></h1>
|
3232
|
+
</div>
|
3233
|
+
|
3234
|
+
<div class="row">
|
3235
|
+
<div class="span6">
|
3236
|
+
<h2>Default thumbnails</h2>
|
3237
|
+
<p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
|
3238
|
+
<ul class="thumbnails">
|
3239
|
+
<li class="span3">
|
3240
|
+
<a href="#" class="thumbnail">
|
3241
|
+
<img src="http://placehold.it/260x180" alt="">
|
3242
|
+
</a>
|
3243
|
+
</li>
|
3244
|
+
<li class="span3">
|
3245
|
+
<a href="#" class="thumbnail">
|
3246
|
+
<img src="http://placehold.it/260x180" alt="">
|
3247
|
+
</a>
|
3248
|
+
</li>
|
3249
|
+
<li class="span3">
|
3250
|
+
<a href="#" class="thumbnail">
|
3251
|
+
<img src="http://placehold.it/260x180" alt="">
|
3252
|
+
</a>
|
3253
|
+
</li>
|
3254
|
+
<li class="span3">
|
3255
|
+
<a href="#" class="thumbnail">
|
3256
|
+
<img src="http://placehold.it/260x180" alt="">
|
3257
|
+
</a>
|
3258
|
+
</li>
|
3259
|
+
</ul>
|
3260
|
+
</div>
|
3261
|
+
<div class="span6">
|
3262
|
+
<h2>Highly customizable</h2>
|
3263
|
+
<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>
|
3264
|
+
<ul class="thumbnails">
|
3265
|
+
<li class="span3">
|
3266
|
+
<div class="thumbnail">
|
3267
|
+
<img src="http://placehold.it/260x180" alt="">
|
3268
|
+
<div class="caption">
|
3269
|
+
<h5>Thumbnail label</h5>
|
3270
|
+
<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>
|
3271
|
+
<p><a href="#" class="btn primary">Action</a> <a href="#" class="btn">Action</a></p>
|
3272
|
+
</div>
|
3273
|
+
</div>
|
3274
|
+
</li>
|
3275
|
+
<li class="span3">
|
3276
|
+
<div class="thumbnail">
|
3277
|
+
<img src="http://placehold.it/260x180" alt="">
|
3278
|
+
<div class="caption">
|
3279
|
+
<h5>Thumbnail label</h5>
|
3280
|
+
<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>
|
3281
|
+
<p><a href="#" class="btn primary">Action</a> <a href="#" class="btn">Action</a></p>
|
3282
|
+
</div>
|
3283
|
+
</div>
|
3284
|
+
</li>
|
3285
|
+
</ul>
|
3286
|
+
</div>
|
3287
|
+
</div>
|
3288
|
+
|
3289
|
+
<div class="row">
|
3290
|
+
<div class="span4">
|
3291
|
+
<h3>Why use thumbnails</h3>
|
3292
|
+
<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>
|
3293
|
+
</div>
|
3294
|
+
<div class="span4">
|
3295
|
+
<h3>Simple, flexible markup</h3>
|
3296
|
+
<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>
|
3297
|
+
</div>
|
3298
|
+
<div class="span4">
|
3299
|
+
<h3>Uses grid column sizes</h3>
|
3300
|
+
<p>Lastly, the thumbnails component uses existing grid system classes—like <code>.span2</code> or <code>.span3</code>—for control of thumbnail dimensions.</p>
|
3301
|
+
</div>
|
3302
|
+
</div>
|
3303
|
+
|
3304
|
+
<div class="row">
|
3305
|
+
<div class="span6">
|
3306
|
+
<h2>The markup</h2>
|
3307
|
+
<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>
|
3308
|
+
<pre class="prettyprint linenums">
|
3309
|
+
<ul class="thumbnails">
|
3310
|
+
<li class="span3">
|
3311
|
+
<a href="#" class="thumbnail">
|
3312
|
+
<img src="http://placehold.it/260x180" alt="">
|
3313
|
+
</a>
|
3314
|
+
</li>
|
3315
|
+
...
|
3316
|
+
</ul>
|
3317
|
+
</pre>
|
3318
|
+
<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>
|
3319
|
+
<pre class="prettyprint linenums">
|
3320
|
+
<ul class="thumbnails">
|
3321
|
+
<li class="span3">
|
3322
|
+
<div class="thumbnail">
|
3323
|
+
<img src="http://placehold.it/260x180" alt="">
|
3324
|
+
<h5>Thumbnail label</h5>
|
3325
|
+
<p>Thumbnail caption right here...</p>
|
3326
|
+
</div>
|
3327
|
+
</li>
|
3328
|
+
...
|
3329
|
+
</ul>
|
3330
|
+
</pre>
|
3331
|
+
</div>
|
3332
|
+
<div class="span6">
|
3333
|
+
<h2>More examples</h2>
|
3334
|
+
<p>Explore all your options with the various grid classes available to you. You can also mix and match different sizes.</p>
|
3335
|
+
<ul class="thumbnails">
|
3336
|
+
<li class="span4">
|
3337
|
+
<a href="#" class="thumbnail">
|
3338
|
+
<img src="http://placehold.it/360x268" alt="">
|
3339
|
+
</a>
|
3340
|
+
</li>
|
3341
|
+
<li class="span2">
|
3342
|
+
<a href="#" class="thumbnail">
|
3343
|
+
<img src="http://placehold.it/160x120" alt="">
|
3344
|
+
</a>
|
3345
|
+
</li>
|
3346
|
+
<li class="span2">
|
3347
|
+
<a href="#" class="thumbnail">
|
3348
|
+
<img src="http://placehold.it/160x120" alt="">
|
3349
|
+
</a>
|
3350
|
+
</li>
|
3351
|
+
<li class="span2">
|
3352
|
+
<a href="#" class="thumbnail">
|
3353
|
+
<img src="http://placehold.it/160x120" alt="">
|
3354
|
+
</a>
|
3355
|
+
</li>
|
3356
|
+
<li class="span2">
|
3357
|
+
<a href="#" class="thumbnail">
|
3358
|
+
<img src="http://placehold.it/160x120" alt="">
|
3359
|
+
</a>
|
3360
|
+
</li>
|
3361
|
+
<li class="span2">
|
3362
|
+
<a href="#" class="thumbnail">
|
3363
|
+
<img src="http://placehold.it/160x120" alt="">
|
3364
|
+
</a>
|
3365
|
+
</li>
|
3366
|
+
</ul>
|
3367
|
+
</div>
|
3368
|
+
</div>
|
3369
|
+
|
3370
|
+
</section>
|
3371
|
+
|
3372
|
+
|
3373
|
+
|
3374
|
+
<!-- Alerts & Messages
|
3375
|
+
================================================== -->
|
3376
|
+
<section id="alerts">
|
3377
|
+
<div class="page-header">
|
3378
|
+
<h1>Alerts <small>Styles for success, warning, and error messages</small></h1>
|
3379
|
+
</div>
|
3380
|
+
|
3381
|
+
<h2>Lightweight defaults</h2>
|
3382
|
+
<div class="row">
|
3383
|
+
<div class="span4">
|
3384
|
+
<h3>Rewritten base class</h3>
|
3385
|
+
<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 outter <code><div></code>.</p>
|
3386
|
+
<h3>Single alert message</h3>
|
3387
|
+
<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>
|
3388
|
+
<hr>
|
3389
|
+
<h3>Goes great with javascript</h3>
|
3390
|
+
<p>Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.</p>
|
3391
|
+
<p><a class="btn js-btn" href="./javascript.html#alerts">Get the plugin »</a></p>
|
3392
|
+
</div>
|
3393
|
+
<div class="span8">
|
3394
|
+
<h3>Example alerts</h3>
|
3395
|
+
<p>Wrap your message and an optional close icon in a div with simple class.</p>
|
3396
|
+
<div class="alert">
|
3397
|
+
<a class="close">×</a>
|
3398
|
+
<strong>Warning!</strong> Best check yo self, you’re not looking too good.
|
3399
|
+
</div>
|
3400
|
+
<pre class="prettyprint linenums">
|
3401
|
+
<div class="alert">
|
3402
|
+
<a class="close">×</a>
|
3403
|
+
<strong>Warning!</strong> Best check yo self, you’re not looking too good.
|
3404
|
+
</div>
|
3405
|
+
</pre>
|
3406
|
+
<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>
|
3407
|
+
<div class="alert alert-block">
|
3408
|
+
<a class="close">×</a>
|
3409
|
+
<h4 class="alert-heading">Warning!</h4>
|
3410
|
+
<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>
|
3411
|
+
</div>
|
3412
|
+
<pre class="prettyprint linenums">
|
3413
|
+
<div class="alert alert-block">
|
3414
|
+
<a class="close">×</a>
|
3415
|
+
<h4 class="alert-heading">Warning!</h4>
|
3416
|
+
Best check yo self, you’re not...
|
3417
|
+
</div>
|
3418
|
+
</pre>
|
3419
|
+
</div>
|
3420
|
+
</div>
|
3421
|
+
|
3422
|
+
<h2>Contextual alternatives <small>Add optional classes to change an alert's connotation</small></h2>
|
3423
|
+
<div class="row">
|
3424
|
+
<div class="span4">
|
3425
|
+
<h3>Error or danger</h3>
|
3426
|
+
<div class="alert alert-error">
|
3427
|
+
<a class="close">×</a>
|
3428
|
+
<strong>Oh snap!</strong> Change a few things up and try submitting again.
|
3429
|
+
</div>
|
3430
|
+
<pre class="prettyprint linenums">
|
3431
|
+
<div class="alert alert-error">
|
3432
|
+
...
|
3433
|
+
</div>
|
3434
|
+
</pre>
|
3435
|
+
</div>
|
3436
|
+
<div class="span4">
|
3437
|
+
<h3>Success</h3>
|
3438
|
+
<div class="alert alert-success">
|
3439
|
+
<a class="close">×</a>
|
3440
|
+
<strong>Well done!</strong> You successfully read this important alert message.
|
3441
|
+
</div>
|
3442
|
+
<pre class="prettyprint linenums">
|
3443
|
+
<div class="alert alert-success">
|
3444
|
+
...
|
3445
|
+
</div>
|
3446
|
+
</pre>
|
3447
|
+
</div>
|
3448
|
+
<div class="span4">
|
3449
|
+
<h3>Information</h3>
|
3450
|
+
<div class="alert alert-info">
|
3451
|
+
<a class="close">×</a>
|
3452
|
+
<strong>Heads up!</strong> This alert needs your attention, but it’s not super important.
|
3453
|
+
</div>
|
3454
|
+
<pre class="prettyprint linenums">
|
3455
|
+
<div class="alert alert-info">
|
3456
|
+
...
|
3457
|
+
</div>
|
3458
|
+
</pre>
|
3459
|
+
</div>
|
3460
|
+
</div>
|
3461
|
+
|
3462
|
+
</section>
|
3463
|
+
|
3464
|
+
|
3465
|
+
|
3466
|
+
<!-- Progress bars
|
3467
|
+
================================================== -->
|
3468
|
+
<section id="progress">
|
3469
|
+
<div class="page-header">
|
3470
|
+
<h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
|
3471
|
+
</div>
|
3472
|
+
|
3473
|
+
<h2>Examples and markup</h2>
|
3474
|
+
<div class="row">
|
3475
|
+
<div class="span4">
|
3476
|
+
<h3>Basic</h3>
|
3477
|
+
<p>Default progress bar with a vertical gradient.</p>
|
3478
|
+
<div class="progress">
|
3479
|
+
<div class="bar" style="width: 60%;"></div>
|
3480
|
+
</div>
|
3481
|
+
<pre class="prettyprint linenums">
|
3482
|
+
<div class="progress">
|
3483
|
+
<div class="bar"
|
3484
|
+
style="width: 60%;"></div>
|
3485
|
+
</div>
|
3486
|
+
</pre>
|
3487
|
+
</div>
|
3488
|
+
<div class="span4">
|
3489
|
+
<h3>Striped</h3>
|
3490
|
+
<p>Uses a gradient to create a striped effect.</p>
|
3491
|
+
<div class="progress progress-info progress-striped">
|
3492
|
+
<div class="bar" style="width: 20%;"></div>
|
3493
|
+
</div>
|
3494
|
+
<pre class="prettyprint linenums">
|
3495
|
+
<div class="progress progress-info
|
3496
|
+
progress-striped">
|
3497
|
+
<div class="bar"
|
3498
|
+
style="width: 20%;"></div>
|
3499
|
+
</div>
|
3500
|
+
</pre>
|
3501
|
+
</div>
|
3502
|
+
<div class="span4">
|
3503
|
+
<h3>Animated</h3>
|
3504
|
+
<p>Takes the striped example and animates it.</p>
|
3505
|
+
<div class="progress progress-danger progress-striped active">
|
3506
|
+
<div class="bar" style="width: 45%"></div>
|
3507
|
+
</div>
|
3508
|
+
<pre class="prettyprint linenums">
|
3509
|
+
<div class="progress progress-danger
|
3510
|
+
progress-striped active">
|
3511
|
+
<div class="bar"
|
3512
|
+
style="width: 40%;"></div>
|
3513
|
+
</div>
|
3514
|
+
</pre>
|
3515
|
+
</div>
|
3516
|
+
</div>
|
3517
|
+
|
3518
|
+
<h2>Options and browser support</h2>
|
3519
|
+
<div class="row">
|
3520
|
+
<div class="span4">
|
3521
|
+
<h3>Additional colors</h3>
|
3522
|
+
<p>Progress bars utilize some of the same class names as buttons and alerts for similar styling.</p>
|
3523
|
+
<ul>
|
3524
|
+
<li><code>.progress-info</code></li>
|
3525
|
+
<li><code>.progress-success</code></li>
|
3526
|
+
<li><code>.progress-danger</code></li>
|
3527
|
+
</ul>
|
3528
|
+
<p>Alternatively, you can customize the LESS files and roll your own colors and sizes.</p>
|
3529
|
+
</div>
|
3530
|
+
<div class="span4">
|
3531
|
+
<h3>Behavior</h3>
|
3532
|
+
<p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
|
3533
|
+
<p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
|
3534
|
+
</div>
|
3535
|
+
<div class="span4">
|
3536
|
+
<h3>Browser support</h3>
|
3537
|
+
<p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.</p>
|
3538
|
+
<p>Opera does not support animations at this time.</p>
|
3539
|
+
</div>
|
3540
|
+
</div>
|
3541
|
+
|
3542
|
+
</section>
|