style-guide 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.env +1 -0
- data/.travis.yml +1 -0
- data/Guardfile +2 -0
- data/Procfile +1 -0
- data/app/assets/stylesheets/style_guide/example.css +39 -11
- data/app/assets/stylesheets/style_guide/header.css +8 -2
- data/app/assets/stylesheets/style_guide/layout.css +34 -9
- data/app/assets/stylesheets/style_guide/navbar.css +2 -1
- data/app/assets/stylesheets/style_guide/sidebar.css +6 -1
- data/app/views/style_guide/buttons/_disabled_anchor.erb +2 -0
- data/app/views/style_guide/buttons/_disabled_element.erb +2 -0
- data/app/views/style_guide/buttons/_sizes.erb +4 -0
- data/app/views/style_guide/buttons/_types.erb +8 -0
- data/app/views/style_guide/{bootstrap_base/_form_controls:_checkbox_and_radio.erb → forms/_controls:_checkbox_and_radio.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_form_controls:_input.erb → forms/_controls:_input.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_form_controls:_select.erb → forms/_controls:_select.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_form_controls:_textarea.erb → forms/_controls:_textarea.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_forms:_default_styles.erb → forms/_default_styles.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_forms:_horizontal.erb → forms/_horizontal.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_forms:_inline.erb → forms/_inline.erb} +0 -0
- data/app/views/style_guide/{bootstrap_base/_forms:_search.erb → forms/_search.erb} +0 -0
- data/app/views/style_guide/images/_dropdown_icons.erb +9 -0
- data/app/views/style_guide/images/_form_fields.erb +10 -0
- data/app/views/style_guide/images/_icon_buttons.erb +4 -0
- data/app/views/style_guide/images/_navigation.erb +8 -0
- data/app/views/style_guide/images/_placeholders.erb +3 -0
- data/app/views/style_guide/images/_small_button.erb +1 -0
- data/app/views/style_guide/style/_example.erb +12 -5
- data/app/views/style_guide/style/_sidebar.erb +7 -5
- data/app/views/style_guide/style/show.html.erb +1 -3
- data/app/views/style_guide/tables/_bordered.erb +34 -0
- data/app/views/style_guide/tables/_condensed.erb +29 -0
- data/app/views/style_guide/tables/_default_style.erb +24 -0
- data/app/views/style_guide/tables/_hover.erb +29 -0
- data/app/views/style_guide/tables/_row_classes.erb +36 -0
- data/app/views/style_guide/tables/_striped.erb +30 -0
- data/app/views/style_guide/typography/_abbreviation.erb +4 -0
- data/app/views/style_guide/typography/_address.erb +10 -0
- data/app/views/style_guide/typography/_blockquote.erb +14 -0
- data/app/views/style_guide/typography/_body_copy.erb +12 -0
- data/app/views/style_guide/{bootstrap_base/_code:_blocks.erb → typography/_code.erb} +3 -0
- data/app/views/style_guide/typography/_description_list.erb +17 -0
- data/app/views/style_guide/typography/_emphasis.erb +5 -0
- data/app/views/style_guide/typography/_emphasis_classes.erb +5 -0
- data/app/views/style_guide/typography/_headings.erb +6 -0
- data/app/views/style_guide/typography/_ordered_list.erb +4 -0
- data/app/views/style_guide/typography/_unordered_list.erb +15 -0
- data/config/locales/en.yml +88 -36
- data/lib/style_guide/config.rb +18 -2
- data/lib/style_guide/partial.rb +40 -3
- data/lib/style_guide/section.rb +1 -1
- data/lib/style_guide/version.rb +1 -1
- data/spec/dummy/app/assets/stylesheets/swatches.css +0 -1
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/development.rb +2 -0
- data/spec/lib/style_guide/config_spec.rb +18 -3
- data/spec/lib/style_guide/partial_spec.rb +49 -1
- data/style-guide.gemspec +5 -7
- metadata +58 -56
- data/Gemfile.lock +0 -159
- data/app/views/style_guide/bootstrap_base/_button:_disabled_anchor.erb +0 -2
- data/app/views/style_guide/bootstrap_base/_button:_disabled_element.erb +0 -2
- data/app/views/style_guide/bootstrap_base/_button_sizes.erb +0 -16
- data/app/views/style_guide/bootstrap_base/_button_types.erb +0 -51
- data/app/views/style_guide/bootstrap_base/_code:_inline.erb +0 -1
- data/app/views/style_guide/bootstrap_base/_images.erb +0 -136
- data/app/views/style_guide/bootstrap_base/_tables.erb +0 -409
- data/app/views/style_guide/bootstrap_base/_typography.erb +0 -331
@@ -1,16 +0,0 @@
|
|
1
|
-
<p>
|
2
|
-
<button type="button" class="btn btn-large btn-primary">Large button</button>
|
3
|
-
<button type="button" class="btn btn-large">Large button</button>
|
4
|
-
</p>
|
5
|
-
<p>
|
6
|
-
<button type="button" class="btn btn-primary">Default button</button>
|
7
|
-
<button type="button" class="btn">Default button</button>
|
8
|
-
</p>
|
9
|
-
<p>
|
10
|
-
<button type="button" class="btn btn-small btn-primary">Small button</button>
|
11
|
-
<button type="button" class="btn btn-small">Small button</button>
|
12
|
-
</p>
|
13
|
-
<p>
|
14
|
-
<button type="button" class="btn btn-mini btn-primary">Mini button</button>
|
15
|
-
<button type="button" class="btn btn-mini">Mini button</button>
|
16
|
-
</p>
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<table class="table table-bordered table-striped">
|
2
|
-
<thead>
|
3
|
-
<tr>
|
4
|
-
<th>Button</th>
|
5
|
-
<th>class=""</th>
|
6
|
-
<th>Description</th>
|
7
|
-
</tr>
|
8
|
-
</thead>
|
9
|
-
<tbody>
|
10
|
-
<tr>
|
11
|
-
<td><button type="button" class="btn">Default</button></td>
|
12
|
-
<td><code>btn</code></td>
|
13
|
-
<td>Standard gray button with gradient</td>
|
14
|
-
</tr>
|
15
|
-
<tr>
|
16
|
-
<td><button type="button" class="btn btn-primary">Primary</button></td>
|
17
|
-
<td><code>btn btn-primary</code></td>
|
18
|
-
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
|
19
|
-
</tr>
|
20
|
-
<tr>
|
21
|
-
<td><button type="button" class="btn btn-info">Info</button></td>
|
22
|
-
<td><code>btn btn-info</code></td>
|
23
|
-
<td>Used as an alternative to the default styles</td>
|
24
|
-
</tr>
|
25
|
-
<tr>
|
26
|
-
<td><button type="button" class="btn btn-success">Success</button></td>
|
27
|
-
<td><code>btn btn-success</code></td>
|
28
|
-
<td>Indicates a successful or positive action</td>
|
29
|
-
</tr>
|
30
|
-
<tr>
|
31
|
-
<td><button type="button" class="btn btn-warning">Warning</button></td>
|
32
|
-
<td><code>btn btn-warning</code></td>
|
33
|
-
<td>Indicates caution should be taken with this action</td>
|
34
|
-
</tr>
|
35
|
-
<tr>
|
36
|
-
<td><button type="button" class="btn btn-danger">Danger</button></td>
|
37
|
-
<td><code>btn btn-danger</code></td>
|
38
|
-
<td>Indicates a dangerous or potentially negative action</td>
|
39
|
-
</tr>
|
40
|
-
<tr>
|
41
|
-
<td><button type="button" class="btn btn-inverse">Inverse</button></td>
|
42
|
-
<td><code>btn btn-inverse</code></td>
|
43
|
-
<td>Alternate dark gray button, not tied to a semantic action or use</td>
|
44
|
-
</tr>
|
45
|
-
<tr>
|
46
|
-
<td><button type="button" class="btn btn-link">Link</button></td>
|
47
|
-
<td><code>btn btn-link</code></td>
|
48
|
-
<td>Deemphasize a button by making it look like a link while maintaining button behavior</td>
|
49
|
-
</tr>
|
50
|
-
</tbody>
|
51
|
-
</table>
|
@@ -1 +0,0 @@
|
|
1
|
-
Wrap inline snippets of code with <code><code></code>.
|
@@ -1,136 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<!-- Images
|
4
|
-
================================================== -->
|
5
|
-
<section id="images">
|
6
|
-
<div class="page-header">
|
7
|
-
<h1>Images</h1>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<p>Add classes to an <code><img></code> element to easily style images in any project.</p>
|
11
|
-
<div class="bs-docs-example bs-docs-example-images">
|
12
|
-
<img src="http://placehold.it/140x140" class="img-rounded">
|
13
|
-
<img src="http://placehold.it/140x140" class="img-circle">
|
14
|
-
<img src="http://placehold.it/140x140" class="img-polaroid">
|
15
|
-
</div>
|
16
|
-
<pre class="prettyprint linenums">
|
17
|
-
<img src="..." class="img-rounded">
|
18
|
-
<img src="..." class="img-circle">
|
19
|
-
<img src="..." class="img-polaroid">
|
20
|
-
</pre>
|
21
|
-
<p><span class="label label-info">Heads up!</span> <code>.img-rounded</code> and <code>.img-circle</code> do not work in IE7-8 due to lack of <code>border-radius</code> support.</p>
|
22
|
-
|
23
|
-
|
24
|
-
</section>
|
25
|
-
|
26
|
-
|
27
|
-
<h2>Icon examples</h2>
|
28
|
-
<p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p>
|
29
|
-
|
30
|
-
<h4>Buttons</h4>
|
31
|
-
|
32
|
-
<h5>Button group in a button toolbar</h5>
|
33
|
-
<div class="bs-docs-example">
|
34
|
-
<div class="btn-toolbar">
|
35
|
-
<div class="btn-group">
|
36
|
-
<a class="btn" href="#"><i class="icon-align-left"></i></a>
|
37
|
-
<a class="btn" href="#"><i class="icon-align-center"></i></a>
|
38
|
-
<a class="btn" href="#"><i class="icon-align-right"></i></a>
|
39
|
-
<a class="btn" href="#"><i class="icon-align-justify"></i></a>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
<pre class="prettyprint linenums">
|
44
|
-
<div class="btn-toolbar">
|
45
|
-
<div class="btn-group">
|
46
|
-
|
47
|
-
<a class="btn" href="#"><i class="icon-align-left"></i></a>
|
48
|
-
<a class="btn" href="#"><i class="icon-align-center"></i></a>
|
49
|
-
<a class="btn" href="#"><i class="icon-align-right"></i></a>
|
50
|
-
<a class="btn" href="#"><i class="icon-align-justify"></i></a>
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
</pre>
|
54
|
-
|
55
|
-
<h5>Dropdown in a button group</h5>
|
56
|
-
<div class="bs-docs-example">
|
57
|
-
<div class="btn-group">
|
58
|
-
<a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> User</a>
|
59
|
-
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
60
|
-
<ul class="dropdown-menu">
|
61
|
-
<li><a href="#"><i class="icon-pencil"></i> Edit</a></li>
|
62
|
-
<li><a href="#"><i class="icon-trash"></i> Delete</a></li>
|
63
|
-
<li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li>
|
64
|
-
<li class="divider"></li>
|
65
|
-
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
66
|
-
</ul>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
<pre class="prettyprint linenums">
|
70
|
-
<div class="btn-group">
|
71
|
-
<a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> User</a>
|
72
|
-
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
73
|
-
<ul class="dropdown-menu">
|
74
|
-
<li><a href="#"><i class="icon-pencil"></i> Edit</a></li>
|
75
|
-
<li><a href="#"><i class="icon-trash"></i> Delete</a></li>
|
76
|
-
<li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li>
|
77
|
-
<li class="divider"></li>
|
78
|
-
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
79
|
-
</ul>
|
80
|
-
</div>
|
81
|
-
</pre>
|
82
|
-
|
83
|
-
<h5>Small button</h5>
|
84
|
-
<div class="bs-docs-example">
|
85
|
-
<a class="btn btn-small" href="#"><i class="icon-star"></i></a>
|
86
|
-
</div>
|
87
|
-
<pre class="prettyprint linenums">
|
88
|
-
<a class="btn btn-small" href="#"><i class="icon-star"></i></a>
|
89
|
-
</pre>
|
90
|
-
|
91
|
-
|
92
|
-
<h4>Navigation</h4>
|
93
|
-
<div class="bs-docs-example">
|
94
|
-
<div class="well" style="padding: 8px 0; margin-bottom: 0;">
|
95
|
-
<ul class="nav nav-list">
|
96
|
-
<li class="active"><a href="#"><i class="icon-home icon-white"></i> Home</a></li>
|
97
|
-
<li><a href="#"><i class="icon-book"></i> Library</a></li>
|
98
|
-
<li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
|
99
|
-
<li><a href="#"><i class="i"></i> Misc</a></li>
|
100
|
-
</ul>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
<pre class="prettyprint linenums">
|
104
|
-
<ul class="nav nav-list">
|
105
|
-
<li class="active"><a href="#"><i class="icon-home icon-white"></i> Home</a></li>
|
106
|
-
<li><a href="#"><i class="icon-book"></i> Library</a></li>
|
107
|
-
<li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
|
108
|
-
<li><a href="#"><i class="i"></i> Misc</a></li>
|
109
|
-
</ul>
|
110
|
-
</pre>
|
111
|
-
|
112
|
-
<h4>Form fields</h4>
|
113
|
-
<form class="bs-docs-example form-horizontal">
|
114
|
-
<div class="control-group">
|
115
|
-
<label class="control-label" for="inputIcon">Email address</label>
|
116
|
-
<div class="controls">
|
117
|
-
<div class="input-prepend">
|
118
|
-
<span class="add-on"><i class="icon-envelope"></i></span><input class="span2" id="inputIcon" type="text">
|
119
|
-
</div>
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
</form>
|
123
|
-
<pre class="prettyprint linenums">
|
124
|
-
<div class="control-group">
|
125
|
-
<label class="control-label" for="inputIcon">Email address</label>
|
126
|
-
<div class="controls">
|
127
|
-
<div class="input-prepend">
|
128
|
-
<span class="add-on"><i class="icon-envelope"></i></span>
|
129
|
-
<input class="span2" id="inputIcon" type="text">
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
</pre>
|
134
|
-
|
135
|
-
</section>
|
136
|
-
|
@@ -1,409 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<!-- Tables
|
6
|
-
================================================== -->
|
7
|
-
<section id="tables">
|
8
|
-
<div class="page-header">
|
9
|
-
<h1>Tables</h1>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<h2>Default styles</h2>
|
13
|
-
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.</p>
|
14
|
-
<div class="bs-docs-example">
|
15
|
-
<table class="table">
|
16
|
-
<thead>
|
17
|
-
<tr>
|
18
|
-
<th>#</th>
|
19
|
-
<th>First Name</th>
|
20
|
-
<th>Last Name</th>
|
21
|
-
<th>Username</th>
|
22
|
-
</tr>
|
23
|
-
</thead>
|
24
|
-
<tbody>
|
25
|
-
<tr>
|
26
|
-
<td>1</td>
|
27
|
-
<td>Mark</td>
|
28
|
-
<td>Otto</td>
|
29
|
-
<td>@mdo</td>
|
30
|
-
</tr>
|
31
|
-
<tr>
|
32
|
-
<td>2</td>
|
33
|
-
<td>Jacob</td>
|
34
|
-
<td>Thornton</td>
|
35
|
-
<td>@fat</td>
|
36
|
-
</tr>
|
37
|
-
<tr>
|
38
|
-
<td>3</td>
|
39
|
-
<td>Larry</td>
|
40
|
-
<td>the Bird</td>
|
41
|
-
<td>@twitter</td>
|
42
|
-
</tr>
|
43
|
-
</tbody>
|
44
|
-
</table>
|
45
|
-
</div>
|
46
|
-
<pre class="prettyprint linenums">
|
47
|
-
<table class="table">
|
48
|
-
…
|
49
|
-
</table>
|
50
|
-
</pre>
|
51
|
-
|
52
|
-
|
53
|
-
<hr class="bs-docs-separator">
|
54
|
-
|
55
|
-
|
56
|
-
<h2>Optional classes</h2>
|
57
|
-
<p>Add any of the following classes to the <code>.table</code> base class.</p>
|
58
|
-
|
59
|
-
<h3><code>.table-striped</code></h3>
|
60
|
-
<p>Adds zebra-striping to any table row within the <code><tbody></code> via the <code>:nth-child</code> CSS selector (not available in IE7-IE8).</p>
|
61
|
-
<div class="bs-docs-example">
|
62
|
-
<table class="table table-striped">
|
63
|
-
<thead>
|
64
|
-
<tr>
|
65
|
-
<th>#</th>
|
66
|
-
<th>First Name</th>
|
67
|
-
<th>Last Name</th>
|
68
|
-
<th>Username</th>
|
69
|
-
</tr>
|
70
|
-
</thead>
|
71
|
-
<tbody>
|
72
|
-
<tr>
|
73
|
-
<td>1</td>
|
74
|
-
<td>Mark</td>
|
75
|
-
<td>Otto</td>
|
76
|
-
<td>@mdo</td>
|
77
|
-
</tr>
|
78
|
-
<tr>
|
79
|
-
<td>2</td>
|
80
|
-
<td>Jacob</td>
|
81
|
-
<td>Thornton</td>
|
82
|
-
<td>@fat</td>
|
83
|
-
</tr>
|
84
|
-
<tr>
|
85
|
-
<td>3</td>
|
86
|
-
<td>Larry</td>
|
87
|
-
<td>the Bird</td>
|
88
|
-
<td>@twitter</td>
|
89
|
-
</tr>
|
90
|
-
</tbody>
|
91
|
-
</table>
|
92
|
-
</div>
|
93
|
-
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
94
|
-
<table class="table table-striped">
|
95
|
-
…
|
96
|
-
</table>
|
97
|
-
</pre>
|
98
|
-
|
99
|
-
<h3><code>.table-bordered</code></h3>
|
100
|
-
<p>Add borders and rounded corners to the table.</p>
|
101
|
-
<div class="bs-docs-example">
|
102
|
-
<table class="table table-bordered">
|
103
|
-
<thead>
|
104
|
-
<tr>
|
105
|
-
<th>#</th>
|
106
|
-
<th>First Name</th>
|
107
|
-
<th>Last Name</th>
|
108
|
-
<th>Username</th>
|
109
|
-
</tr>
|
110
|
-
</thead>
|
111
|
-
<tbody>
|
112
|
-
<tr>
|
113
|
-
<td rowspan="2">1</td>
|
114
|
-
<td>Mark</td>
|
115
|
-
<td>Otto</td>
|
116
|
-
<td>@mdo</td>
|
117
|
-
</tr>
|
118
|
-
<tr>
|
119
|
-
<td>Mark</td>
|
120
|
-
<td>Otto</td>
|
121
|
-
<td>@TwBootstrap</td>
|
122
|
-
</tr>
|
123
|
-
<tr>
|
124
|
-
<td>2</td>
|
125
|
-
<td>Jacob</td>
|
126
|
-
<td>Thornton</td>
|
127
|
-
<td>@fat</td>
|
128
|
-
</tr>
|
129
|
-
<tr>
|
130
|
-
<td>3</td>
|
131
|
-
<td colspan="2">Larry the Bird</td>
|
132
|
-
<td>@twitter</td>
|
133
|
-
</tr>
|
134
|
-
</tbody>
|
135
|
-
</table>
|
136
|
-
</div>
|
137
|
-
<pre class="prettyprint linenums">
|
138
|
-
<table class="table table-bordered">
|
139
|
-
…
|
140
|
-
</table>
|
141
|
-
</pre>
|
142
|
-
|
143
|
-
<h3><code>.table-hover</code></h3>
|
144
|
-
<p>Enable a hover state on table rows within a <code><tbody></code>.</p>
|
145
|
-
<div class="bs-docs-example">
|
146
|
-
<table class="table table-hover">
|
147
|
-
<thead>
|
148
|
-
<tr>
|
149
|
-
<th>#</th>
|
150
|
-
<th>First Name</th>
|
151
|
-
<th>Last Name</th>
|
152
|
-
<th>Username</th>
|
153
|
-
</tr>
|
154
|
-
</thead>
|
155
|
-
<tbody>
|
156
|
-
<tr>
|
157
|
-
<td>1</td>
|
158
|
-
<td>Mark</td>
|
159
|
-
<td>Otto</td>
|
160
|
-
<td>@mdo</td>
|
161
|
-
</tr>
|
162
|
-
<tr>
|
163
|
-
<td>2</td>
|
164
|
-
<td>Jacob</td>
|
165
|
-
<td>Thornton</td>
|
166
|
-
<td>@fat</td>
|
167
|
-
</tr>
|
168
|
-
<tr>
|
169
|
-
<td>3</td>
|
170
|
-
<td colspan="2">Larry the Bird</td>
|
171
|
-
<td>@twitter</td>
|
172
|
-
</tr>
|
173
|
-
</tbody>
|
174
|
-
</table>
|
175
|
-
</div>
|
176
|
-
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
177
|
-
<table class="table table-hover">
|
178
|
-
…
|
179
|
-
</table>
|
180
|
-
</pre>
|
181
|
-
|
182
|
-
<h3><code>.table-condensed</code></h3>
|
183
|
-
<p>Makes tables more compact by cutting cell padding in half.</p>
|
184
|
-
<div class="bs-docs-example">
|
185
|
-
<table class="table table-condensed">
|
186
|
-
<thead>
|
187
|
-
<tr>
|
188
|
-
<th>#</th>
|
189
|
-
<th>First Name</th>
|
190
|
-
<th>Last Name</th>
|
191
|
-
<th>Username</th>
|
192
|
-
</tr>
|
193
|
-
</thead>
|
194
|
-
<tbody>
|
195
|
-
<tr>
|
196
|
-
<td>1</td>
|
197
|
-
<td>Mark</td>
|
198
|
-
<td>Otto</td>
|
199
|
-
<td>@mdo</td>
|
200
|
-
</tr>
|
201
|
-
<tr>
|
202
|
-
<td>2</td>
|
203
|
-
<td>Jacob</td>
|
204
|
-
<td>Thornton</td>
|
205
|
-
<td>@fat</td>
|
206
|
-
</tr>
|
207
|
-
<tr>
|
208
|
-
<td>3</td>
|
209
|
-
<td colspan="2">Larry the Bird</td>
|
210
|
-
<td>@twitter</td>
|
211
|
-
</tr>
|
212
|
-
</tbody>
|
213
|
-
</table>
|
214
|
-
</div>
|
215
|
-
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
|
216
|
-
<table class="table table-condensed">
|
217
|
-
…
|
218
|
-
</table>
|
219
|
-
</pre>
|
220
|
-
|
221
|
-
|
222
|
-
<hr class="bs-docs-separator">
|
223
|
-
|
224
|
-
|
225
|
-
<h2>Optional row classes</h2>
|
226
|
-
<p>Use contextual classes to color table rows.</p>
|
227
|
-
<table class="table table-bordered table-striped">
|
228
|
-
<colgroup>
|
229
|
-
<col class="span1">
|
230
|
-
<col class="span7">
|
231
|
-
</colgroup>
|
232
|
-
<thead>
|
233
|
-
<tr>
|
234
|
-
<th>Class</th>
|
235
|
-
<th>Description</th>
|
236
|
-
</tr>
|
237
|
-
</thead>
|
238
|
-
<tbody>
|
239
|
-
<tr>
|
240
|
-
<td>
|
241
|
-
<code>.success</code>
|
242
|
-
</td>
|
243
|
-
<td>Indicates a successful or positive action.</td>
|
244
|
-
</tr>
|
245
|
-
<tr>
|
246
|
-
<td>
|
247
|
-
<code>.error</code>
|
248
|
-
</td>
|
249
|
-
<td>Indicates a dangerous or potentially negative action.</td>
|
250
|
-
</tr>
|
251
|
-
<tr>
|
252
|
-
<td>
|
253
|
-
<code>.warning</code>
|
254
|
-
</td>
|
255
|
-
<td>Indicates a warning that might need attention.</td>
|
256
|
-
</tr>
|
257
|
-
<tr>
|
258
|
-
<td>
|
259
|
-
<code>.info</code>
|
260
|
-
</td>
|
261
|
-
<td>Used as an alternative to the default styles.</td>
|
262
|
-
</tr>
|
263
|
-
</tbody>
|
264
|
-
</table>
|
265
|
-
<div class="bs-docs-example">
|
266
|
-
<table class="table">
|
267
|
-
<thead>
|
268
|
-
<tr>
|
269
|
-
<th>#</th>
|
270
|
-
<th>Product</th>
|
271
|
-
<th>Payment Taken</th>
|
272
|
-
<th>Status</th>
|
273
|
-
</tr>
|
274
|
-
</thead>
|
275
|
-
<tbody>
|
276
|
-
<tr class="success">
|
277
|
-
<td>1</td>
|
278
|
-
<td>TB - Monthly</td>
|
279
|
-
<td>01/04/2012</td>
|
280
|
-
<td>Approved</td>
|
281
|
-
</tr>
|
282
|
-
<tr class="error">
|
283
|
-
<td>2</td>
|
284
|
-
<td>TB - Monthly</td>
|
285
|
-
<td>02/04/2012</td>
|
286
|
-
<td>Declined</td>
|
287
|
-
</tr>
|
288
|
-
<tr class="warning">
|
289
|
-
<td>3</td>
|
290
|
-
<td>TB - Monthly</td>
|
291
|
-
<td>03/04/2012</td>
|
292
|
-
<td>Pending</td>
|
293
|
-
</tr>
|
294
|
-
<tr class="info">
|
295
|
-
<td>4</td>
|
296
|
-
<td>TB - Monthly</td>
|
297
|
-
<td>04/04/2012</td>
|
298
|
-
<td>Call in to confirm</td>
|
299
|
-
</tr>
|
300
|
-
</tbody>
|
301
|
-
</table>
|
302
|
-
</div>
|
303
|
-
<pre class="prettyprint linenums">
|
304
|
-
...
|
305
|
-
<tr class="success">
|
306
|
-
<td>1</td>
|
307
|
-
<td>TB - Monthly</td>
|
308
|
-
<td>01/04/2012</td>
|
309
|
-
<td>Approved</td>
|
310
|
-
</tr>
|
311
|
-
...
|
312
|
-
</pre>
|
313
|
-
|
314
|
-
|
315
|
-
<hr class="bs-docs-separator">
|
316
|
-
|
317
|
-
|
318
|
-
<h2>Supported table markup</h2>
|
319
|
-
<p>List of supported table HTML elements and how they should be used.</p>
|
320
|
-
<table class="table table-bordered table-striped">
|
321
|
-
<colgroup>
|
322
|
-
<col class="span1">
|
323
|
-
<col class="span7">
|
324
|
-
</colgroup>
|
325
|
-
<thead>
|
326
|
-
<tr>
|
327
|
-
<th>Tag</th>
|
328
|
-
<th>Description</th>
|
329
|
-
</tr>
|
330
|
-
</thead>
|
331
|
-
<tbody>
|
332
|
-
<tr>
|
333
|
-
<td>
|
334
|
-
<code><table></code>
|
335
|
-
</td>
|
336
|
-
<td>
|
337
|
-
Wrapping element for displaying data in a tabular format
|
338
|
-
</td>
|
339
|
-
</tr>
|
340
|
-
<tr>
|
341
|
-
<td>
|
342
|
-
<code><thead></code>
|
343
|
-
</td>
|
344
|
-
<td>
|
345
|
-
Container element for table header rows (<code><tr></code>) to label table columns
|
346
|
-
</td>
|
347
|
-
</tr>
|
348
|
-
<tr>
|
349
|
-
<td>
|
350
|
-
<code><tbody></code>
|
351
|
-
</td>
|
352
|
-
<td>
|
353
|
-
Container element for table rows (<code><tr></code>) in the body of the table
|
354
|
-
</td>
|
355
|
-
</tr>
|
356
|
-
<tr>
|
357
|
-
<td>
|
358
|
-
<code><tr></code>
|
359
|
-
</td>
|
360
|
-
<td>
|
361
|
-
Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row
|
362
|
-
</td>
|
363
|
-
</tr>
|
364
|
-
<tr>
|
365
|
-
<td>
|
366
|
-
<code><td></code>
|
367
|
-
</td>
|
368
|
-
<td>
|
369
|
-
Default table cell
|
370
|
-
</td>
|
371
|
-
</tr>
|
372
|
-
<tr>
|
373
|
-
<td>
|
374
|
-
<code><th></code>
|
375
|
-
</td>
|
376
|
-
<td>
|
377
|
-
Special table cell for column (or row, depending on scope and placement) labels<br>
|
378
|
-
Must be used within a <code><thead></code>
|
379
|
-
</td>
|
380
|
-
</tr>
|
381
|
-
<tr>
|
382
|
-
<td>
|
383
|
-
<code><caption></code>
|
384
|
-
</td>
|
385
|
-
<td>
|
386
|
-
Description or summary of what the table holds, especially useful for screen readers
|
387
|
-
</td>
|
388
|
-
</tr>
|
389
|
-
</tbody>
|
390
|
-
</table>
|
391
|
-
<pre class="prettyprint linenums">
|
392
|
-
<table>
|
393
|
-
<caption>...</caption>
|
394
|
-
<thead>
|
395
|
-
<tr>
|
396
|
-
<th>...</th>
|
397
|
-
<th>...</th>
|
398
|
-
</tr>
|
399
|
-
</thead>
|
400
|
-
<tbody>
|
401
|
-
<tr>
|
402
|
-
<td>...</td>
|
403
|
-
<td>...</td>
|
404
|
-
</tr>
|
405
|
-
</tbody>
|
406
|
-
</table>
|
407
|
-
</pre>
|
408
|
-
|
409
|
-
</section>
|