Skip to content

Instantly share code, notes, and snippets.

@reformatco
Created October 8, 2012 11:42
Show Gist options
  • Save reformatco/3852078 to your computer and use it in GitHub Desktop.
Save reformatco/3852078 to your computer and use it in GitHub Desktop.

Revisions

  1. @benpalmer79 benpalmer79 revised this gist Oct 8, 2012. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gistfile1.css
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    /* All templates seem to have 1cm padding, must be required */

    #invoice {
    padding:0 1cm 1cm 1cm;
    font-size:9pt;
    @@ -130,6 +132,10 @@ table#invoice-amount {

    }
    }
    &#estimate_items {
    /* Only added if it's an estimate */

    }
    } /* tbody */
    tfoot {
    tr {
  2. @benpalmer79 benpalmer79 created this gist Oct 8, 2012.
    217 changes: 217 additions & 0 deletions gistfile1.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,217 @@
    #invoice {
    padding:0 1cm 1cm 1cm;
    font-size:9pt;
    line-height:12pt;
    }

    #invoice-header {
    .logo {

    }
    #company-address {
    .org {
    strong {

    } /* strong */
    } /* .org */
    .adr {
    .street-address {

    }
    .locality {

    }
    .company-postcode {

    }
    .email {

    }
    .tel {

    }
    .url {

    }
    #sales-tax-reg-number {

    }
    }/* .adr */
    } /* #company-address */
    } /* #invoice-header */

    #invoice-info {
    h2 {
    strong {

    }
    }
    h3 {

    }
    p {
    &#payment-terms {

    }
    &#payment-due {

    }
    &#payment-total {

    }
    }
    } /* #invoice-info */

    #client-details {
    .fn {

    }
    .org {

    }
    .adr {
    .street-address {

    }
    .locality {

    }
    #client-postcode {
    .region {

    }
    .postal-code {

    }
    } /* #client-postcode */
    #your-tax-number {

    }
    }
    }

    table#invoice-amount {
    thead {
    tr {
    &#header_row {
    th {
    &.quantity_th {

    }
    &.details_th {

    }
    &.unitprice_th {

    }
    &.salestax_th {

    }
    &.subtotal_th {

    }
    }
    } /* #header_row */
    }
    } /* thead */
    tbody {
    tr {
    &.item {
    td {
    &.item_l {

    }
    &.item_r {

    }
    }
    }
    &.odd {

    }
    }
    } /* tbody */
    tfoot {
    tr {

    &#discount_tr {

    }
    &#net_total_tr {

    }
    &#vat_tr {

    }
    &#total_tr {
    td {
    &.total {

    }
    &#total_currency {

    }
    }
    } /* #total_tr */
    td {
    &.item_r {

    }
    }
    }
    } /* tfoot */
    }

    #invoice-other {
    h2 {

    }
    #company-reg-number {
    strong {

    }
    }
    #contract-number {
    strong {

    }
    }
    }

    #payment-details {
    h2 {

    }
    #bank_name {

    }
    #sort-code {
    strong {

    }
    }
    #account-number {
    strong {

    }
    }
    #iban {
    strong {

    }
    }
    #bic {
    strong {

    }
    }
    #payment-reference {
    strong {

    }
    }
    }

    #comments {

    }