mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:07:33 -05:00 
			
		
		
		
	Modern: Logo spacing, line spacing, footer spacing
This commit is contained in:
		
							parent
							
								
									92071c7aba
								
							
						
					
					
						commit
						919dbd35a8
					
				@ -1,14 +1,14 @@
 | 
				
			|||||||
<style id="style">
 | 
					<style id="style">
 | 
				
			||||||
      :root {
 | 
					      :root {
 | 
				
			||||||
        --primary-color: $primary_color;
 | 
					        --primary-color: #298aab;
 | 
				
			||||||
        --secondary-color: $secondary_color;
 | 
					        --secondary-color: #7081e0;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      body {
 | 
					      body {
 | 
				
			||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: Arial, Helvetica, sans-serif;
 | 
					        font-family: Arial, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: "7px";
 | 
				
			||||||
        margin: 0;
 | 
					        margin: 0;
 | 
				
			||||||
        padding: 0;
 | 
					        padding: 0;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
@ -16,7 +16,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      @page {
 | 
					      @page {
 | 
				
			||||||
        margin: -0.22cm;
 | 
					        margin: -0.22cm;
 | 
				
			||||||
        size: $page_size $page_layout;
 | 
					        size: A4 portrait;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      p {
 | 
					      p {
 | 
				
			||||||
@ -61,7 +61,7 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      .company-logo {
 | 
					      .company-logo {
 | 
				
			||||||
        max-width: 65%;
 | 
					        max-width: 55%;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      #client-details {
 | 
					      #client-details {
 | 
				
			||||||
@ -149,12 +149,19 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      .footer-content {
 | 
					      .footer-content {
 | 
				
			||||||
        display: grid;
 | 
					        display: flex;
 | 
				
			||||||
        gap: 15px;
 | 
					        gap: 20px;
 | 
				
			||||||
        width: 100%;
 | 
					        width: 100%;
 | 
				
			||||||
        grid-template-columns: 1fr 1fr 1fr;
 | 
					        /* grid-template-columns: 1fr 1fr 1fr; */
 | 
				
			||||||
        color: #fff4e9;
 | 
					        color: #fff4e9;
 | 
				
			||||||
        max-height: 140px;
 | 
					        max-height: 140px;
 | 
				
			||||||
 | 
					        justify-content: space-between;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      .footer-company-details-address-wrapper {
 | 
				
			||||||
 | 
					        display: flex;
 | 
				
			||||||
 | 
					        gap: 25px;
 | 
				
			||||||
 | 
					        margin-right: 150px;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      #company-address,
 | 
					      #company-address,
 | 
				
			||||||
@ -177,38 +184,38 @@
 | 
				
			|||||||
      #table-totals {
 | 
					      #table-totals {
 | 
				
			||||||
        display: grid;
 | 
					        display: grid;
 | 
				
			||||||
        grid-template-columns: 2fr 1fr;
 | 
					        grid-template-columns: 2fr 1fr;
 | 
				
			||||||
        padding-top: .5rem;
 | 
					        padding-top: 0.5rem;
 | 
				
			||||||
        padding-left: 3rem;
 | 
					        padding-left: 3rem;
 | 
				
			||||||
        padding-right: 3rem;
 | 
					        padding-right: 3rem;
 | 
				
			||||||
        gap: 80px;
 | 
					        gap: 80px;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #table-totals .totals-table-right-side>* {
 | 
					      #table-totals .totals-table-right-side > * {
 | 
				
			||||||
        display: grid;
 | 
					        display: grid;
 | 
				
			||||||
        grid-template-columns: 1fr 1fr;
 | 
					        grid-template-columns: 1fr 1fr;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #table-totals>.totals-table-right-side>*> :nth-child(1) {
 | 
					      #table-totals > .totals-table-right-side > * > :nth-child(1) {
 | 
				
			||||||
        text-align: "$dir_text_align";
 | 
					        text-align: "left";
 | 
				
			||||||
        margin-top: .75rem;
 | 
					        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;
 | 
					        --tw-space-y-reverse: 0;
 | 
				
			||||||
        margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
 | 
					        margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
 | 
				
			||||||
        margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
 | 
					        margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #table-totals>.totals-table-right-side>*> :nth-child(2) {
 | 
					      #table-totals > .totals-table-right-side > * > :nth-child(2) {
 | 
				
			||||||
        text-align: right;
 | 
					        text-align: right;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #table-totals
 | 
					      #table-totals > * [data-element="product-table-balance-due-label"],
 | 
				
			||||||
    > *
 | 
					      #table-totals > * [data-element="product-table-balance-due"] {
 | 
				
			||||||
    [data-element='product-table-balance-due-label'],
 | 
					 | 
				
			||||||
    #table-totals
 | 
					 | 
				
			||||||
    > *
 | 
					 | 
				
			||||||
    [data-element='product-table-balance-due'] {
 | 
					 | 
				
			||||||
        font-weight: bold;
 | 
					        font-weight: bold;
 | 
				
			||||||
        font-size: 1.3rem;
 | 
					        font-size: 1.3rem;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -240,11 +247,12 @@
 | 
				
			|||||||
        width: 100%;
 | 
					        width: 100%;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    table.print-content {}
 | 
					      table.print-content {
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      table.print-content th,
 | 
					      table.print-content th,
 | 
				
			||||||
      table.print-content td {
 | 
					      table.print-content td {
 | 
				
			||||||
        padding: .2rem .4rem;
 | 
					        padding: 0.2rem 0.4rem;
 | 
				
			||||||
        text-align: left;
 | 
					        text-align: left;
 | 
				
			||||||
        vertical-align: top;
 | 
					        vertical-align: top;
 | 
				
			||||||
        border-top: 1px solid #dee2e6;
 | 
					        border-top: 1px solid #dee2e6;
 | 
				
			||||||
@ -258,7 +266,7 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        .no-print {
 | 
					        .no-print {
 | 
				
			||||||
            display: none
 | 
					          display: none;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -270,6 +278,10 @@
 | 
				
			|||||||
        margin-bottom: 0;
 | 
					        margin-bottom: 0;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      [data-ref="product_table-product.description-th"] {
 | 
				
			||||||
 | 
					        width: 23%;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      /** Useful snippets, uncomment to enable. **/
 | 
					      /** Useful snippets, uncomment to enable. **/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      /** Hide company logo **/
 | 
					      /** Hide company logo **/
 | 
				
			||||||
@ -367,8 +379,10 @@
 | 
				
			|||||||
                });
 | 
					                });
 | 
				
			||||||
            </script>
 | 
					            </script>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					        <div class="footer-company-details-address-wrapper">
 | 
				
			||||||
            <div id="company-details"></div>
 | 
					            <div id="company-details"></div>
 | 
				
			||||||
            <div id="company-address"></div>
 | 
					            <div id="company-address"></div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
<!-- End Footer -->
 | 
					<!-- End Footer -->
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user