ln.templates/ln.templates.service/storage/resources/css/default.scss

223 lines
2.6 KiB
SCSS

@import "reset";
@page {
size: A4;
margin: 1.7cm 2cm 1.7cm 2.5cm;
}
body {
padding: 0;
margin: 0;
font-size: 0.4cm;
font-family: "Source Code Pro";
}
.small {
font-size: 0.3cm;
}
table {
width: 100%;
page-break-inside: auto;
//border: 1px dotted black;
}
tr {
page-break-inside: avoid;
}
td {
vertical-align: top;
//border: 1px dotted black;
}
.clear {
clear: both;
}
header {
position: relative;
width: 100%;
padding-bottom: 1cm;
img {
position: absolute;
right: 0cm;
width: 7cm;
}
.right {
float: right;
padding-top: 2cm;
width: 7cm;
font-size: 0.4cm;
h2 {
width: 100%;
text-align: right;
margin-bottom: 0.2cm;
}
}
.address {
position: absolute;
left: 0.5cm;
top: 3.8cm;
width: 8cm;
.sender {
font-size: 0.25cm;
text-decoration: underline;
margin-bottom: 0.1cm;
}
}
}
footer {
display: block;
width: 100%;
//background-color: aqua;
font-size: 0.25cm;
.duo {
div {
width: 100%;
}
}
}
main {
display: inline-block;
}
.duo {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.1cm;
width: 100%;
:first-child {
flex-grow: 0;
flex-shrink: 1;
}
:last-child {
position: relative;
flex-grow: 1;
flex-shrink: 0;
text-align: right;
}
&.nowrap {
flex-wrap: nowrap;
}
}
.orderlines {
font-size: 0.35cm;
thead {
font-weight: bold;
text-align: left;
}
td {
padding-right: 0.3cm;
white-space: nowrap;
vertical-align: top;
}
td:nth-of-type(2) {
width: 99%;
}
tbody {
tr:not(.break-avoid-after) > td {
padding-bottom: 0.3cm;
}
.text {
padding-left: 1.5cm;
padding-right: 1cm;
text-align: justify;
}
}
}
.break-avoid-after {
page-break-after: avoid;
page-break-inside: avoid;
}
.qrcode {
& > svg {
display: inline-block;
max-width: 3cm;
max-height: 3cm;
}
}
.mb {
margin-bottom: 0.2cm;
td {
margin-bottom: 0.2cm;
}
}
.mt {
margin-top: 0.2cm;
td {
margin-top: 0.2cm;
}
}
.pb {
padding-bottom: 0.2cm;
td {
padding-bottom: 0.2cm;
}
}
.pt {
padding-top: 0.2cm;
td {
padding-top: 0.2cm;
}
}
.text {
margin-bottom: 1cm;
white-space: pre-wrap;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
h1, h2, h3, h4 {
padding: 0cm;
margin: 0cm;
}
h1 {
font-size: 0.8cm;
}
h2 {
font-size: 0.5cm;
}
b, em {
font-weight: bold;
}