You are here

tablesaw.stackonly-base.css in Responsive Tables Filter 7

/*! Tablesaw - v3.1.1 - 2019-03-15
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2019 Filament Group; Licensed MIT */

/* Drupal module note: this replicates the full-width rendering
of tables and leaves out responsive behavior; this is to retain
full-width behavior in 'print' stylesheet context. */

.tablesaw {
  width: 100%;
  max-width: 100%;
  empty-cells: show;
  border-collapse: collapse;
  border: 0;
  padding: 0;
}

.tablesaw * {
  box-sizing: border-box;
}

.tablesaw-stack td .tablesaw-cell-label,
.tablesaw-stack th .tablesaw-cell-label {
  display: none;
}

/* Media query to show as a standard table at 560px (35em x 16px) or wider */

@media (min-width: 40em) {
  .tablesaw-stack tr {
    display: table-row;
  }

  /* Show the table header rows */

  .tablesaw-stack td,
  .tablesaw-stack th,
  .tablesaw-stack thead td,
  .tablesaw-stack thead th {
    display: table-cell;
    margin: 0;
  }

  /* Hide the labels in each cell */

  .tablesaw-stack td .tablesaw-cell-label,
  .tablesaw-stack th .tablesaw-cell-label {
    display: none !important;
  }
}

File

tablesaw/css/tablesaw.stackonly-base.css
View source
  1. /*! Tablesaw - v3.1.1 - 2019-03-15
  2. * https://github.com/filamentgroup/tablesaw
  3. * Copyright (c) 2019 Filament Group; Licensed MIT */
  4. /* Drupal module note: this replicates the full-width rendering
  5. of tables and leaves out responsive behavior; this is to retain
  6. full-width behavior in 'print' stylesheet context. */
  7. .tablesaw {
  8. width: 100%;
  9. max-width: 100%;
  10. empty-cells: show;
  11. border-collapse: collapse;
  12. border: 0;
  13. padding: 0;
  14. }
  15. .tablesaw * {
  16. box-sizing: border-box;
  17. }
  18. .tablesaw-stack td .tablesaw-cell-label,
  19. .tablesaw-stack th .tablesaw-cell-label {
  20. display: none;
  21. }
  22. /* Media query to show as a standard table at 560px (35em x 16px) or wider */
  23. @media (min-width: 40em) {
  24. .tablesaw-stack tr {
  25. display: table-row;
  26. }
  27. /* Show the table header rows */
  28. .tablesaw-stack td,
  29. .tablesaw-stack th,
  30. .tablesaw-stack thead td,
  31. .tablesaw-stack thead th {
  32. display: table-cell;
  33. margin: 0;
  34. }
  35. /* Hide the labels in each cell */
  36. .tablesaw-stack td .tablesaw-cell-label,
  37. .tablesaw-stack th .tablesaw-cell-label {
  38. display: none !important;
  39. }
  40. }