Skip to content

Commit

Permalink
Merge pull request #126 from isubit/INTERIM-75
Browse files Browse the repository at this point in the history
INTERIM-75 Responsive Views tables
  • Loading branch information
angelamnr authored Jun 6, 2017
2 parents be15653 + 96da34c commit b1a06c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,12 @@ table.responsive-table,
}
}

/* --- Views Tables - Overflow --- */
/* Add this class to table Views */

.views-table-overflow .view-content {
overflow-x: auto;
}

/* ---------------------------------------- */
/* ## SEARCH
Expand Down
6 changes: 3 additions & 3 deletions js/suitcase_responsive_tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

$(document).ready(function() {

// Just tables in content
var table = $('.field-items table');
// Find tables in content, or Views tables with the .views-table-responsive class
var table = $('.field-items table, .views-table-responsive table');

/* ---------------------
First, check the table
Expand Down Expand Up @@ -75,4 +75,4 @@ to make the tables responsive
});
});

})(jQuery);
})(jQuery);

0 comments on commit b1a06c8

Please sign in to comment.