responsive-tables.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Foundation v2.1.4 http://foundation.zurb.com */
  2. /* Artfully masterminded by ZURB */
  3. /* --------------------------------------------------
  4. Table of Contents
  5. -----------------------------------------------------
  6. :: Shared Styles
  7. :: Page Name 1
  8. :: Page Name 2
  9. */
  10. /* -----------------------------------------
  11. Shared Styles
  12. ----------------------------------------- */
  13. table th { font-weight: bold; }
  14. table td, table th { padding: 9px 10px; text-align: left; }
  15. /* Mobile */
  16. @media only screen and (max-width: 767px) {
  17. table.responsive { margin-bottom: 0; }
  18. .pinned { position: absolute; left: 0; top: 0; background: #fff; width: 35%; overflow: hidden; overflow-x: scroll; border-right: 1px solid #ccc; border-left: 1px solid #ccc; }
  19. .pinned table { border-right: none; border-left: none; width: 100%; }
  20. .pinned table th, .pinned table td { white-space: nowrap; }
  21. .pinned td:last-child { border-bottom: 0; }
  22. div.table-wrapper { position: relative; margin-bottom: 20px; overflow: hidden; border-right: 1px solid #ccc; }
  23. div.table-wrapper div.scrollable { margin-left: 35%; }
  24. div.table-wrapper div.scrollable { overflow: scroll; overflow-y: hidden; }
  25. table.responsive td, table.responsive th { position: relative; white-space: nowrap; overflow: hidden; }
  26. table.responsive th:first-child, table.responsive td:first-child, table.responsive td:first-child, table.responsive.pinned td { display: none; }
  27. }