templates: update pages with bom and remove un-needded styles
This commit is contained in:
parent
920bf060e9
commit
013d447b7f
99
src/wireviz/templates/din-6771.html
generated
99
src/wireviz/templates/din-6771.html
generated
@ -73,98 +73,6 @@
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
#titleblock {
|
||||
position: absolute;
|
||||
bottom: 0mm;
|
||||
right: -0mm;
|
||||
}
|
||||
|
||||
#titleblock {
|
||||
width: 180mm;
|
||||
height: 38.25mm;
|
||||
}
|
||||
|
||||
#titleblock tr, #bom tr {
|
||||
height: 4.25mm;
|
||||
}
|
||||
|
||||
.A4 #bom { /* BOM on top of title block */
|
||||
position: absolute;
|
||||
bottom: 38.25mm;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.A3 #bom, .A2 #bom { /* BOM to the left of title block */
|
||||
position: absolute;
|
||||
bottom: 0mm;
|
||||
left: 0mm;
|
||||
}
|
||||
|
||||
#bom table {
|
||||
width:180mm;
|
||||
}
|
||||
|
||||
#bom tr:nth-child(odd) {
|
||||
background-color: #EEEEEE
|
||||
}
|
||||
|
||||
#bom th, td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#bom .bom_col_id {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#bom .bom_col_qty {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 16mm;
|
||||
}
|
||||
|
||||
.date {
|
||||
width: 10mm;
|
||||
}
|
||||
|
||||
.revno {
|
||||
text-align: center;
|
||||
width: 6mm;
|
||||
}
|
||||
|
||||
.changelog {
|
||||
width: 22mm;
|
||||
}
|
||||
|
||||
.process {
|
||||
width: 18mm;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 82mm;
|
||||
font-size: 5.6mm;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.company {
|
||||
font-size: 3mm;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.partno {
|
||||
font-size: 4mm;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.sheetno {
|
||||
width: 12.75mm;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
<style type="text/css" media="print">
|
||||
|
||||
@ -183,7 +91,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="frame" class={{ sheetsize_default }}>
|
||||
<div id="frame" class={{ sheetsize }}>
|
||||
|
||||
<div id="diagram">
|
||||
|
||||
@ -199,10 +107,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div id="bom">
|
||||
{{ bom_reversed }}
|
||||
</div>
|
||||
|
||||
{{ bom }}
|
||||
{{ titleblock }}
|
||||
</div> <!-- /frame -->
|
||||
</div> <!-- /page -->
|
||||
|
||||
21
src/wireviz/templates/simple.html
generated
21
src/wireviz/templates/simple.html
generated
@ -1,25 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"><head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="generator" content="<!-- %generator% -->">
|
||||
<meta name="generator" content="{{ generator }}">
|
||||
<title>{{ title }}</title>
|
||||
<style>
|
||||
|
||||
#bom table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#bom th, td {
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.bom_col_qty {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head><body style="font-family:{{ fontname }};background-color:{{ bgcolor }}">
|
||||
<h1>{{ title }}</h1>
|
||||
<h2>Diagram</h2>
|
||||
@ -38,8 +21,6 @@
|
||||
|
||||
<h2>Bill of Materials</h2>
|
||||
|
||||
<div id="bom">
|
||||
{{ bom }}
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user