numerus/web/static/invoice.css

173 lines
2.7 KiB
CSS
Raw Permalink Normal View History

.invoice {
display: flex;
}
.invoice header {
flex: 1;
min-width: 18rem;
padding: 0 1rem 0 0;
display: block;
background: initial;
2023-02-25 12:48:57 +00:00
border-right: 1px solid black;
}
.invoice h1 {
font-size: 1em;
}
.invoice > div {
flex: 3;
padding: 0 0 0 2.5rem;
}
.invoice .invoicee, .invoice .invoicer, .invoice .quotee, .invoice .quoter {
2023-02-25 12:48:57 +00:00
font-style: normal;
}
.invoice header > div {
margin-top: 2em;
}
.invoice .invoicer, .invoice .quoter {
2023-02-25 12:48:57 +00:00
margin-top: 9rem;
}
.invoice .invoicee, .invoice .quotee {
2023-02-25 12:48:57 +00:00
margin-top: 1em;
text-align: right;
}
.invoice table {
margin: 5rem 0;
}
.invoice th {
font-weight: normal;
text-transform: uppercase;
}
.invoice thead th {
text-align: left;
2023-02-25 12:48:57 +00:00
border-bottom: 1px solid black;
}
.invoice .tfoot th, .invoice .numeric {
text-align: right;
}
.invoice .notes, .invoice .payment-instructions, .invoice .terms_and_conditions {
white-space: pre-line;
2023-05-23 21:13:21 +00:00
text-align: left;
}
.invoice .terms_and_conditions {
text-transform: uppercase;
font-weight: bold;
}
.invoice .quotee + .terms_and_conditions {
margin-top: 2rem;
}
2023-03-05 17:50:57 +00:00
.invoice .notes + .payment-instructions {
margin-top: 5rem;
}
.invoice td {
vertical-align: top;
}
.invoice tbody, .invoice .legal {
page-break-inside: avoid;
}
.invoice tbody tr {
background-color: initial;
}
.invoice tbody:not(:first-of-type) tr:first-child td, .invoice .tfoot th, .invoice .tfoot td {
padding-top: 1em;
}
.invoice .tfoot.separator th, .invoice .tfoot.separator td {
padding-top: 3em;
}
.invoice tbody .name td:first-child {
font-weight: bold;
}
.invoice tbody td:first-child {
max-width: 15em;
white-space: pre-wrap;
}
.invoice .legal {
font-size: .75em;
2023-02-25 12:48:57 +00:00
text-align: justify;
}
@media screen {
.invoice .legal {
margin-top: 16rem;
}
}
@media print {
@page {
size: A4;
2023-02-25 12:48:57 +00:00
margin: 64px 48px;
}
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html, body {
height: 100%;
}
html {
font-family: sans-serif;
font-size: 62.5%;
}
body {
background-color: white;
color: black;
font-size: 1rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
table {
width: 100%;
border-collapse: collapse;
}
body > header, nav, body > footer {
display: none;
}
2023-02-25 12:48:57 +00:00
.invoice header {
height: 260mm;
}
2023-05-23 21:13:21 +00:00
2023-02-25 12:48:57 +00:00
.invoice .legal {
position: absolute;
width: 40em;
left: 0;
top: 0;
transform-origin: top left;
transform: translateY(250mm) rotate(-90deg);
}
}