Pārlūkot izejas kodu

style: make tables responsive

Fix #1119
George Cushen 6 gadi atpakaļ
vecāks
revīzija
35292a6469
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  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,