{% set globalColors = getFrontDataFromSettingOrYaml('front.css_config.colors', platform_front('css_config.colors') ) %}
{% set isHighlights = platform_global('type') is same as('highlights') and platform_global('highlights') and app.user is not same as(null) %}
{% if isHighlights %}
{% set currentDisplayStep = getUserFrontCurrentStep(app.user) %}
{% if currentDisplayStep.options is defined %}
{% set globalColors = globalColors|merge({'primary': currentDisplayStep.options.colors.primary }) %}
{% endif %}
{% endif %}
{% set globalPrimary = globalColors.primary%}
{% set globalSecondary = globalColors.secondary%}
.m-0 {
margin: 0 !important;
}
.mb-40 {
margin-bottom: 40px !important;
}
.font-weight-bold {
font-weight: bold !important;
}
{#{% if platform_front('common.footer.background') %}#}
{#.main-footer {#}
{# background-image : url( {{ asset(platform_front('common.footer.background.url') ) }} ) !important;#}
{#}#}
{#{% endif %}#}
::-webkit-scrollbar-button {
background-color: #2A2A29;
height: 0;
}
::-webkit-scrollbar-track {
background-color: #003F72;
}
::-webkit-scrollbar-thumb {
background-color: #F7CD39;
}
::-webkit-scrollbar-corner {
background-color: #F7CD39;
}
::-moz-selection {
background-color: #F7CD39;
color: #2A2A29;
}
.m-0 {
margin: 0 !important;
}
.mb-40 {
margin-bottom: 40px !important;
}
.font-weight-bold {
font-weight: bold !important;
}
{##}
::-webkit-scrollbar-button {
background-color: #2A2A29;
height: 0;
}
::-webkit-scrollbar-track {
background-color: #003F72;
}
::-webkit-scrollbar-thumb {
background-color: #F7CD39;
}
::-webkit-scrollbar-corner {
background-color: #F7CD39;
}
::-moz-selection {
background-color: #F7CD39;
color: #2A2A29;
}
{% if platform_front('css_config') %}
/*============================*/
/* CSS global généré par yaml */
/*============================*/
/*----------------------*/
/* Fonts */
/*----------------------*/
{% set fonts = getFrontDataFromSettingOrYaml('front.css_config.fonts', platform_front('css_config.fonts')) %}
{% for k,item in fonts %}
{{ generateCssClass(item)|raw }}
{% endfor %}
/*----------------------*/
/* Couleurs principales */
/*----------------------*/
{% for k,item in globalColors %}
/** Class pour {{ k }} **/
{{ getCssClassGlobal(k, item)|raw }}
{% endfor %}
{#Génération des class pour override les couleurs principale en cas de platforme temps fort + user loggé#}
{% set color_primary = globalPrimary.color %}
{% if platform_front('theme') and platform_front('theme') is same as('theme-default')%}
{% set color_secondary = globalSecondary.color %}
{{ generateHeaderCssClass('default', globalColors)|raw }}
{% for k,item in globalColors %}
/** Class main-menu-{{ k }} **/
{{ generateHeaderCssClass(k, globalColors)|raw }}
{% endfor %}
{% endif %}
{#Génération des class de theme pour les liens en fonction de la couleur principale#}
.link-theme-primary a:not(.btn-impersonation) { color: {{ color_primary|raw }}!important;}
{% if color_secondary is defined %}
.link-theme-primary a:not(.btn-impersonation):hover, .link-theme-primary a.active{ color: {{ color_secondary|raw }}!important;}
.link-theme-secondary a:not(.btn-impersonation) { color: {{ color_secondary|raw }}!important;}
{% endif %}
.link-theme-secondary a:not(.btn-impersonation):hover, .link-theme-secondary a.active{ color: {{ color_primary|raw }}!important;}
/*----------------------*/
/* Elements */
/*----------------------*/
{% for type,element in platform_front('css_config') %}
{% if type is not same as('colors') %}
/** Class pour {{ type }} **/
{% for k,item in element %}
{% if type is same as('thumbnails') %}
{{ generateThumbnailCssClass(item)|raw }}
{% elseif type not in ['buttons', 'form', 'fonts'] %}
{{ generateCssClass(item)|raw }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% set buttons = getFrontDataFromSettingOrYaml('front.css_config.buttons', platform_front('css_config.buttons')) %}
{% for k,item in buttons %}
{{ generateCssClass(item)|raw }}
{% endfor %}
{% set form = getFrontDataFromSettingOrYaml('front.css_config.form', platform_front('css_config.form')) %}
{% for k,item in form %}
{{ generateCssClass(item)|raw }}
{% endfor %}
{% endif %}
{% if platform_front('css_config.css') %}
/*----------------------*/
/* Custom global CSS */
/*----------------------*/
{{ platform_front('css_config.css')|raw }}
{% endif %}
/*----------------------*/
/* Common Component */
/*----------------------*/
{% if platform_front('common') %}
{% for type,element in platform_front('common') %}
{% if element.css_custom is defined %}
/** Class pour {{ type }} **/
{{ element.css_custom|raw }}
{% endif %}
{% endfor %}
{% endif %}
/*---------------------------*/
/* Common Component children */
/*---------------------------*/
{% if platform_front('common.header') %}
/** Header => menu, banner, buttons, logo **/
{% set children = ['menu', 'banner', 'buttons', 'logo'] %}
{% set header = platform_front('common.header') %}
{% for k,el in header %}
{% if k in children and el.css_custom is defined %}
/** header.{{ k }} **/
{{el.css_custom|raw }}
{% endif %}
{% endfor %}
{% endif %}
/*---------------------------*/
/* Content Front */
/*---------------------------*/
{% if platform_front('content') %}
{% for type,element in platform_front('content') %}
{% if element.css_custom is defined %}
/** Class pour
{{ type }} **/
{{ element.css_custom|raw }}
{% endif %}
{% endfor %}
{% endif %}
/*---------------------------*/
/* Content Security */
/*---------------------------*/
{% if platform_front('security') %}
{% if platform_front('security.css_custom') %}
/** Class pour security **/
{{ platform_front('security.css_custom')|raw }}
{% endif %}
{% endif %}
/*---------------------------*/
/* Content Catalogue */
/*---------------------------*/
{% set theme = globalPrimary %}
{% if platform_front('content.catalog') and platform_front('content.catalog.theme_color') %}
{% set theme = globalColors[platform_front('content.catalog.theme_color')] %}
{% endif %}
.main-products.product-grid .product-thumb .stats {
color : {{ theme.color|raw }};
}
.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single,
.irs--round .irs-bar,
.irs--round .irs-handle {
background-color: {{ theme.color|raw }} !important;
}
.irs--round .irs-from:before, .irs--round .irs-to:before, .irs--round .irs-single:before {
border-top-color: {{ theme.color|raw }} !important;
}
{% if color_primary is defined %}
.theme-default .list-catalogue-link.active::after,.theme-default .list-catalogue-link:hover::after { background: {{ color_primary|raw }}; }
.theme-default .list-catalogue-link.active { color: {{ color_primary|raw }} !important; }
{% endif %}
.theme-default .user-menu > li.active, .theme-default .user-menu > li:hover { border-color: {{ color_primary|raw }}; }
/*---------------------------*/
/* Content Product */
/*---------------------------*/
.lSPager.lSGallery li.active{border-color: {{ theme.color|raw }} !important }
/*---------------------------*/
/* Content Profile */
/*---------------------------*/
{% if isHighlights %}
{% set theme = globalPrimary.color %}
{% if platform_front('content.profile') and platform_front('content.profile.theme_color') %}
{% set theme = globalColors[platform_front('content.profile.theme_color')] %}
{% endif %}
.user-menu > li.active > a, .user-menu > li:hover > a {
border-left-color : {{ theme.color|raw }} !important;
color : {{ theme.color|raw }} !important;
}
.profil_page h1,
.profil_page .h1,
.profil_page h2,
.profil_page .h2 {
color : {{ theme.color|raw }};
}
.profil_page .pseudo_border:after {
background: {{ theme.color|raw }};
}
.profil_page .btn-blue-nuance {
background-color: {{ theme.color|raw }};
border-color: {{ theme.color|raw }};
color: {{ theme.text_color|raw }};
}
.profil_page .btn-blue-nuance.active,
.profil_page .btn-blue-nuance:hover {
background-color: {{ theme.hover|raw }};
border-color: {{ theme.hover|raw }};
color: {{ theme.text_hover|raw }};
}
{% endif %}
/*---------------------------*/
/* Content Containt */
/*---------------------------*/
{% if platform_front('content') %}
{% for type,element in platform_front('content') %}
{% if element.css_custom is defined %}
/** Class pour
{{ type }} **/
{{ element.css_custom|raw }}
{% endif %}
{% endfor %}
{% endif %}
/*---------------------------*/
/* MISC */
/*---------------------------*/
/* Responsive embed video */
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
/*Responsive video*/
video {
width: 100%;
max-height: 100%;
}