summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2013-03-04 15:39:02 (GMT)
committercatch2013-03-04 15:39:02 (GMT)
commit473df01aad4804ec671ca32c17f005fe6d63dc46 (patch)
tree5e7952684188e754f30f3a4fca3005165a4dfe34
parenta6c487085d06a7aa70b4f3f641d4801b5236df41 (diff)
Issue #1662974 by barraponto, droplet, Albert Volkman, nitvirus, roborn, David Hernández: Clean up css in dblog.
-rw-r--r--core/modules/dblog/dblog-rtl.css7
-rw-r--r--core/modules/dblog/dblog.admin.inc2
-rw-r--r--core/modules/dblog/dblog.css33
3 files changed, 20 insertions, 22 deletions
diff --git a/core/modules/dblog/dblog-rtl.css b/core/modules/dblog/dblog-rtl.css
index 47de098..7326fa8 100644
--- a/core/modules/dblog/dblog-rtl.css
+++ b/core/modules/dblog/dblog-rtl.css
@@ -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;
}
diff --git a/core/modules/dblog/dblog.admin.inc b/core/modules/dblog/dblog.admin.inc
index fd056c2..5988866 100644
--- a/core/modules/dblog/dblog.admin.inc
+++ b/core/modules/dblog/dblog.admin.inc
@@ -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');
diff --git a/core/modules/dblog/dblog.css b/core/modules/dblog/dblog.css
index 18a5204..5494553 100644
--- a/core/modules/dblog/dblog.css
+++ b/core/modules/dblog/dblog.css
@@ -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);
}