Lots of minor improvements

This commit is contained in:
Javier Eguiluz 2015-07-08 15:54:44 +02:00
parent ef53850cb3
commit fac5391dab
2 changed files with 6 additions and 34 deletions

View File

@ -232,6 +232,7 @@
color: #FFF; color: #FFF;
font-size: 14px; font-size: 14px;
margin-right: 4px; margin-right: 4px;
max-height: 36px;
padding: 10px; padding: 10px;
} }
@ -389,55 +390,26 @@
/***** Override the setting when the toolbar is on the top *****/ /***** Override the setting when the toolbar is on the top *****/
{% if position == 'top' %} {% if position == 'top' %}
.sf-minitoolbar { .sf-minitoolbar {
top: 0;
bottom: auto; bottom: auto;
right: 0; right: 0;
top: 0;
background-color: #f7f7f7;
background-image: -moz-linear-gradient(225deg, #e4e4e4, #ffffff);
background-image: -webkit-gradient(linear, 100% 0%, 0% 0%, from(#e4e4e4), to(#ffffff));
background-image: -o-linear-gradient(135deg, #e4e4e4, #ffffff);
background: linear-gradient(225deg, #e4e4e4, #ffffff);
border-radius: 0 0 0 16px;
} }
.sf-toolbarreset { .sf-toolbarreset {
background-image: -moz-linear-gradient(225deg, #e4e4e4, #ffffff);
background-image: -webkit-gradient(linear, 100% 0%, 0% 0%, from(#e4e4e4), to(#ffffff));
background-image: -o-linear-gradient(135deg, #e4e4e4, #ffffff);
background: linear-gradient(225deg, #e4e4e4, #ffffff);
top: 0;
bottom: auto; bottom: auto;
border-bottom: 1px solid #bbb; box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);
top: 0;
} }
.sf-toolbar-block .sf-toolbar-info { .sf-toolbar-block .sf-toolbar-info {
top: 39px;
bottom: auto; bottom: auto;
border-top-width: 0; top: 36px;
border-radius: 0 0 4px 4px;
}
.sf-toolbar-block:hover .sf-toolbar-icon {
border-top: none;
border-bottom: 1px dotted #DDD;
margin-top: 0;
margin-bottom: -1px;
} }
{% endif %} {% endif %}
{% if not floatable %} {% if not floatable %}
.sf-toolbarreset { .sf-toolbarreset {
position: static; position: static;
background: #cbcbcb;
background-image: -moz-linear-gradient(90deg, #cbcbcb, #e8e8e8) !important;
background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, from(#cbcbcb), to(#e8e8e8)) !important;
background-image: -o-linear-gradient(180deg, #cbcbcb, #e8e8e8) !important;
background: linear-gradient(90deg, #cbcbcb, #e8e8e8) !important;
} }
{% endif %} {% endif %}

View File

@ -1,6 +1,6 @@
<div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }}"> <div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }}">
{% if link %}<a href="{{ path('_profiler', { token: token, panel: name }) }}">{% endif %} {% if link %}<a href="{{ path('_profiler', { token: token, panel: name }) }}">{% endif %}
<div class="sf-toolbar-icon">{{ icon|default('') }}</div> <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
<div class="sf-toolbar-info">{{ text|default('') }}</div>
{% if link %}</a>{% endif %} {% if link %}</a>{% endif %}
<div class="sf-toolbar-info">{{ text|default('') }}</div>
</div> </div>