Improve table layout
Add alternating colors to table rows, to improve visibillity of the table. refs #9361
This commit is contained in:
parent
42e712402c
commit
5b517a2cb0
|
@ -5,7 +5,7 @@
|
|||
<a href="<?= $this->href('/config/createresource'); ?>">
|
||||
<?= $this->icon('plus'); ?> <?= $this->translate('Create A New Resource'); ?>
|
||||
</a>
|
||||
<table class="action" id="resource-edit-table">
|
||||
<table class="action alternating" id="resource-edit-table">
|
||||
<thead>
|
||||
<th><?= $this->translate('Resource'); ?></th>
|
||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<form id="<?= $form->getId(); ?>" name="<?= $form->getName(); ?>" enctype="<?= $form->getEncType(); ?>" method="<?= $form->getMethod(); ?>" action="<?= $form->getAction(); ?>">
|
||||
<table class="action">
|
||||
<table class="action alternating">
|
||||
<thead>
|
||||
<th>Backend</th>
|
||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
||||
|
|
|
@ -27,7 +27,7 @@ if (! isset($backend)) {
|
|||
}
|
||||
|
||||
if (count($groups) > 0): ?>
|
||||
<table data-base-target="_next" class="action group-list">
|
||||
<table data-base-target="_next" class="action group-list alternating">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="group-name"><?= $this->translate('Group'); ?></th>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
|
||||
<?= $this->translate('No roles found.') ?>
|
||||
<?php else: ?>
|
||||
<table class="avp action" data-base-target="_next">
|
||||
<table class="avp action alternating" data-base-target="_next">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->translate('Name') ?></th>
|
||||
|
|
|
@ -27,7 +27,7 @@ if (! isset($backend)) {
|
|||
}
|
||||
|
||||
if (count($users) > 0): ?>
|
||||
<table data-base-target="_next" class="action user-list">
|
||||
<table data-base-target="_next" class="action user-list alternating">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="user-name"><?= $this->translate('Username'); ?></th>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
)
|
||||
); ?>
|
||||
<?php if (count($backendNames) > 0): ?>
|
||||
<table class="action usergroupbackend-list">
|
||||
<table class="action usergroupbackend-list alternating">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="backend-name"><?= $this->translate('Backend'); ?></th>
|
||||
|
|
|
@ -202,14 +202,31 @@ tr[href].active {
|
|||
background-color: #eee;
|
||||
color: black;
|
||||
}
|
||||
|
||||
table.alternating {
|
||||
tr[href].active:nth-child(even), tr[href].active:nth-child(odd) {
|
||||
background-color: #E5E5E5;
|
||||
color: black;
|
||||
}
|
||||
tr[href]:nth-child(even) {
|
||||
background-color: #FDFDFD;
|
||||
}
|
||||
tr[href]:nth-child(odd) {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
tr[href]:hover {
|
||||
color: black;
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
}
|
||||
/* End of table behaviour */
|
||||
|
||||
|
||||
/* HOVER colors */
|
||||
|
||||
|
||||
tr[href]:hover {
|
||||
color: black;
|
||||
background-color: #eee;
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
/* END of HOVER colors */
|
||||
|
||||
|
|
Loading…
Reference in New Issue