More vertical aligning fixes

This commit is contained in:
Javier Eguiluz 2015-07-10 10:47:29 +02:00
parent 9e38a8aa96
commit f087ac0bcd
2 changed files with 14 additions and 5 deletions

View File

@ -3,11 +3,9 @@
{% block toolbar %}
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
{% set icon %}
<span>
{{ include('@WebProfiler/Icon/twig.html.twig') }}
<span class="sf-toolbar-value">{{ time }}</span>
<span class="sf-toolbar-label">ms</span>
</span>
{{ include('@WebProfiler/Icon/twig.html.twig') }}
<span class="sf-toolbar-value">{{ time }}</span>
<span class="sf-toolbar-label">ms</span>
{% endset %}
{% set text %}

View File

@ -393,11 +393,22 @@
.sf-toolbar-icon .sf-toolbar-value {
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 svg {
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 {
top: 8px;
}