Tweak HTML template
This commit is contained in:
parent
f424ea541e
commit
616cbb815e
57
src/wireviz/templates/din-6771.html
generated
57
src/wireviz/templates/din-6771.html
generated
@ -29,29 +29,13 @@
|
|||||||
font-size: 2.8mm;
|
font-size: 2.8mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
/* Canvas size based on DIN 823 / DIN 6771 / EN ISO 5457 */
|
||||||
position: relative;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
max-height: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {
|
|
||||||
max-width: 95%;
|
|
||||||
max-height: 100%;
|
|
||||||
position: relative;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
}
|
|
||||||
|
|
||||||
#frame {
|
#frame {
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 0.35mm solid black
|
border: 0.35mm solid black
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Canvas size based on DIN 823 / DIN 6771 / EN ISO 5457 */
|
|
||||||
|
|
||||||
.A4, .sheetsize_default { /* portrait */
|
.A4, .sheetsize_default { /* portrait */
|
||||||
width: 180mm;
|
width: 180mm;
|
||||||
height: 277mm;
|
height: 277mm;
|
||||||
@ -67,6 +51,26 @@
|
|||||||
height: 400mm;
|
height: 400mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#diagram {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
max-width: 100%;
|
||||||
|
height: calc(100% - 13 * 4.25mm);
|
||||||
|
/* TODO: auto-adapt to height of title block + BOM table;
|
||||||
|
BOM table might be above (A4) or to the left (A3 and larger) of the title block */
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#diagram svg, #diagram img {
|
||||||
|
max-width: 95%;
|
||||||
|
max-height: 100%;
|
||||||
|
position: relative;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
#titleblock {
|
#titleblock {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0mm;
|
bottom: 0mm;
|
||||||
@ -102,20 +106,12 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bom .bom_col_qty {
|
#bom .bom_col_id {
|
||||||
text-align: right;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#diagram {
|
#bom .bom_col_qty {
|
||||||
position: relative;
|
text-align: right;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
max-width: 100%;
|
|
||||||
height: calc(100% - 13 * 4.25mm);
|
|
||||||
/* TODO: auto-adapt to height of title block + BOM table;
|
|
||||||
BOM table might be above (A4) or to the left (A3 and larger) of the title block */
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
@ -184,12 +180,13 @@
|
|||||||
<div id="frame" class="sheetsize_default">
|
<div id="frame" class="sheetsize_default">
|
||||||
|
|
||||||
<div id="diagram">
|
<div id="diagram">
|
||||||
<!-- %diagram% -->
|
|
||||||
|
|
||||||
<div id="description">
|
<div id="description">
|
||||||
<!-- %description% -->
|
<!-- %description% -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- %diagram% -->
|
||||||
|
|
||||||
<div id="notes">
|
<div id="notes">
|
||||||
<!-- %notes% -->
|
<!-- %notes% -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user