1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

💄 Remove hard coded title styles

This commit is contained in:
checktheroads
2019-08-13 00:48:50 -07:00
parent 70e9fb3b07
commit 140892b17e

@ -1,21 +1,15 @@
{% macro title(branding, primary_asn, size_title="h1", size_subtitle="h4", align="center") -%}
<div class="container-fluid text-{{ align }}">
{% macro title(branding, primary_asn, size_title="h1", size_subtitle="h4") -%}
{% if branding.text.title_mode == 'text_only' %}
<{{ size_title }}>{{ branding.text.title }}</{{ size_title }}>
<{{ size_subtitle }}>{{ branding.text.subtitle.format(primary_asn=primary_asn) }}</{{ size_subtitle }}>
<br>
{% elif branding.text.title_mode == 'all' %}
<img src="{{ branding.logo.path }}" style="width: {{ branding.logo.width }}px;">
<{{ size_title }}>{{ branding.text.title }}</{{ size_title }}>
<{{ size_subtitle }}>{{ branding.text.subtitle.format(primary_asn=primary_asn) }}</{{ size_subtitle }}>
<br>
{% elif branding.text.title_mode == 'logo_title' %}
<img src="{{ branding.logo.path }}" style="width: {{ branding.logo.width }}px;">
<{{ size_title }}>{{ branding.text.title }}</{{ size_title }}>
<br>
{% elif branding.text.title_mode == 'logo_only' %}
<img src="{{ branding.logo.path }}" style="width: {{ branding.logo.width }}px;">
<br>
{% endif %}
</div>
{%- endmacro %}