Issue #1662974 by barraponto, droplet, Albert Volkman, nitvirus, roborn, David Hernández: Clean up css in dblog.

8.0.x
catch 2013-03-04 15:39:02 +00:00
parent a6c487085d
commit 473df01aad
3 changed files with 20 additions and 22 deletions

View File

@ -3,8 +3,7 @@
* Right-to-Left styling for the Database Logging module. * Right-to-Left styling for the Database Logging module.
*/ */
.form-item-type, .dblog-filter-form .form-item-type,
.form-item-severity { .dblog-filter-form .form-item-severity {
margin-right: 0; margin: .1em .1em .1em .9em;
margin-left: 1em;
} }

View File

@ -77,7 +77,7 @@ function dblog_overview() {
'#theme' => 'table', '#theme' => 'table',
'#header' => $header, '#header' => $header,
'#rows' => $rows, '#rows' => $rows,
'#attributes' => array('id' => 'admin-dblog'), '#attributes' => array('id' => 'admin-dblog', 'class' => array('admin-dblog')),
'#empty' => t('No log messages available.'), '#empty' => t('No log messages available.'),
); );
$build['dblog_pager'] = array('#theme' => 'pager'); $build['dblog_pager'] = array('#theme' => 'pager');

View File

@ -3,46 +3,45 @@
* Admin styles for the Database Logging module. * Admin styles for the Database Logging module.
*/ */
.form-item-type, .dblog-filter-form .form-item-type,
.form-item-severity { .dblog-filter-form .form-item-severity {
display: inline-block; display: inline-block;
margin-right: 1em; /* LTR */ margin: .1em .9em .1em .1em; /* LTR */
margin-top: 0;
max-width: 30%; max-width: 30%;
} }
#dblog-filter-form .form-actions { .dblog-filter-form .form-actions {
display: inline-block; display: inline-block;
padding: 3ex 0 0; padding: 3ex 0 0;
vertical-align: top; vertical-align: top;
} }
tr.dblog-user.odd .active { .dblog-user.odd .active {
background: #ddf; background: #ddf;
} }
tr.dblog-user.even .active { .dblog-user.even .active {
background: #cce; background: #cce;
} }
tr.dblog-error.odd .active { .dblog-error.odd .active {
background: #ffc9c9; background: #ffc9c9;
} }
tr.dblog-error.even .active { .dblog-error.even .active {
background: #eeb9b9; background: #eeb9b9;
} }
tr.dblog-warning.odd .active { .dblog-warning.odd .active {
background: #fffdca; background: #fffdca;
} }
tr.dblog-warning.even .active { .dblog-warning.even .active {
background: #eeedbd; background: #eeedbd;
} }
table#admin-dblog td.icon { .admin-dblog .icon {
background: no-repeat center; background: no-repeat center;
width: 16px; width: 16px;
} }
table#admin-dblog tr.dblog-warning td.icon { .admin-dblog .dblog-warning .icon {
background-image: url(../../misc/message-16-warning.png); background-image: url(../../misc/message-16-warning.png);
} }
table#admin-dblog tr.dblog-error td.icon, .admin-dblog .dblog-error .icon,
table#admin-dblog tr.dblog-critical td.icon, .admin-dblog .dblog-critical .icon,
table#admin-dblog tr.dblog-alert td.icon, .admin-dblog .dblog-alert .icon,
table#admin-dblog tr.dblog-emergency td.icon { .admin-dblog .dblog-emergency .icon {
background-image: url(../../misc/message-16-error.png); background-image: url(../../misc/message-16-error.png);
} }