Use macro for color scheme generation and change logo for tablet and mobile

This commit is contained in:
Patrick Jentsch
2020-08-26 16:14:36 +02:00
parent a64150278d
commit 6d79b5a90c
10 changed files with 142 additions and 129 deletions

View File

@ -21,6 +21,21 @@
{% block page_content %}{% endblock %}
{%- endmacro -%}
{%- macro insert_color_scheme(hex_color) -%}
<style>
main button, main .btn, main .btn-floating {background-color: {{ hex_color }};}
main .pagination li.active {background-color: {{ hex_color }};}
main .table-of-contents a.active {border-color: {{ hex_color }};}
main .tabs .tab a {color: inherit;}
main .tabs .tab a:hover {color: {{ hex_color }};}
main .tabs .tab a.active, .tabs .tab a:focus.active {
color: {{ hex_color }};
background-color: {{ hex_color }}28;
}
main .tabs .indicator {background-color: {{ hex_color }};}
</style>
{%- endmacro -%}
{% macro show_metadata(query_metadata) %}
<div class="col s12">