diff options
-rw-r--r-- | modules/gallery/views/admin_maintenance.html.php | 8 | ||||
-rw-r--r-- | themes/admin_default/css/screen.css | 47 |
2 files changed, 27 insertions, 28 deletions
diff --git a/modules/gallery/views/admin_maintenance.html.php b/modules/gallery/views/admin_maintenance.html.php index 4bca8653..ce693d73 100644 --- a/modules/gallery/views/admin_maintenance.html.php +++ b/modules/gallery/views/admin_maintenance.html.php @@ -7,7 +7,7 @@ <div id="gAvailableTasks"> <h2> <?= t("Available Tasks") ?> </h2> - <table class="gMessages"> + <table> <tr> <th> <?= t("Name") ?> @@ -21,7 +21,7 @@ </tr> <? $i = 0; ?> <? foreach ($task_definitions as $task): ?> - <tr class="<?= log::severity_class($task->severity) ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>"> + <tr class="<?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?> <?= log::severity_class($task->severity) ?>"> <td class="<?= log::severity_class($task->severity) ?>"> <?= $task->name ?> </td> @@ -69,7 +69,7 @@ </tr> <? $i = 0; ?> <? foreach ($running_tasks as $task): ?> - <tr class="<?= $task->state == "stalled" ? "gWarning" : "" ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>"> + <tr class="<?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?> <?= $task->state == "stalled" ? "gWarning" : "" ?>"> <td class="<?= $task->state == "stalled" ? "gWarning" : "" ?>"> <?= gallery::date_time($task->updated) ?> </td> @@ -142,7 +142,7 @@ </tr> <? $i = 0; ?> <? foreach ($finished_tasks as $task): ?> - <tr class="<?= $task->state == "success" ? "gSuccess" : "gError" ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>"> + <tr class="<?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?> <?= $task->state == "success" ? "gSuccess" : "gError" ?>"> <td class="<?= $task->state == "success" ? "gSuccess" : "gError" ?>"> <?= gallery::date_time($task->updated) ?> </td> diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css index 24328133..c81db58d 100644 --- a/themes/admin_default/css/screen.css +++ b/themes/admin_default/css/screen.css @@ -356,48 +356,47 @@ li.gError select { .gInfo, .gSuccess, .gWarning { - background-position: .4em 50%; - background-repeat: no-repeat; padding: .4em .5em .4em 30px; } -.gError { - background-color: #f6cbca; - background-image: url('../images/ico-error.png'); +.gError, tr.gError td.gError { + background: #f6cbca url('../images/ico-error.png') no-repeat .4em 50%; } .gInfo { - background-color: #e8e8e8; - background-image: url('../images/ico-info.png'); + background: #e8e8e8 url('../images/ico-info.png') no-repeat .4em 50%; } .gSuccess { - background-color: #d9efc2; - background-image: url('../images/ico-success.png'); + background: #d9efc2 url('../images/ico-success.png') no-repeat .4em 50%; } -.gWarning { - background-color: #fcf9ce; - background-image: url('../images/ico-warning.png'); +.gWarning, tr.gWarning td.gWarning { + background: #fcf9ce url('../images/ico-warning.png') no-repeat .4em 50%; +} + +.gPager .gInfo, +tr.gError, +tr.gInfo, +tr.gSuccess, +tr.gWarning { + background: none; } -table .gError { - background-color: #f6cbca !important; +.gInfo td.gInfo { + background-color: transparent; } -table .gWarning { - background-color: #fcf9ce !important; +.gSuccess td.gSuccess { + background-color: transparent; } -.gPager .gInfo, -form .gError, -table .gInfo, -table .gSuccess { - background-color: transparent !important; +.gError td { + background-color: #f6cbca; } -.gPager .gInfo { - background-image: none !important; +.gWarning td { + background-color: #fcf9ce; } /* Inline layout (forms, lists) ~~~~~~~~~~ */ @@ -643,7 +642,7 @@ li.gGroup { li.gGroup h4 { background-color: #eee; - border-bottom: 1px dashed ccc; + border-bottom: 1px dashed #ccc; padding: .5em 0 .5em .5em; } li.gGroup .gButtonLink { |