1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Update debugbar.css and add twig badge

http://i.imgur.com/Ij2194R.png
and n-resize cursor is more suitable.

Twig didn't have badge, I add it.
This commit is contained in:
GuimDev 2013-12-26 18:39:23 +01:00
parent d1d36c7a15
commit 859e00c22f
2 changed files with 9 additions and 1 deletions

View File

@ -76,6 +76,10 @@ class TwigCollector extends DataCollector implements Renderable
'widget' => 'PhpDebugBar.Widgets.TemplatesWidget', 'widget' => 'PhpDebugBar.Widgets.TemplatesWidget',
'map' => 'twig', 'map' => 'twig',
'default' => '[]' 'default' => '[]'
),
'twig:badge' => array(
'map' => 'twig.nb_templates',
'default' => 0
) )
); );
} }

View File

@ -95,6 +95,7 @@ a.phpdebugbar-open-btn {
.phpdebugbar-indicator { .phpdebugbar-indicator {
position: relative; position: relative;
cursor: pointer;
} }
.phpdebugbar-indicator span.phpdebugbar-text { .phpdebugbar-indicator span.phpdebugbar-text {
margin-left: 5px; margin-left: 5px;
@ -110,6 +111,9 @@ a.phpdebugbar-open-btn {
font-size: 11px; font-size: 11px;
padding: 2px 3px; padding: 2px 3px;
z-index: 1000; z-index: 1000;
text-align: center;
width: 200%;
right: 0;
} }
.phpdebugbar-indicator:hover span.phpdebugbar-tooltip:not(.phpdebugbar-disabled) { .phpdebugbar-indicator:hover span.phpdebugbar-tooltip:not(.phpdebugbar-disabled) {
display: block; display: block;
@ -138,7 +142,7 @@ div.phpdebugbar-body {
width: 100%; width: 100%;
background: #fff; background: #fff;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
cursor: move; cursor: n-resize;
position: absolute; position: absolute;
top: -33px; top: -33px;
} }