Skip to content

Commit

Permalink
Adding mobile responsive table support to UC People
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
//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 @@
} //end of posts?>
</tbody>
</table>

</div>
<?php
} else {
// no posts found
Expand Down
10 changes: 10 additions & 0 deletions sass/_ucpeople.scss
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.