Modern: Logo spacing, line spacing, footer spacing

This commit is contained in:
Benjamin Beganović 2021-08-18 11:25:16 +02:00
parent 92071c7aba
commit 919dbd35a8

View File

@ -1,14 +1,14 @@
<style id="style">
:root {
--primary-color: $primary_color;
--secondary-color: $secondary_color;
--primary-color: #298aab;
--secondary-color: #7081e0;
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif;
font-size: "$font_size";
font-size: "7px";
margin: 0;
padding: 0;
zoom: 80%;
@ -16,7 +16,7 @@
@page {
margin: -0.22cm;
size: $page_size $page_layout;
size: A4 portrait;
}
p {
@ -61,7 +61,7 @@
}
.company-logo {
max-width: 65%;
max-width: 55%;
}
#client-details {
@ -149,12 +149,19 @@
}
.footer-content {
display: grid;
gap: 15px;
display: flex;
gap: 20px;
width: 100%;
grid-template-columns: 1fr 1fr 1fr;
/* grid-template-columns: 1fr 1fr 1fr; */
color: #fff4e9;
max-height: 140px;
justify-content: space-between;
}
.footer-company-details-address-wrapper {
display: flex;
gap: 25px;
margin-right: 150px;
}
#company-address,
@ -177,7 +184,7 @@
#table-totals {
display: grid;
grid-template-columns: 2fr 1fr;
padding-top: .5rem;
padding-top: 0.5rem;
padding-left: 3rem;
padding-right: 3rem;
gap: 80px;
@ -189,26 +196,26 @@
}
#table-totals > .totals-table-right-side > * > :nth-child(1) {
text-align: "$dir_text_align";
margin-top: .75rem;
text-align: "left";
margin-top: 0.75rem;
}
#table-totals>.totals-table-right-side> * > :not([hidden]) ~ :not([hidden]) {
#table-totals
> .totals-table-right-side
> *
> :not([hidden])
~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
#table-totals > .totals-table-right-side > * > :nth-child(2) {
text-align: right;
}
#table-totals
> *
[data-element='product-table-balance-due-label'],
#table-totals
> *
[data-element='product-table-balance-due'] {
#table-totals > * [data-element="product-table-balance-due-label"],
#table-totals > * [data-element="product-table-balance-due"] {
font-weight: bold;
font-size: 1.3rem;
}
@ -240,11 +247,12 @@
width: 100%;
}
table.print-content {}
table.print-content {
}
table.print-content th,
table.print-content td {
padding: .2rem .4rem;
padding: 0.2rem 0.4rem;
text-align: left;
vertical-align: top;
border-top: 1px solid #dee2e6;
@ -258,7 +266,7 @@
}
.no-print {
display: none
display: none;
}
}
@ -270,6 +278,10 @@
margin-bottom: 0;
}
[data-ref="product_table-product.description-th"] {
width: 23%;
}
/** Useful snippets, uncomment to enable. **/
/** Hide company logo **/
@ -367,8 +379,10 @@
});
</script>
</div>
<div class="footer-company-details-address-wrapper">
<div id="company-details"></div>
<div id="company-address"></div>
</div>
</div>
</div>
<!-- End Footer -->