Skip to content

Commit

Permalink
Merged CSS for the toolbar in both embedded mode (on each page) and p…
Browse files Browse the repository at this point in the history
…rofiler.
  • Loading branch information
shiroyuki committed Apr 13, 2012
1 parent cd53483 commit a9afdd0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 205 deletions.
205 changes: 1 addition & 204 deletions Resources/public/css/toolbar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Resources/views/Profiler/base.html.twig
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="{{ asset('bundles/webprofiler/css/toolbar.css') }}" /> <link rel="stylesheet" href="{{ asset('bundles/webprofiler/css/toolbar.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/webprofiler/css/profiler.css') }}" /> <link rel="stylesheet" href="{{ asset('bundles/webprofiler/css/profiler.css') }}" />
{% endblock %} {% endblock %}
{% include 'WebProfilerBundle:Profiler:toolbar_style.html.twig' with { 'position': 'top', 'floatable': false } %}
</head> </head>
<body> <body>
{% block body '' %} {% block body '' %}
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Profiler/toolbar.html.twig
@@ -1,6 +1,6 @@
<!-- START of Symfony2 Web Debug Toolbar --> <!-- START of Symfony2 Web Debug Toolbar -->
{% if 'normal' != position %} {% if 'normal' != position %}
{% include 'WebProfilerBundle:Profiler:toolbar_style.html.twig' with { 'position': position } %} {% include 'WebProfilerBundle:Profiler:toolbar_style.html.twig' with { 'position': position, 'floatable': true } %}
{% endif %} {% endif %}


<div class="sf-toolbarreset"> <div class="sf-toolbarreset">
Expand Down
17 changes: 17 additions & 0 deletions Resources/views/Profiler/toolbar_style.html.twig
Expand Up @@ -190,12 +190,29 @@
background-image: -moz-linear-gradient(-90deg, #ffffff, #e4e4e4); background-image: -moz-linear-gradient(-90deg, #ffffff, #e4e4e4);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#e4e4e4)); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#e4e4e4));
top: 0; top: 0;
bottom: auto;
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
} }
.sf-toolbar-block .sf-toolbar-info { .sf-toolbar-block .sf-toolbar-info {
top: 38px; top: 38px;
bottom: auto;
border-top: 1px solid #fff; border-top: 1px solid #fff;
border-bottom: 1px solid #bbb;
}
{% endif %}
{% if not floatable %}
.sf-toolbarreset {
position: static;
background: #cbcbcb;
background-image: -moz-linear-gradient(-90deg, #e8e8e8, #cbcbcb) !important;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e8e8e8), to(#cbcbcb)) !important;
}
.sf-toolbarreset abbr {
border-bottom: 1px dotted #000000;
cursor: help;
} }
{% endif %} {% endif %}
Expand Down

0 comments on commit a9afdd0

Please sign in to comment.