Skip to content
Snippets Groups Projects
Commit 473df01a authored by catch's avatar catch
Browse files

Issue #1662974 by barraponto, droplet, Albert Volkman, nitvirus, roborn, David...

Issue #1662974 by barraponto, droplet, Albert Volkman, nitvirus, roborn, David Hernández: Clean up css in dblog.
parent a6c48708
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -3,8 +3,7 @@
* Right-to-Left styling for the Database Logging module.
*/
.form-item-type,
.form-item-severity {
margin-right: 0;
margin-left: 1em;
.dblog-filter-form .form-item-type,
.dblog-filter-form .form-item-severity {
margin: .1em .1em .1em .9em;
}
......@@ -77,7 +77,7 @@ function dblog_overview() {
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
'#attributes' => array('id' => 'admin-dblog'),
'#attributes' => array('id' => 'admin-dblog', 'class' => array('admin-dblog')),
'#empty' => t('No log messages available.'),
);
$build['dblog_pager'] = array('#theme' => 'pager');
......
......@@ -3,46 +3,45 @@
* Admin styles for the Database Logging module.
*/
.form-item-type,
.form-item-severity {
.dblog-filter-form .form-item-type,
.dblog-filter-form .form-item-severity {
display: inline-block;
margin-right: 1em; /* LTR */
margin-top: 0;
margin: .1em .9em .1em .1em; /* LTR */
max-width: 30%;
}
#dblog-filter-form .form-actions {
.dblog-filter-form .form-actions {
display: inline-block;
padding: 3ex 0 0;
vertical-align: top;
}
tr.dblog-user.odd .active {
.dblog-user.odd .active {
background: #ddf;
}
tr.dblog-user.even .active {
.dblog-user.even .active {
background: #cce;
}
tr.dblog-error.odd .active {
.dblog-error.odd .active {
background: #ffc9c9;
}
tr.dblog-error.even .active {
.dblog-error.even .active {
background: #eeb9b9;
}
tr.dblog-warning.odd .active {
.dblog-warning.odd .active {
background: #fffdca;
}
tr.dblog-warning.even .active {
.dblog-warning.even .active {
background: #eeedbd;
}
table#admin-dblog td.icon {
.admin-dblog .icon {
background: no-repeat center;
width: 16px;
}
table#admin-dblog tr.dblog-warning td.icon {
.admin-dblog .dblog-warning .icon {
background-image: url(../../misc/message-16-warning.png);
}
table#admin-dblog tr.dblog-error td.icon,
table#admin-dblog tr.dblog-critical td.icon,
table#admin-dblog tr.dblog-alert td.icon,
table#admin-dblog tr.dblog-emergency td.icon {
.admin-dblog .dblog-error .icon,
.admin-dblog .dblog-critical .icon,
.admin-dblog .dblog-alert .icon,
.admin-dblog .dblog-emergency .icon {
background-image: url(../../misc/message-16-error.png);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment