summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.maintenance.inc1
-rw-r--r--misc/message-16-error.pngbin0 -> 712 bytes
-rw-r--r--misc/message-16-help.pngbin0 -> 802 bytes
-rw-r--r--misc/message-16-info.pngbin0 -> 852 bytes
-rw-r--r--misc/message-16-ok.pngbin0 -> 782 bytes
-rw-r--r--misc/message-16-warning.pngbin0 -> 587 bytes
-rw-r--r--misc/message-24-error.pngbin0 -> 1045 bytes
-rw-r--r--misc/message-24-help.pngbin0 -> 1265 bytes
-rw-r--r--misc/message-24-info.pngbin0 -> 1156 bytes
-rw-r--r--misc/message-24-ok.pngbin0 -> 1264 bytes
-rw-r--r--misc/message-24-warning.pngbin0 -> 947 bytes
-rw-r--r--modules/dblog/dblog.admin.inc12
-rw-r--r--modules/dblog/dblog.css11
-rw-r--r--modules/system/system-messages.css67
-rw-r--r--themes/bartik/css/style.css13
-rw-r--r--themes/garland/style.css41
-rw-r--r--themes/seven/style.css29
17 files changed, 56 insertions, 118 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index 419d300f1..fdd474d94 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -80,6 +80,7 @@ function _drupal_maintenance_theme() {
drupal_add_css(drupal_get_path('module', 'system') . '/system.css');
drupal_add_css(drupal_get_path('module', 'system') . '/system-behavior.css');
drupal_add_css(drupal_get_path('module', 'system') . '/system-menus.css');
+ drupal_add_css(drupal_get_path('module', 'system') . '/system-messages.css');
drupal_add_css(drupal_get_path('module', 'system') . '/maintenance.css');
drupal_add_css(drupal_get_path('module', 'system') . '/admin.css');
}
diff --git a/misc/message-16-error.png b/misc/message-16-error.png
new file mode 100644
index 000000000..001cd57af
--- /dev/null
+++ b/misc/message-16-error.png
Binary files differ
diff --git a/misc/message-16-help.png b/misc/message-16-help.png
new file mode 100644
index 000000000..7f69e3ec8
--- /dev/null
+++ b/misc/message-16-help.png
Binary files differ
diff --git a/misc/message-16-info.png b/misc/message-16-info.png
new file mode 100644
index 000000000..97c6cae03
--- /dev/null
+++ b/misc/message-16-info.png
Binary files differ
diff --git a/misc/message-16-ok.png b/misc/message-16-ok.png
new file mode 100644
index 000000000..5ed6cb2fa
--- /dev/null
+++ b/misc/message-16-ok.png
Binary files differ
diff --git a/misc/message-16-warning.png b/misc/message-16-warning.png
new file mode 100644
index 000000000..c50983d01
--- /dev/null
+++ b/misc/message-16-warning.png
Binary files differ
diff --git a/misc/message-24-error.png b/misc/message-24-error.png
new file mode 100644
index 000000000..0ec69fcb4
--- /dev/null
+++ b/misc/message-24-error.png
Binary files differ
diff --git a/misc/message-24-help.png b/misc/message-24-help.png
new file mode 100644
index 000000000..4c7dc1f9b
--- /dev/null
+++ b/misc/message-24-help.png
Binary files differ
diff --git a/misc/message-24-info.png b/misc/message-24-info.png
new file mode 100644
index 000000000..60f13a3f5
--- /dev/null
+++ b/misc/message-24-info.png
Binary files differ
diff --git a/misc/message-24-ok.png b/misc/message-24-ok.png
new file mode 100644
index 000000000..0b0a495c3
--- /dev/null
+++ b/misc/message-24-ok.png
Binary files differ
diff --git a/misc/message-24-warning.png b/misc/message-24-warning.png
new file mode 100644
index 000000000..7a3d4cfe5
--- /dev/null
+++ b/misc/message-24-warning.png
Binary files differ
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index bc09b5f8f..fad50ef34 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -15,16 +15,6 @@
function dblog_overview() {
$filter = dblog_build_filter_query();
$rows = array();
- $icons = array(
- WATCHDOG_DEBUG => '',
- WATCHDOG_INFO => '',
- WATCHDOG_NOTICE => '',
- WATCHDOG_WARNING => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('warning'), 'title' => t('warning'))),
- WATCHDOG_ERROR => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('error'), 'title' => t('error'))),
- WATCHDOG_CRITICAL => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('critical'), 'title' => t('critical'))),
- WATCHDOG_ALERT => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('alert'), 'title' => t('alert'))),
- WATCHDOG_EMERGENCY => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))),
- );
$classes = array(
WATCHDOG_DEBUG => 'dblog-debug',
WATCHDOG_INFO => 'dblog-info',
@@ -65,7 +55,7 @@ function dblog_overview() {
$rows[] = array('data' =>
array(
// Cells
- $icons[$dblog->severity],
+ array('class' => 'icon'),
t($dblog->type),
format_date($dblog->timestamp, 'short'),
theme('dblog_message', array('event' => $dblog, 'link' => TRUE)),
diff --git a/modules/dblog/dblog.css b/modules/dblog/dblog.css
index ce3e3608c..1b7e8352c 100644
--- a/modules/dblog/dblog.css
+++ b/modules/dblog/dblog.css
@@ -46,3 +46,14 @@ tr.dblog-error {
tr.dblog-error .active {
background: #eeb9b9;
}
+table#admin-dblog td.icon {
+ background: no-repeat center;
+ width: 16px;
+}
+table#admin-dblog tr.dblog-warning td.icon {
+ background-image: url(../../misc/message-16-warning.png);
+}
+table#admin-dblog tr.dblog-error td.icon {
+ background-image: url(../../misc/message-16-error.png);
+}
+
diff --git a/modules/system/system-messages.css b/modules/system/system-messages.css
index 0fe890a6b..b1a1406ee 100644
--- a/modules/system/system-messages.css
+++ b/modules/system/system-messages.css
@@ -1,36 +1,55 @@
/* $Id */
div.messages {
- background-color: #dfd;
- color: #000;
- margin-bottom: 0.25em;
- padding: 0.25em 0.5em;
+ background-position: 8px 8px; /* LTR */
+ background-repeat: no-repeat;
+ border: 1px solid;
+ margin: 6px 0;
+ padding: 10px 10px 10px 50px; /* LTR */
}
-
-.error {
- color: #e55;
+div.status {
+ background-image: url(../../misc/message-24-ok.png);
+ border-color: #be7;
}
-
-div.error,
-table tr.error {
- background-color: #fcc;
+div.status,
+.ok {
+ color: #234600;
}
-
+div.status,
+table tr.ok {
+ background-color: #f8fff0;
+}
+div.warning {
+ background-image: url(../../misc/message-24-warning.png);
+ border-color: #ed5;
+}
+div.warning,
.warning {
- color: #e09010;
+ color: #840;
}
-
div.warning,
-tr.warning {
- background-color: #fcfca7;
+table tr.warning {
+ background-color: #fffce5;
}
-
-.ok {
- color: #008000;
+div.error {
+ background-image: url(../../misc/message-24-error.png);
+ border-color: #ed541d;
}
-
-div.ok,
-tr.ok {
- background-color: #dfd;
- color: #020;
+div.error,
+.error {
+ color: #8c2e0b;
+}
+div.error,
+table tr.error {
+ background-color: #fef5f1;
+}
+div.error p.error {
+ color: #333;
+}
+div.messages ul {
+ margin: 0 0 0 1em; /* LTR */
+ padding: 0;
+}
+div.messages ul li {
+ list-style-image: none;
}
diff --git a/themes/bartik/css/style.css b/themes/bartik/css/style.css
index fd7f9cbc3..cd5281f22 100644
--- a/themes/bartik/css/style.css
+++ b/themes/bartik/css/style.css
@@ -896,21 +896,8 @@ ul.action-links li a {
margin: 0 auto;
}
div.messages {
- padding: 1.2em 2em 1em;
margin: 8px 0;
}
-div.status, tr.status {
- background-color: #c7ffc0;
- border: 1px solid #89d47f;
-}
-div.warning, tr.warning {
- background-color: #fcfca7;
- border: 1px solid #e1c46b;
-}
-div.error, tr.error {
- background-color: #ffcccc;
- border: 1px solid #fb6b6b;
-}
/* -------------- Breadcrumbs -------------- */
diff --git a/themes/garland/style.css b/themes/garland/style.css
index bdbc88d85..e8e175063 100644
--- a/themes/garland/style.css
+++ b/themes/garland/style.css
@@ -290,20 +290,6 @@ span.form-required {
padding: .5em 1em;
}
-div.messages {
- margin: .75em 0 .75em;
- padding: .1em .5em .15em;
-}
-
-.messages ul {
- margin: 0;
-}
-
-.messages li {
- margin: 0;
- padding: 0 0 0 1.3em; /* LTR */
-}
-
.form-checkboxes,
.form-radios,
.form-checkboxes .form-item,
@@ -1196,38 +1182,11 @@ tr.taxonomy-term-divider-bottom {
/**
* Generic elements.
*/
-div.messages {
- background-color: #fff;
- border: 1px solid #b8d3e5;
-}
-
.preview {
background-color: #fcfce8;
border: 1px solid #e5e58f;
}
-div.status {
- background-color: #fff;
- border-color: #c7f2c8;
- color: #33a333;
-}
-
-div.error {
- border: 1px solid #d77;
-}
-
-div.error,
-tr.error {
- color: #a30000;
- background-color: #FFCCCC;
-}
-
-div.warning {
- background-color: #ffd;
- border: 1px solid #f0c020;
- color: #220;
-}
-
.form-item input.error,
.form-item textarea.error {
border: 1px solid #c52020;
diff --git a/themes/seven/style.css b/themes/seven/style.css
index 8c64e81d3..c095526f4 100644
--- a/themes/seven/style.css
+++ b/themes/seven/style.css
@@ -234,35 +234,6 @@ kbd {
}
/**
- * Messages.
- */
-div.messages {
- padding: 9px;
- margin: 0.5em 0 0;
- color: #036;
- background: #f8fff0;
- border-left: 16px solid #be7;
-}
-div.warning {
- color: #840;
- background: #fffce5;
- border-left: 16px solid #ed5;
-}
-div.error {
- color: #8c2e0b;
- background: #fef5f1;
- border-left: 16px solid #ed541d;
-}
-div.error p.error {
- color: #333;
-}
-div.status {
- color: #234600;
- background: #f8fff0;
- border-left: 16px solid #be7;
-}
-
-/**
* Page title.
*/
#page-title {