Commit 70fa8ef4 authored by Mark Otto's avatar Mark Otto

Responsivey docs table for grid section

parent 8349236f
...@@ -545,6 +545,36 @@ body { ...@@ -545,6 +545,36 @@ body {
/* Responsive docs /* Responsive docs
-------------------------------------------------- */ -------------------------------------------------- */
/* Responsive (scrollable) doc tables */
@media (max-width: 768px) {
.bs-table-scrollable {
width: 100%;
overflow-y: hidden;
overflow-x: scroll;
border: 1px solid #ddd;
}
.bs-table-scrollable .bs-table {
margin-bottom: 0;
border: 0;
}
.bs-table-scrollable .bs-table th,
.bs-table-scrollable .bs-table td {
white-space: nowrap;
}
.bs-table-scrollable .bs-table th:first-child,
.bs-table-scrollable .bs-table td:first-child {
border-left: 0;
}
.bs-table-scrollable .bs-table th:last-child,
.bs-table-scrollable .bs-table td:last-child {
border-right: 0;
}
.bs-table-scrollable .bs-table tr:last-child th,
.bs-table-scrollable .bs-table tr:last-child td {
border-bottom: 0;
}
}
/* Related: responsive utilities tables */ /* Related: responsive utilities tables */
.table code { .table code {
font-size: 13px; font-size: 13px;
......
...@@ -78,6 +78,7 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e ...@@ -78,6 +78,7 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e
<h3 id="grid-options">Grid options</h3> <h3 id="grid-options">Grid options</h3>
<p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p> <p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p>
<div class="bs-table-scrollable">
<table class="table table-bordered table-striped bs-table"> <table class="table table-bordered table-striped bs-table">
<thead> <thead>
<tr> <tr>
...@@ -128,6 +129,7 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e ...@@ -128,6 +129,7 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<h3 id="grid-example-basic">Example: Stacked-to-horizontal</h3> <h3 id="grid-example-basic">Example: Stacked-to-horizontal</h3>
<p>Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.</p> <p>Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment