pdfdokumente/Application/views/tpl/documents/inc/elements/foldmarks.tpl

32 lines
893 B
Smarty
Raw Normal View History

2020-06-29 00:28:32 +02:00
[{assign var="defaultPagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
2020-06-13 22:43:57 +02:00
[{assign var="pagePadding" value=$pagePadding|default:$defaultPagePadding}]
<style type="text/css">
.marks {
position: absolute;
left: [{math equation="left - padding" left=5 padding=$pagePadding.3}]mm ;
margin-left: 0;
width: 7px;
height: 0;
border-top: 1px solid silver;
}
2020-06-14 00:46:17 +02:00
.foldtop {
2020-06-13 22:43:57 +02:00
top: [{math equation="top - padding" top=105 padding=$pagePadding.0}]mm
}
2020-06-14 00:46:17 +02:00
.foldbottom {
2020-06-13 22:43:57 +02:00
top: [{math equation="top - padding" top=210 padding=$pagePadding.0}]mm
}
2020-06-14 00:46:17 +02:00
.punch {
2020-06-13 22:43:57 +02:00
top: [{math equation="top - padding" top=148.5 padding=$pagePadding.0}]mm
}
2020-06-14 00:46:17 +02:00
</style>
[{* fold marks *}]
<div class="marks foldtop"></div>
<div class="marks foldbottom"></div>
[{* punch mark *}]
<div class="marks punch"></div>