aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-03-23 01:28:04 -0700
committerMark Otto <[email protected]>2012-03-23 01:28:04 -0700
commitde7aee246591f0be9ee58079175b42af7f5a6947 (patch)
tree9dbdb5c96690e5e3975578c62f9a2b6675fd7399 /docs
parent622b8fa3f0d54e1c356fbe76d7bdc407919ff840 (diff)
downloadbootstrap-de7aee246591f0be9ee58079175b42af7f5a6947.tar.xz
bootstrap-de7aee246591f0be9ee58079175b42af7f5a6947.zip
fix broken tables with double borders and such, add css tests page to start with table edge cases
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/bootstrap.zipbin55701 -> 55760 bytes
-rw-r--r--docs/assets/css/bootstrap.css6
-rw-r--r--docs/css-tests.html184
-rw-r--r--docs/templates/pages/css-tests.mustache184
4 files changed, 370 insertions, 4 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 566d3e621..6262fbb6c 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index f4d2dbe37..bdf6a771f 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -1237,6 +1237,12 @@ table {
.table-bordered td {
border-left: 1px solid #dddddd;
}
+.table-bordered caption + thead tr:first-child th,
+.table-bordered caption + tbody tr:first-child th,
+.table-bordered caption + tbody tr:first-child td,
+.table-bordered colgroup + thead tr:first-child th,
+.table-bordered colgroup + tbody tr:first-child th,
+.table-bordered colgroup + tbody tr:first-child td,
.table-bordered thead:first-child tr:first-child th,
.table-bordered tbody:first-child tr:first-child th,
.table-bordered tbody:first-child tr:first-child td {
diff --git a/docs/css-tests.html b/docs/css-tests.html
index 3eeac5924..6dcec9798 100644
--- a/docs/css-tests.html
+++ b/docs/css-tests.html
@@ -74,13 +74,193 @@
<div class="container">
+<style>
+body {
+ background-image: none;
+}
+.col1 {
+ background-color: rgba(255,0,0,.1);
+}
+.col2 {
+ background-color: rgba(0,255,0,.1);
+}
+.col3 {
+ background-color: rgba(0,0,255,.1);
+}
+</style>
+
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
- <h1>Tests</h1>
- <p class="lead"></p>
+ <h1>CSS Tests</h1>
+ <p class="lead">One stop shop for quick debugging and edge-case tests of CSS.</p>
</header>
+<div class="page-header">
+ <h1>Tables</h1>
+</div>
+
+<div class="row">
+ <div class="span6">
+ <h4>Bordered without thead</h4>
+ <table class="table table-bordered">
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered without thead, with caption</h4>
+ <table class="table table-bordered">
+ <caption>Table caption</caption>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered without thead, with colgroup</h4>
+ <table class="table table-bordered">
+ <colgroup>
+ <col class="col1">
+ <col class="col2">
+ <col class="col3">
+ </colgroup>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered with thead, with colgroup</h4>
+ <table class="table table-bordered">
+ <colgroup>
+ <col class="col1">
+ <col class="col2">
+ <col class="col3">
+ </colgroup>
+ <thead>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ </div><!--/span-->
+ <div class="span6">
+ <h4>Bordered with thead and caption</h4>
+ <table class="table table-bordered">
+ <caption>Table caption</caption>
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ <th>3</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered with rowspan and colspan</h4>
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ <th>3</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="2">1 and 2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td rowspan="2">2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td rowspan="2">1</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td colspan="2">2 and 3</td>
+ </tr>
+ </tbody>
+ </table>
+ </div><!--/span-->
+</div><!--/row-->
+
<!-- Footer
================================================== -->
diff --git a/docs/templates/pages/css-tests.mustache b/docs/templates/pages/css-tests.mustache
index 6455039c4..cde7484dc 100644
--- a/docs/templates/pages/css-tests.mustache
+++ b/docs/templates/pages/css-tests.mustache
@@ -1,6 +1,186 @@
+<style>
+body {
+ background-image: none;
+}
+.col1 {
+ background-color: rgba(255,0,0,.1);
+}
+.col2 {
+ background-color: rgba(0,255,0,.1);
+}
+.col3 {
+ background-color: rgba(0,0,255,.1);
+}
+</style>
+
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Tests{{/i}}</h1>
- <p class="lead">{{_i}}{{/i}}</p>
+ <h1>{{_i}}CSS Tests{{/i}}</h1>
+ <p class="lead">{{_i}}One stop shop for quick debugging and edge-case tests of CSS.{{/i}}</p>
</header>
+
+<div class="page-header">
+ <h1>Tables</h1>
+</div>
+
+<div class="row">
+ <div class="span6">
+ <h4>Bordered without thead</h4>
+ <table class="table table-bordered">
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered without thead, with caption</h4>
+ <table class="table table-bordered">
+ <caption>Table caption</caption>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered without thead, with colgroup</h4>
+ <table class="table table-bordered">
+ <colgroup>
+ <col class="col1">
+ <col class="col2">
+ <col class="col3">
+ </colgroup>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered with thead, with colgroup</h4>
+ <table class="table table-bordered">
+ <colgroup>
+ <col class="col1">
+ <col class="col2">
+ <col class="col3">
+ </colgroup>
+ <thead>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ </div><!--/span-->
+ <div class="span6">
+ <h4>Bordered with thead and caption</h4>
+ <table class="table table-bordered">
+ <caption>Table caption</caption>
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ <th>3</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ <td>3</td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>Bordered with rowspan and colspan</h4>
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ <th>3</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="2">1 and 2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td>1</td>
+ <td rowspan="2">2</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td rowspan="2">1</td>
+ <td>3</td>
+ </tr>
+ <tr>
+ <td colspan="2">2 and 3</td>
+ </tr>
+ </tbody>
+ </table>
+ </div><!--/span-->
+</div><!--/row-->