{% macro createcolor(name, value) %} .gogo-load-css .gogo-{{ name }} { color: {{ value }}; } .gogo-load-css .gogo-h-{{ name }}:hover, .gogo-h-{{ name }}.hover { color: {{ value }} !important; } .gogo-load-css .gogo-bg-{{ name }} { background-color: {{ value }} !important; } {% endmacro %} {% macro createBackgroung(name, bgdColor, textColor = null) %} {% if bgdColor %} {% if not textColor %} {% set textColor = tinycolor.mostReadable(bgdColor, [textDark, textLight]) %} {% endif %} {% set textSoftColor = tinycolor.mostReadable(bgdColor, [textDarkSoft, textLightSoft]) %} {% set name = name|replace(''', '"') %} .gogo-load-css .gogo-{{ name }} { background-color: {{ bgdColor }}; color: {{ textColor }}; } .gogo-load-css img.svg.gogo-{{ name }} { {{ textColor|to_css }} } .gogo-load-css .gogo-{{ name }} > img.svg { {{ textColor|to_css }} } .gogo-load-css .gogo-{{ name }}.gogo-color-soft { color: {{ textSoftColor }} } .gogo-load-css .gogo-{{ name }} .gogo-color-soft { color: {{ textSoftColor }} } .gogo-load-css .gogo-{{ name }} .gogo-color-link { color: {{ textSoftColor }} } .gogo-load-css .gogo-{{ name }} .gogo-color-link.active { color: {{ textColor }} } .gogo-load-css .gogo-{{ name }} .gogo-color-link.hover { color: {{ textColor }} } @media (max-width: 1100px) { .gogo-load-css .gogo-{{ name }} .gogo-color-link { color: {{ textColor }} } } .gogo-load-css .gogo-{{ name }} .gogo-color-link:hover { color: {{ textColor }}; cursor: pointer; } {% endif %} {% endmacro %} {# The following file generate styling accoring to GoGoCartoJS configuration #} {% set textDark = config.colors.textDark %} {% set textDarkSoft = config.colors.textDarkSoft %} {% set textLight = config.colors.textLight %} {% set textLightSoft = config.colors.textLightSoft %} {% set contentBgd = config.colors.contentBackground %} {% set text = tinycolor.mostReadable(contentBgd, [textDark, textLight]) %} {% set textSoft = tinycolor.mostReadable(contentBgd, [textDarkSoft, textLightSoft]) %} {% set primary = config.colors.primary %} {% set secondary = config.colors.secondary | default(primary) %} {% set background = config.colors.background %} {% set mainFont = config.fonts.mainFont %} {% set titleFont = config.fonts.titleFont | default(mainFont) %} {% set contentBackgroundElementBody = config.colors.contentBackgroundElementBody %} {% set menuOptionHover = config.colors.menuOptionHover %} {% set disabled = config.colors.disabled %} {% set lineBorder = config.colors.lineBorder %} {% set searchBar = config.colors.searchBar | default(primary) %} {% set interactiveColor = config.colors.interactiveSection | default(primary) %} {% set pending = config.colors.pending %} {% include 'styles/general.html.njk' %} {% include 'styles/element-info-bar.html.njk' %} {% include 'styles/list.html.njk' %} {% include 'styles/menu-filters.html.njk' %} {% include 'styles/search-bar.html.njk' %} {% include 'styles/map.html.njk' %} {# THEMES #} {% include 'styles/themes/' ~ config.theme ~ '.html.njk' ignore missing %}