mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +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:
parent
d1d36c7a15
commit
859e00c22f
@ -76,6 +76,10 @@ class TwigCollector extends DataCollector implements Renderable
|
||||
'widget' => 'PhpDebugBar.Widgets.TemplatesWidget',
|
||||
'map' => 'twig',
|
||||
'default' => '[]'
|
||||
),
|
||||
'twig:badge' => array(
|
||||
'map' => 'twig.nb_templates',
|
||||
'default' => 0
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -95,6 +95,7 @@ a.phpdebugbar-open-btn {
|
||||
|
||||
.phpdebugbar-indicator {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.phpdebugbar-indicator span.phpdebugbar-text {
|
||||
margin-left: 5px;
|
||||
@ -110,6 +111,9 @@ a.phpdebugbar-open-btn {
|
||||
font-size: 11px;
|
||||
padding: 2px 3px;
|
||||
z-index: 1000;
|
||||
text-align: center;
|
||||
width: 200%;
|
||||
right: 0;
|
||||
}
|
||||
.phpdebugbar-indicator:hover span.phpdebugbar-tooltip:not(.phpdebugbar-disabled) {
|
||||
display: block;
|
||||
@ -138,7 +142,7 @@ div.phpdebugbar-body {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-top: 1px solid #ccc;
|
||||
cursor: move;
|
||||
cursor: n-resize;
|
||||
position: absolute;
|
||||
top: -33px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user