mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11552] MCP fixes, responsive logs
PHPBB3-11552
This commit is contained in:
parent
8093e4e053
commit
961a27091e
4 changed files with 66 additions and 5 deletions
|
@ -684,5 +684,14 @@ function insert_single_user(formId, user)
|
|||
$('.responsive-tabs').hide();
|
||||
}
|
||||
});
|
||||
|
||||
// Hide *CP navigation if there is only 1 item
|
||||
$('#navigation').each(function() {
|
||||
var items = $(this).children('ol, ul').children('li');
|
||||
if (items.length == 1)
|
||||
{
|
||||
$(this).addClass('responsive-hide');
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
|
||||
<h3>{L_LATEST_LOGS}</h3>
|
||||
|
||||
<table class="table1" cellspacing="0">
|
||||
<table class="table1 responsive mcp-logs" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="name">{L_ACTION}</th>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<table cellspacing="1" class="table1">
|
||||
<table cellspacing="1" class="table1 responsive mcp-logs-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{L_USERNAME}</th>
|
||||
|
|
|
@ -96,7 +96,7 @@ ul.topiclist li.header dd {
|
|||
display: none !important;
|
||||
}
|
||||
|
||||
ul.topiclist dt, ul.topiclist dt .list-inner {
|
||||
ul.topiclist li.row dt, ul.topiclist li.row dt .list-inner {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
|
@ -218,11 +218,63 @@ ul.topiclist.forums dd.topics dfn, ul.topiclist.topics dd.posts dfn {
|
|||
}
|
||||
|
||||
#navigation li:first-child a {
|
||||
border-radius: 5px 5px 0 0;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
||||
#navigation li:last-child a {
|
||||
border-radius: 0 0 5px 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
/* Responsive tables
|
||||
----------------------------------------*/
|
||||
table.responsive, table.responsive thead, table.responsive tbody, table.responsive tr, table.responsive th, table.responsive td {
|
||||
display: block;
|
||||
width: auto;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
table.responsive thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
table.responsive tr {
|
||||
overflow: hidden;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(2) {
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(3) {
|
||||
margin-left: 50%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(4), table.mcp-logs td:nth-child(5),
|
||||
table.mcp-logs-full td:nth-child(1), table.mcp-logs-full td:nth-child(2) {
|
||||
width: 33%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(4),
|
||||
table.mcp-logs-full td:nth-child(4) {
|
||||
clear: left;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(5),
|
||||
table.mcp-logs-full td:nth-child(2) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.mcp-logs td:nth-child(6),
|
||||
table.mcp-logs-full td:nth-child(3) {
|
||||
margin-left: 66%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Misc stuff
|
||||
|
|
Loading…
Add table
Reference in a new issue