From 04f9613c41ea21349ff80ae39670680828eb63b2 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Fri, 1 Mar 2024 08:36:10 -0500 Subject: [PATCH] Easier to customize icons on message widget (#607) * Easier to customize icons on message widget * Support full Psr\LogLevel messages --- src/DebugBar/Resources/widgets.css | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/DebugBar/Resources/widgets.css b/src/DebugBar/Resources/widgets.css index a3cfaa6..d5c342d 100644 --- a/src/DebugBar/Resources/widgets.css +++ b/src/DebugBar/Resources/widgets.css @@ -82,22 +82,32 @@ div.phpdebugbar-widgets-messages { div.phpdebugbar-widgets-messages ul.phpdebugbar-widgets-list { padding-bottom: 20px; } - div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-warning:before { + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value:before { font-family: PhpDebugbarFontAwesome; - content: "\f071"; margin-right: 8px; font-size: 11px; + } + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-alert:before { + content: "\f0f3"; + color: #cbcf38; + } + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-debug:before { + content: "\f188"; + color: #78d79a; + } + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-warning:before, + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-emergency:before, + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-notice:before { + content: "\f071"; color: #ecb03d; } - div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-error { + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-error, + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-critical:before { color: red; } - div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-error:before { - font-family: PhpDebugbarFontAwesome; + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-error:before, + div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-critical:before { content: "\f057"; - margin-right: 8px; - font-size: 11px; - color: red; } div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item pre.sf-dump { display: inline;