More vertical aligning fixes
This commit is contained in:
parent
9e38a8aa96
commit
f087ac0bcd
@ -3,11 +3,9 @@
|
|||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
|
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
<span>
|
{{ include('@WebProfiler/Icon/twig.html.twig') }}
|
||||||
{{ include('@WebProfiler/Icon/twig.html.twig') }}
|
<span class="sf-toolbar-value">{{ time }}</span>
|
||||||
<span class="sf-toolbar-value">{{ time }}</span>
|
<span class="sf-toolbar-label">ms</span>
|
||||||
<span class="sf-toolbar-label">ms</span>
|
|
||||||
</span>
|
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
{% set text %}
|
{% set text %}
|
||||||
|
@ -393,11 +393,22 @@
|
|||||||
.sf-toolbar-icon .sf-toolbar-value {
|
.sf-toolbar-icon .sf-toolbar-value {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
.sf-toolbar-block .sf-toolbar-value {
|
||||||
|
/* needed for perfect vertical aligning */
|
||||||
|
line-height: 37px;
|
||||||
|
}
|
||||||
|
|
||||||
.sf-toolbar-block .sf-toolbar-icon img,
|
.sf-toolbar-block .sf-toolbar-icon img,
|
||||||
.sf-toolbar-block .sf-toolbar-icon svg {
|
.sf-toolbar-block .sf-toolbar-icon svg {
|
||||||
top: 6px;
|
top: 6px;
|
||||||
}
|
}
|
||||||
|
/* TODO: needed for perfect vertical aligning, remove when icons are recreated */
|
||||||
|
.sf-toolbar-block-twig .sf-toolbar-icon img {
|
||||||
|
top: 7px;
|
||||||
|
}
|
||||||
|
.sf-toolbar-block-security .sf-toolbar-icon svg {
|
||||||
|
top: 7px;
|
||||||
|
}
|
||||||
.sf-toolbar-block-config .sf-toolbar-icon svg {
|
.sf-toolbar-block-config .sf-toolbar-icon svg {
|
||||||
top: 8px;
|
top: 8px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user