mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Update designs with new table footer
This commit is contained in:
parent
94a7840fdb
commit
04c807c0b9
@ -89,31 +89,48 @@
|
||||
padding: 2rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table > tbody > tr:nth-child(odd) {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1.5rem;
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1.2rem;
|
||||
padding-left: 1.2rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due-label'],
|
||||
#product-table > tfoot [data-element='balance-due'] {
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer > * [data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due'] {
|
||||
#product-table-footer > * [data-element='product-table-balance-due'] {
|
||||
color: #35a39a;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body id="body">
|
||||
<div class="header-wrapper" id="header">
|
||||
<div> <!-- Empty space placeholder--> </div>
|
||||
<div><!-- Empty space placeholder--></div>
|
||||
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
@ -134,6 +151,8 @@
|
||||
</div>
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
|
@ -4,12 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<style>
|
||||
<style id="style">
|
||||
body {
|
||||
margin: 2rem;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.header-container {
|
||||
@ -98,29 +99,20 @@
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
border-top-right-radius: 1rem;
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr:nth-child(odd) > td {
|
||||
background: #e8e8e8;
|
||||
}
|
||||
#product-table > tbody > tr:nth-child(even) > td {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
#product-table > tfoot > tr:nth-last-child(1) > td:first-child {
|
||||
border-bottom-left-radius: 1rem;
|
||||
}
|
||||
#product-table > tfoot > tr:nth-last-child(1) > td:last-child {
|
||||
border-bottom-right-radius: 1rem;
|
||||
}
|
||||
#product-table > tfoot > td {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
[data-element='product-table-balance-due-label'],
|
||||
[data-element='product-table-balance-due'] {
|
||||
@ -134,6 +126,37 @@
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
#product-table-footer > *:last-child {
|
||||
border-bottom-left-radius: 1rem;
|
||||
border-bottom-right-radius: 1rem;
|
||||
}
|
||||
#product-table-footer > * {
|
||||
background-color: #f7f7f7;
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
gap: 20px;
|
||||
padding-left: 1rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.8rem;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: red;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -160,6 +183,8 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -101,13 +101,31 @@
|
||||
#product-table > tbody > tr:nth-child(odd) {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due'] {
|
||||
color: #67b1cc;
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: #67b1cc;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -133,6 +151,8 @@
|
||||
<!-- product_table -->
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -85,21 +85,40 @@
|
||||
font-size: 1.1rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > tbody > tr:nth-child(odd) {
|
||||
background-color: #e8e8e8;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
#product-table > tfoot > tr:last-child > td {
|
||||
border-top: 5px solid #b21c53;
|
||||
}
|
||||
#product-table > tfoot [data-element='product-table-balance-due'] {
|
||||
color: #b21c53;
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
color: #b21c53;
|
||||
}
|
||||
#product-table-footer > * > * {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
#product-table-footer > *:last-child > * {
|
||||
border-top: 5px solid #b21c53;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -131,6 +150,8 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -95,19 +95,15 @@
|
||||
color: #396d49;
|
||||
font-weight: medium;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid;
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table
|
||||
> tfoot
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table > tfoot [data-element='product-table-balance-due'] {
|
||||
border-top: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.thanks-label {
|
||||
@ -118,6 +114,31 @@
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 4px solid;
|
||||
}
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: #396d49;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -154,6 +175,8 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer">
|
||||
<p class="thanks-label">$thanks_label!</p>
|
||||
<hr class="double-border" />
|
||||
|
@ -108,23 +108,41 @@
|
||||
padding-left: 1rem;
|
||||
border-left: 1px solid;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
padding: 1rem;
|
||||
border-left: 1px solid;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
#product-table > tbody > tr td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tfoot > tr > td:nth-last-child(1),
|
||||
#product-table > tfoot > tr td:nth-last-child(2) {
|
||||
border-left: 1px solid;
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1.5rem;
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table
|
||||
> tfoot
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table > tfoot [data-element='product-table-balance-due'] {
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: #bba238;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -181,6 +199,8 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -79,6 +79,9 @@
|
||||
background-color: #3f3e3c;
|
||||
color: white;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid #3f3e3c;
|
||||
padding: 1rem;
|
||||
@ -86,19 +89,8 @@
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due-row'] > td {
|
||||
background-color: #3f3e3c;
|
||||
color: white;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due-label'] {
|
||||
font-weight: bold;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
#product-table > tfoot [data-element='balance-due'] {
|
||||
font-size: 1.2rem;
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.footer-wrapper {
|
||||
@ -121,6 +113,36 @@
|
||||
#company-details > * {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
margin-top: 1.5rem;
|
||||
margin-right: 1.5rem;
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
#product-table-footer > * > * {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
#product-table-footer > *:last-child {
|
||||
background-color: #3f3e3c;
|
||||
color: white;
|
||||
padding-top: 0.7rem;
|
||||
padding-bottom: 0.7rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -143,17 +165,19 @@
|
||||
|
||||
<div class="table-wrapper">
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-wrapper">
|
||||
<div>
|
||||
<!-- Placeholder for offset -->
|
||||
</div>
|
||||
|
||||
|
||||
<div id="company-details"></div>
|
||||
<div id="company-address"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -77,18 +77,35 @@
|
||||
padding: 1rem;
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
#product-table > thead > tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > tbody > tr > td {
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
padding: 1rem;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table
|
||||
> tfoot
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table > tfoot [data-element='product-table-balance-due'] {
|
||||
background-color: #e6e6e6;
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -111,9 +128,11 @@
|
||||
</div>
|
||||
|
||||
<div id="client-details"></div>
|
||||
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -98,6 +98,9 @@
|
||||
background: #009e90;
|
||||
color: white;
|
||||
}
|
||||
#product-table > thead tr > th:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table > thead tr > th:first-child {
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
@ -113,22 +116,33 @@
|
||||
#product-table > tbody > tr > td:first-child {
|
||||
color: #bb3a24;
|
||||
}
|
||||
#product-table > tfoot > tr > td {
|
||||
padding: 1rem;
|
||||
#product-table > tbody > tr > td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
#product-table
|
||||
> tfoot
|
||||
[data-element='product-table-balance-due-label'] {
|
||||
background-color: #009e90;
|
||||
color: white;
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
|
||||
#product-table-footer > * {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1fr 1fr;
|
||||
padding-top: 1rem;
|
||||
padding-left: 1rem;
|
||||
gap: 20px;
|
||||
}
|
||||
#product-table > tfoot [data-element='product-table-balance-due'] {
|
||||
background-color: #009e90;
|
||||
color: white;
|
||||
border-top-right-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due-label'],
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
font-weight: bold;
|
||||
}
|
||||
#product-table-footer
|
||||
> *
|
||||
[data-element='product-table-balance-due'] {
|
||||
color: #009e90;
|
||||
}
|
||||
#product-table-footer > * > :last-child {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -168,6 +182,8 @@
|
||||
|
||||
<table id="product-table" cellspacing="0"></table>
|
||||
|
||||
<div id="product-table-footer" cellspacing="0"></div>
|
||||
|
||||
<footer id="footer"></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user