diff --git a/sigi/templates/pdf/base.html b/sigi/templates/pdf/base.html index 7716a19..cf9ef87 100644 --- a/sigi/templates/pdf/base.html +++ b/sigi/templates/pdf/base.html @@ -21,6 +21,9 @@ {% endblock %} {% block extra_page_settings %}{% endblock extra_page_settings %} } + body { + margin: 0; + } h1 { bookmark-level: 1 } h2 { bookmark-level: 2 } h3 { bookmark-level: 3 } diff --git a/sigi/templates/pdf/base_report.html b/sigi/templates/pdf/base_report.html index 4c0fae4..3416d0c 100644 --- a/sigi/templates/pdf/base_report.html +++ b/sigi/templates/pdf/base_report.html @@ -18,19 +18,16 @@ header { text-align: left; } header p { - margin: 5px; + margin: 0; } footer { - text-align: center; + text-align: right; } footer img { - width: 300px; + width: {% if "landscape" in pagesize %}257{% else %}170{% endif %}mm; } -footer p { - margin-bottom: 3px; -} .report_name { font-size: 1.6em; } @@ -70,18 +67,19 @@ ul { {% endblock extra_style %} {% block body_content %} -
{% block header %} -

{% trans 'SENADO FEDERAL' %}

-

{% trans 'Instituto Legislativo Brasileiro - ILB' %}

-

{% trans "INTERLEGIS" %}

-

{% block report_name %}{{ title|upper }}{% endblock report_name %}

{% endblock header %} +
+ {% block header %} +

{% trans 'SENADO FEDERAL' %}

+

{% trans 'Instituto Legislativo Brasileiro - ILB - Interlegis' %}

+

{% block report_name %}{{ title|upper }}{% endblock report_name %}

+ {% endblock header %}
{% spaceless %} {% endspaceless %}