Skip to content

Commit

Permalink
Removed some inline styles from the permissions page and made it a bi…
Browse files Browse the repository at this point in the history
…t more mobile-friendly

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Aug 6, 2014
1 parent 03de7b8 commit 2ce1669
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions themes/default/ManagePermissions.template.php
Expand Up @@ -525,7 +525,7 @@ function template_modify_group_classic($type)
foreach ($permission_type['columns'] as $column)
{
echo '
<table style="width: 49%;" class="table_grid perm_classic floatleft">';
<table class="table_grid perm_classic floatleft">';

foreach ($column as $permissionGroup)
{
Expand All @@ -545,7 +545,7 @@ function template_modify_group_classic($type)
{
echo '
<tr class="table_head">
<th class="lefttext" colspan="2" style="width: 100%;">
<th class="lefttext" colspan="2">
<strong class="smalltext">', $permissionGroup['name'], '</strong>
</th>';

Expand Down Expand Up @@ -602,7 +602,7 @@ function template_modify_group_classic($type)
if ($permission['has_own_any'])
{
echo '
<td class="lefttext" colspan="4" style="width: 100%;">', $permission['name'], '</td>
<td class="lefttext" colspan="4">', $permission['name'], '</td>
</tr>
<tr class="', $alternate ? 'windowbg' : 'windowbg2', '">';

Expand All @@ -611,7 +611,7 @@ function template_modify_group_classic($type)
{
echo '
<td></td>
<td class="smalltext righttext" style="width: 100%;">', $permission['own']['name'], ':</td>';
<td class="smalltext righttext">', $permission['own']['name'], ':</td>';

if (empty($modSettings['permission_enable_deny']))
echo '
Expand All @@ -637,7 +637,7 @@ function template_modify_group_classic($type)

echo '
<td></td>
<td class="smalltext righttext" style="width: 100%;">', $permission['any']['name'], ':</td>';
<td class="smalltext righttext">', $permission['any']['name'], ':</td>';

if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1)
echo '
Expand All @@ -662,7 +662,7 @@ function template_modify_group_classic($type)
else
{
echo '
<td class="lefttext" style="width: 100%;">', $permission['name'], '</td>';
<td class="lefttext">', $permission['name'], '</td>';

if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1)
echo '
Expand Down Expand Up @@ -691,7 +691,7 @@ function template_modify_group_classic($type)
if (!$permissionGroup['hidden'] && $has_display_content)
echo '
<tr class="windowbg2">
<td colspan="5" style="width: 100%;"><!--separator--></td>
<td colspan="5"><!--separator--></td>
</tr>';
}
echo '
Expand Down
4 changes: 4 additions & 0 deletions themes/default/css/admin.css
Expand Up @@ -758,6 +758,7 @@ dl.settings dd.large_caption {
}
.perm_classic {
margin: 0.2em;
width: 49%;
}
.permission_groups {
padding: 0;
Expand Down Expand Up @@ -1164,6 +1165,9 @@ ul.moderation_notes li {
#manage_boards dt {
line-height: 1.6em;
}
.perm_classic {
width: 100%;
}
}

/* Drag sort lists show the move cursor and up/down arrow content */
Expand Down

0 comments on commit 2ce1669

Please sign in to comment.