Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better styles for scissors in HTML output #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ class PaymentPartTemplate

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -179,6 +179,10 @@ class PaymentPartTemplate
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}

{{ printable-content }}
</style>

Expand All @@ -188,7 +192,7 @@ class PaymentPartTemplate
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>{{ text.receipt }}</h1>
<h1>{{ text.receipt }}<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
{{ information-content-receipt }}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class PrintableStylesTemplate
display: none;
}

#qr-bill-scissors {
display: none;
}

#qr-bill-receipt {
border-right: 0;
}
Expand All @@ -35,26 +39,28 @@ class PrintableStylesTemplate
left: -23mm;
}

#qr-bill-receipt:after {
#qr-bill-scissors:after {
transform: rotate(90deg);
display: inline-block;
content: '\\2702';
position: fixed;
position: relative;
font-weight: normal;
font-size: 16pt;
top: 12.5mm;
left: 61.1mm;
top: 0;
left: 2.5mm;
}
EOT;

public const TEMPLATE_VERTICAL_SCISSORS_DOWN = <<<EOT
#qr-bill-receipt:after {
#qr-bill-scissors:after {
transform: rotate(-90deg);
display: inline-block;
content: '\\2702';
position: fixed;
position: relative;
font-weight: normal;
font-size: 16pt;
top: 91.8mm;
left: 61.7mm;
top: 78mm;
left: 3.3mm;
}
EOT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}


</style>

Expand All @@ -181,7 +185,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}

#qr-bill-separate-info {
border-bottom: 0;
}
Expand All @@ -180,6 +184,10 @@
display: none;
}

#qr-bill-scissors {
display: none;
}

#qr-bill-receipt {
border-right: 0;
}
Expand All @@ -191,7 +199,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}

#qr-bill-separate-info {
border-bottom-style: dashed;
}
Expand All @@ -188,14 +192,15 @@
left: -23mm;
}

#qr-bill-receipt:after {
#qr-bill-scissors:after {
transform: rotate(90deg);
display: inline-block;
content: '\2702';
position: fixed;
position: relative;
font-weight: normal;
font-size: 16pt;
top: 12.5mm;
left: 61.1mm;
top: 0;
left: 2.5mm;
}

#qr-bill-separate-info-text {
Expand All @@ -209,7 +214,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}

#qr-bill-separate-info {
border-bottom-style: dashed;
}
Expand All @@ -188,24 +192,26 @@
left: -23mm;
}

#qr-bill-receipt:after {
#qr-bill-scissors:after {
transform: rotate(90deg);
display: inline-block;
content: '\2702';
position: fixed;
position: relative;
font-weight: normal;
font-size: 16pt;
top: 12.5mm;
left: 61.1mm;
top: 0;
left: 2.5mm;
}

#qr-bill-receipt:after {
#qr-bill-scissors:after {
transform: rotate(-90deg);
display: inline-block;
content: '\2702';
position: fixed;
position: relative;
font-weight: normal;
font-size: 16pt;
top: 91.8mm;
left: 61.7mm;
top: 78mm;
left: 3.3mm;
}

#qr-bill-separate-info-text {
Expand All @@ -219,7 +225,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}



#qr-bill-separate-info-text:before {
Expand Down Expand Up @@ -199,7 +203,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
10 changes: 7 additions & 3 deletions tests/TestData/HtmlOutput/qr-additional-information.svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@

#qr-bill-payment-part h2 {
font-size: 8pt !important;
line-height: 11pt !important;
line-height: 11pt !important;
margin-top: 11pt !important;
color: #000 !important;
}

#qr-bill-receipt h2 {
font-size: 6pt !important;
line-height: 8pt !important;
line-height: 8pt !important;
margin-top: 8pt !important;
color: #000 !important;
}
Expand Down Expand Up @@ -172,6 +172,10 @@
margin-top: -11pt;
}

#qr-bill-scissors {
float: right;
}


</style>

Expand All @@ -181,7 +185,7 @@
</tr>
<tr>
<td id="qr-bill-receipt">
<h1>Receipt</h1>
<h1>Receipt<span id="qr-bill-scissors"></span></h1>
<div id="qr-bill-information-receipt">
<h2>Account / Payable to</h2><p>CH44 3199 9123 0008 8901 2<br />
Thomas LeClaire<br />
Expand Down
Loading
Loading