-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathinvoice.css
142 lines (115 loc) · 1.91 KB
/
invoice.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/*
Common invoice styles. These styles will work in a browser or using the HTML
to PDF anvil endpoint.
*/
body {
font-size: 16px;
}
table {
width: 100%;
border-collapse: collapse;
}
table tr td {
padding: 0;
}
table tr td:last-child {
text-align: right;
}
.bold {
font-weight: bold;
}
.right {
text-align: right;
}
.large {
font-size: 1.75em;
}
.total {
font-weight: bold;
color: #fb7578;
}
.logo-container {
margin: 20px 0 70px 0;
}
.invoice-info-container {
font-size: 0.875em;
}
.invoice-info-container td {
padding: 4px 0;
}
.client-name {
font-size: 1.5em;
vertical-align: top;
}
.line-items-container {
margin: 70px 0;
font-size: 0.875em;
}
.line-items-container th {
text-align: left;
color: #999;
border-bottom: 2px solid #ddd;
padding: 10px 0 15px 0;
font-size: 0.75em;
text-transform: uppercase;
}
.line-items-container th:last-child {
text-align: right;
}
.line-items-container td {
padding: 15px 0;
}
.line-items-container tbody tr:first-child td {
padding-top: 25px;
}
.line-items-container.has-bottom-border tbody tr:last-child td {
padding-bottom: 25px;
border-bottom: 2px solid #ddd;
}
.line-items-container.has-bottom-border {
margin-bottom: 0;
}
.line-items-container th.heading-quantity {
width: 50px;
}
.line-items-container th.heading-price {
text-align: right;
width: 100px;
}
.line-items-container th.heading-subtotal {
width: 100px;
}
.payment-info {
width: 38%;
font-size: 0.75em;
line-height: 1.5;
}
.footer {
margin-top: 100px;
}
.footer-thanks {
font-size: 1.125em;
}
.footer-thanks img {
display: inline-block;
position: relative;
top: 1px;
width: 16px;
margin-right: 4px;
}
.footer-info {
float: right;
margin-top: 5px;
font-size: 0.75em;
color: #ccc;
}
.footer-info span {
padding: 0 5px;
color: black;
}
.footer-info span:last-child {
padding-right: 0;
}
.page-container {
display: none;
}