aboutsummaryrefslogtreecommitdiff
path: root/assets/css/docs.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-26 21:28:44 -0700
committerMark Otto <[email protected]>2013-07-26 21:28:44 -0700
commit70fa8ef4b04eeacc64d25477f4c5391b9385d4fb (patch)
treefc4cca4678603dcfc390e7196f1d8a24912cc9d4 /assets/css/docs.css
parent8349236f8c322c048ca22e65ed797f2f35e9949e (diff)
downloadbootstrap-70fa8ef4b04eeacc64d25477f4c5391b9385d4fb.tar.xz
bootstrap-70fa8ef4b04eeacc64d25477f4c5391b9385d4fb.zip
Responsivey docs table for grid section
Diffstat (limited to 'assets/css/docs.css')
-rw-r--r--assets/css/docs.css30
1 files changed, 30 insertions, 0 deletions
diff --git a/assets/css/docs.css b/assets/css/docs.css
index 8783e8149..307e8d07e 100644
--- a/assets/css/docs.css
+++ b/assets/css/docs.css
@@ -545,6 +545,36 @@ body {
/* 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 */
.table code {
font-size: 13px;