Fixes for build report template

This commit is contained in:
Oliver Walters 2021-02-16 20:53:28 +11:00
parent 7d30e75bc6
commit 7071ef5a5c
2 changed files with 10 additions and 10 deletions

View File

@ -22,22 +22,19 @@ margin-top: 4cm;
vertical-align: middle; vertical-align: middle;
} }
.float-right {
float: right;
}
.part-image { .part-image {
border: 1px solid; border: 1px solid;
border-radius: 2px; border-radius: 2px;
vertical-align: middle; vertical-align: middle;
height: 40mm; height: 40mm;
width: 100%;
display: inline-block; display: inline-block;
z-index: 100; z-index: 100;
} }
.details-image { .details-image {
max-width: 25%;
float: right; float: right;
width: 30%;
} }
.details { .details {
@ -49,10 +46,9 @@ margin-top: 4cm;
} }
.details table { .details table {
overflow-x: scroll
overflow-wrap: break-word; overflow-wrap: break-word;
word-wrap: break-word; word-wrap: break-word;
width: 70%; width: 65%;
table-layout: fixed; table-layout: fixed;
font-size: 75%; font-size: 75%;
} }
@ -101,7 +97,7 @@ content: "www.currawong.aero";
{% block page_content %} {% block page_content %}
<div class='details'> <div class='details'>
<div class='details-image float-right'> <div class='details-image'>
<img class='part-image' src="{% part_image part %}"> <img class='part-image' src="{% part_image part %}">
</div> </div>

View File

@ -4,8 +4,12 @@
<style> <style>
@page { @page {
{% block page_style %} {% block page_style %}
size: {% block page_size %}{{ default_page_size }}{% endblock %}; {% block page_size %}
margin: {% block page_margin %}2cm{% endblock %}; size: {{ default_page_size }};
{% endblock %}
{% block page_margin %}
margin: 2cm;
{% endblock %}
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: 75%; font-size: 75%;
{% endblock %} {% endblock %}