]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Do what the comment says; add this only to devices under 768px
authorMark Otto <markdotto@gmail.com>
Sun, 19 Mar 2017 23:54:03 +0000 (16:54 -0700)
committerMark Otto <markd.otto@gmail.com>
Mon, 20 Mar 2017 01:39:48 +0000 (18:39 -0700)
scss/_tables.scss

index d5148810f499f32ed04a2ee395e6b9417f94c166..c34bb2bef61eec4b3a7266de77a42e6f6e6d60de 100644 (file)
 // will display normally.
 
 .table-responsive {
-  display: block;
-  width: 100%;
-  overflow-x: auto;
-  -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
-
-  // Prevent double border on horizontal scroll due to use of `display: block;`
-  &.table-bordered {
-    border: 0;
+  @include media-breakpoint-down(md) {
+    display: block;
+    width: 100%;
+    overflow-x: auto;
+    -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
+
+    // Prevent double border on horizontal scroll due to use of `display: block;`
+    &.table-bordered {
+      border: 0;
+    }
   }
 }