Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding mobile responsive table support to UC People
  • Loading branch information
briandunnigan authored and briandunnigan committed Mar 3, 2016
1 parent 281e17c commit 50164fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/people-table.php
Expand Up @@ -8,7 +8,8 @@ if ( $the_query->have_posts() ) {
//var_dump($num_cols);

?>
<table class="table table-striped">
<div class="table-responsive">
<table class="table table-striped">
<legend class="sr-only">List of People</legend>
<thead>
<tr>
Expand Down Expand Up @@ -138,7 +139,7 @@ if ( $the_query->have_posts() ) {
} //end of posts?>
</tbody>
</table>

</div>
<?php
} else {
// no posts found
Expand Down
10 changes: 10 additions & 0 deletions sass/_ucpeople.scss
Expand Up @@ -11,4 +11,14 @@
min-height:100%;
}
*/
}

.uc-people {
table {
img {
@media (max-width:767px) {
max-width:none;
}
}
}
}
6 changes: 6 additions & 0 deletions style.css
Expand Up @@ -9842,6 +9842,12 @@ q:before, table q:after {
*/
}

@media (max-width: 767px) {
.uc-people table img {
max-width: none;
}
}

/* - - - - - - - - - - - - - - - - - - -
== Calendar
- - - - - - - - - - - - - - - - - - - */
Expand Down

0 comments on commit 50164fb

Please sign in to comment.