mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	Update Playful
				
					
				
			This commit is contained in:
		
							parent
							
								
									6adda9d0f6
								
							
						
					
					
						commit
						5fe827e569
					
				@ -95,9 +95,7 @@
 | 
				
			|||||||
        border-bottom: 1px solid var(--primary-color);
 | 
					        border-bottom: 1px solid var(--primary-color);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table,
 | 
					    [data-ref="table"] {
 | 
				
			||||||
    #delivery-note-table,
 | 
					 | 
				
			||||||
    #task-table {
 | 
					 | 
				
			||||||
        padding-left: 3rem;
 | 
					        padding-left: 3rem;
 | 
				
			||||||
        padding-right: 3rem;
 | 
					        padding-right: 3rem;
 | 
				
			||||||
        margin-top: 3rem;
 | 
					        margin-top: 3rem;
 | 
				
			||||||
@ -113,58 +111,42 @@
 | 
				
			|||||||
        color: grey;
 | 
					        color: grey;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > thead,
 | 
					    [data-ref="table"] > thead {
 | 
				
			||||||
    #delivery-note-table > thead,
 | 
					 | 
				
			||||||
    #task-table > thead {
 | 
					 | 
				
			||||||
        text-align: left;
 | 
					        text-align: left;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > thead > tr > th,
 | 
					    [data-ref="table"] > thead > tr > th {
 | 
				
			||||||
    #delivery-note-table > thead > tr > th,
 | 
					 | 
				
			||||||
    #task-table > thead > tr > th {
 | 
					 | 
				
			||||||
        font-size: 1.2rem;
 | 
					        font-size: 1.2rem;
 | 
				
			||||||
        padding: 1rem;
 | 
					        padding: 1rem;
 | 
				
			||||||
        background: var(--primary-color);
 | 
					        background: var(--primary-color);
 | 
				
			||||||
        color: white;
 | 
					        color: white;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > thead tr > th:last-child,
 | 
					    [data-ref="table"] > thead tr > th:last-child {
 | 
				
			||||||
    #delivery-note-table > thead tr > th:last-child,
 | 
					 | 
				
			||||||
    #task-table > thead tr > th:last-child {
 | 
					 | 
				
			||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > thead tr > th:first-child,
 | 
					    [data-ref="table"] > thead tr > th:first-child {
 | 
				
			||||||
    #delivery-note-table > thead tr > th:first-child,
 | 
					 | 
				
			||||||
    #task-table > thead tr > th:first-child {
 | 
					 | 
				
			||||||
        border-top-left-radius: 10px;
 | 
					        border-top-left-radius: 10px;
 | 
				
			||||||
        border-bottom-left-radius: 10px;
 | 
					        border-bottom-left-radius: 10px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > thead tr > th:last-child,
 | 
					    [data-ref="table"] > thead tr > th:last-child {
 | 
				
			||||||
    #delivery-note-table > thead tr > th:last-child,
 | 
					 | 
				
			||||||
    #task-table > thead tr > th:last-child {
 | 
					 | 
				
			||||||
        border-top-right-radius: 10px;
 | 
					        border-top-right-radius: 10px;
 | 
				
			||||||
        border-bottom-right-radius: 10px;
 | 
					        border-bottom-right-radius: 10px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > tbody > tr > td,
 | 
					    [data-ref="table"] > tbody > tr > td {
 | 
				
			||||||
    #delivery-note-table > tbody > tr > td,
 | 
					 | 
				
			||||||
    #task-table > tbody > tr > td {
 | 
					 | 
				
			||||||
        background-color: #F7F7F7;
 | 
					        background-color: #F7F7F7;
 | 
				
			||||||
        border-bottom: 1px solid var(--primary-color);
 | 
					        border-bottom: 1px solid var(--primary-color);
 | 
				
			||||||
        padding: 1rem;
 | 
					        padding: 1rem;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > tbody > tr > td:first-child,
 | 
					    [data-ref="table"] > tbody > tr > td:first-child {
 | 
				
			||||||
    #delivery-note-table > tbody > tr > td:first-child,
 | 
					 | 
				
			||||||
    #task-table > tbody > tr > td:first-child {
 | 
					 | 
				
			||||||
        color: var(--primary-color);
 | 
					        color: var(--primary-color);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #product-table > tbody > tr > td:last-child,
 | 
					    [data-ref="table"] > tbody > tr > td:last-child {
 | 
				
			||||||
    #delivery-note-table > tbody > tr > td:last-child,
 | 
					 | 
				
			||||||
    #task-table > tbody > tr > td:last-child {
 | 
					 | 
				
			||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -246,9 +228,7 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** Markdown-specific styles. **/
 | 
					    /** Markdown-specific styles. **/
 | 
				
			||||||
    #product-table h3,
 | 
					    [data-ref="table"] h3 {
 | 
				
			||||||
    #task-table h3,
 | 
					 | 
				
			||||||
    #delivery-note-table h3 {
 | 
					 | 
				
			||||||
        font-size: 1rem;
 | 
					        font-size: 1rem;
 | 
				
			||||||
        margin-bottom: 0;
 | 
					        margin-bottom: 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -259,15 +239,22 @@
 | 
				
			|||||||
        min-width: 100%;
 | 
					        min-width: 100%;
 | 
				
			||||||
        display: grid;
 | 
					        display: grid;
 | 
				
			||||||
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
 | 
					        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
 | 
				
			||||||
        margin-left: -10px;    
 | 
					        margin-left: -10px;
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   #footer-colors > * {
 | 
					   #footer-colors > * {
 | 
				
			||||||
        padding: 10px;
 | 
					        padding: 10px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [data-ref="statement-totals"] {
 | 
				
			||||||
 | 
					        margin-top: 1rem;
 | 
				
			||||||
 | 
					        text-align: right;
 | 
				
			||||||
 | 
					        padding-left: 3rem;
 | 
				
			||||||
 | 
					        padding-right: 3rem;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** Useful snippets, uncomment to enable. **/
 | 
					    /** Useful snippets, uncomment to enable. **/
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    /** Hide company logo **/
 | 
					    /** Hide company logo **/
 | 
				
			||||||
    /* .company-logo { display: none } */
 | 
					    /* .company-logo { display: none } */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -333,11 +320,20 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <table id="product-table" cellspacing="0"></table>
 | 
					    <table id="product-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <table id="task-table" cellspacing="0"></table>
 | 
					    <table id="task-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <table id="delivery-note-table" cellspacing="0"></table>
 | 
					    <table id="delivery-note-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <table id="statement-invoice-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					    <div id="statement-invoice-table-totals" data-ref="statement-totals"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <table id="statement-payment-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					    <div id="statement-payment-table-totals" data-ref="statement-totals"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <table id="statement-aging-table" cellspacing="0" data-ref="table"></table>
 | 
				
			||||||
 | 
					    <div id="statement-aging-table-totals" data-ref="statement-totals"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div id="table-totals" cellspacing="0"></div>
 | 
					    <div id="table-totals" cellspacing="0"></div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
@ -359,7 +355,12 @@
 | 
				
			|||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
        // Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
 | 
					        // Clear up space a bit, if [product-table, tasks-table, delivery-note-table] isn't present.
 | 
				
			||||||
        document.addEventListener('DOMContentLoaded', () => {
 | 
					        document.addEventListener('DOMContentLoaded', () => {
 | 
				
			||||||
            ['product-table', 'task-table', 'delivery-note-table'].forEach((tableIdentifier) => {
 | 
					            let tables = [
 | 
				
			||||||
 | 
					                'product-table', 'task-table', 'delivery-note-table',
 | 
				
			||||||
 | 
					                'statement-invoice-table', 'statement-payment-table', 'statement-aging-table-totals',
 | 
				
			||||||
 | 
					            ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            tables.forEach((tableIdentifier) => {
 | 
				
			||||||
                document.getElementById(tableIdentifier).childElementCount === 0
 | 
					                document.getElementById(tableIdentifier).childElementCount === 0
 | 
				
			||||||
                    ? document.getElementById(tableIdentifier).style.display = 'none'
 | 
					                    ? document.getElementById(tableIdentifier).style.display = 'none'
 | 
				
			||||||
                    : '';
 | 
					                    : '';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user