[WebProfilerBundle] Use a liquid layout rather than a fixed width layout.

This commit is contained in:
Victor Berchet 2011-03-16 17:56:59 +01:00
parent ae7a2df104
commit d56fadfbb9
3 changed files with 27 additions and 27 deletions

View File

@ -215,20 +215,22 @@ fieldset
top: 20px;
}
#navigation, #collector_content
{
float:left
}
#navigation
{
width:250px;
#collector_wrapper {
float: left;
width: 100%;
}
#collector_content
{
width:620px;
padding:40px 0 40px 50px;
margin-left: 250px;
padding: 40px 50px;
}
#navigation
{
float: left;
width: 250px;
margin-left: -100%;
}
#collector_content table td

View File

@ -21,9 +21,12 @@
<div id="main">
<div class="clear_fix">
<div id="collector_wrapper">
<div id="collector_content">
{% block panel '' %}
</div>
</div>
<div id="navigation">
{% if templates is defined %}
<ul id="menu_profiler">
{% for name, template in templates %}
@ -36,15 +39,8 @@
{% endfor %}
</ul>
{% endif %}
{% render 'WebProfilerBundle:Profiler:searchBar' %}
{% include 'WebProfilerBundle:Profiler:admin.html.twig' with { 'token': token } only %}
</div>
<div id="collector_content">
{% block panel '' %}
</div>
</div>
</div>

View File

@ -12,10 +12,7 @@
<div id="main">
<div class="clear_fix">
<div id="navigation">
{% render 'WebProfilerBundle:Profiler:searchBar' with { 'token': token } %}
{% include 'WebProfilerBundle:Profiler:admin.html.twig' with { 'token': token } only %}
</div>
<div id="collector_wrapper">
<div id="collector_content">
{% block panel%}
<h2>Token not found</h2>
@ -25,6 +22,11 @@
{% endblock %}
</div>
</div>
<div id="navigation">
{% render 'WebProfilerBundle:Profiler:searchBar' with { 'token': token } %}
{% include 'WebProfilerBundle:Profiler:admin.html.twig' with { 'token': token } only %}
</div>
</div>
</div>
</div>