Explorar el Código

style: make tables responsive

Fix #1119
George Cushen hace 6 años
padre
commit
35292a6469
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      assets/sass/academic/_root.scss

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

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