Browse Source

style: make tables responsive

Fix #1119
George Cushen 6 năm trước cách đây
mục cha
commit
35292a6469
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      assets/sass/academic/_root.scss

+ 5 - 2
assets/sass/academic/_root.scss

@@ -467,11 +467,14 @@ a.badge:hover {
  *  Tables
  **************************************************/
 
+/* Based on Bootstrap's `table-responsive` style. */
 table {
+  display: block;
   width: 100%;
-  max-width: 100%;
+  overflow-x: auto;
+  -webkit-overflow-scrolling: touch;
   margin-bottom: 1rem;
-  font-size: 0.93rem;
+  font-size: 0.8rem;
 }
 
 table > thead > tr > th,