Skip to content

Commit 72bd491

Browse files
committed
Improve css in HtmlOutput to define font for all child elements
This may be relevant if other css on the same page is present which may have a higher specificity otherwise.
1 parent 2c8fba1 commit 72bd491

17 files changed

+68
-17
lines changed

src/PaymentPart/Output/HtmlOutput/Template/PaymentPartTemplate.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ class PaymentPartTemplate
1010
box-sizing: border-box;
1111
width: 210mm;
1212
height: 105mm;
13-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
1413
border-collapse: collapse;
1514
color: #000;
1615
}
1716
17+
#qr-bill * {
18+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
19+
}
20+
1821
#qr-bill img.qr-bill-placeholder {
1922
margin-top: 1pt;
2023
}

tests/TestData/HtmlOutput/qr-additional-information.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-additional-information.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-alternative-schemes.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-alternative-schemes.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-full-set.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-full-set.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-minimal-setup.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-minimal-setup.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-information-without-amount.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-information-without-amount.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-reference-non.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-reference-non.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-reference-scor.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-payment-reference-scor.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-ultimate-debtor.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

tests/TestData/HtmlOutput/qr-ultimate-debtor.print.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
box-sizing: border-box;
44
width: 210mm;
55
height: 105mm;
6-
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
76
border-collapse: collapse;
87
color: #000;
98
}
109

10+
#qr-bill * {
11+
font-family: Arial, Frutiger, Helvetica, "Liberation Sans";
12+
}
13+
1114
#qr-bill img.qr-bill-placeholder {
1215
margin-top: 1pt;
1316
}

0 commit comments

Comments
 (0)