Fix #17 - responsive tables
This commit is contained in:
parent
f32c9458bc
commit
daa3f06fe9
|
@ -31,6 +31,7 @@ if (isset($message)){
|
|||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
|
||||
<thead><tr>
|
||||
|
@ -58,12 +59,14 @@ while($result = $query->fetch_assoc())
|
|||
}?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h3 class="pull-left"><?php echo _("Users");?></h3>
|
||||
<?php if ($user->get_rank() == 0){?> <a href="<?php echo WEB_URL;?>/admin/?do=new-user" class="btn btn-success pull-right"><?php echo _("Add new user");?></a><?php }?>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
|
||||
<thead><tr><th scope="col"><?php echo _("ID");?></th><th scope="col"><?php echo _("Username");?></th><th scope="col"><?php echo _("Name");?></th><th scope="col"><?php echo _("Surname");?></th><th scope="col"><?php echo _("Email");?></th><th scope="col"><?php echo _("Role");?></th><th scope="col">Active</th></tr></thead>
|
||||
|
@ -85,4 +88,5 @@ while($result = $query->fetch_assoc())
|
|||
}?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
10
css/main.css
10
css/main.css
|
@ -117,8 +117,6 @@ div.center {
|
|||
.service{
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
width:60%;
|
||||
min-width: 200px;
|
||||
padding: 15px 35px;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
|
@ -132,10 +130,8 @@ a h1{
|
|||
}
|
||||
|
||||
.status{
|
||||
float: left;
|
||||
float: right;
|
||||
box-sizing: border-box;
|
||||
width:40%;
|
||||
min-width: 150px;
|
||||
padding: 15px 35px;
|
||||
text-align: right;
|
||||
font-size: 1.05em;
|
||||
|
@ -474,10 +470,6 @@ body .panel-heading input::placeholder{
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
body.admin{
|
||||
min-width: 500px
|
||||
}
|
||||
|
||||
body.admin table td{
|
||||
word-break: break-all;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue