/**
* This source file is available under the terms of the
* Pimcore Open Core License (POCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
*  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.com)
*  @license    Pimcore Open Core License (POCL)
*/

/* THIS FILE IS GENERATED DYNAMICALLY BECAUSE OF DYNAMIC CSS CLASSES IN THE ADMIN */

{# custom views #}
{% if customviews is defined and customviews is iterable %}
    {% for cv in customviews %}
        {%  if cv['icon'] is defined %}
            {% set treetype = cv["treetype"] ? cv["treetype"] : "object" %}
.pimcore_{{ treetype }}_customview_icon_{{ cv["id"] }} {
    background: center / contain url({{ cv["icon"] }}) no-repeat !important;
}
        {% endif %}
    {% endfor %}
{% endif %}

{# language icons #}
{% if languages is defined and languages is iterable %}
    {% for language in languages %}
        {% set iconFile = pimcore_language_flag(language, false) %}
/* tab icon for localized fields [ {{ language }} ] */
.pimcore_icon_language_{{ language|lower }} {
    background: url({{ iconFile }}) center center/contain no-repeat;
}

/* grid column header icon in translations [ {{ language }} ] */
.x-column-header_{{ language|lower }} {
    background: url({{ iconFile }}) no-repeat left center/contain !important;
    padding-left:22px !important;
}
    {% endfor %}
{% endif %}

{# CUSTOM BRANDING #}
{% if adminSettings is defined and adminSettings['branding']['color_admin_interface'] is defined %}
    {% set interfaceColor = adminSettings['branding']['color_admin_interface'] %}
#pimcore_signet {
    background-color: {{ interfaceColor }} !important;
}

#pimcore_avatar {
    background-color: {{ interfaceColor }} !important;
}

#pimcore_navigation li:hover:after {
    background-color: {{ interfaceColor }} !important;
}
{% endif %}

