diff --git a/public/locales/bn/customizations-modal.json b/public/locales/bn/customizations-modal.json new file mode 100644 index 0000000..78b02c1 --- /dev/null +++ b/public/locales/bn/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customize your invoices", + "textarea_label": "Insert your custom CSS", + "updated": "Updated" +} diff --git a/public/locales/bn/invoice-controls.json b/public/locales/bn/invoice-controls.json index 8fb62fa..05640d9 100644 --- a/public/locales/bn/invoice-controls.json +++ b/public/locales/bn/invoice-controls.json @@ -1,6 +1,10 @@ { "back": "ব্যাক", "book": "বুক", + "design_and_layout": "Design & layout", + "compact": "Compact", + "comfortable": "Comfortable", + "customize": "Customize", "download_pdf": "ডাউনলোড পিডিএফ", "delete": "ডিলিট", "delete_modal": { diff --git a/public/locales/en/customizations-modal.json b/public/locales/en/customizations-modal.json new file mode 100644 index 0000000..78b02c1 --- /dev/null +++ b/public/locales/en/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customize your invoices", + "textarea_label": "Insert your custom CSS", + "updated": "Updated" +} diff --git a/public/locales/en/invoice-controls.json b/public/locales/en/invoice-controls.json index 7f9ca8b..ade6d05 100644 --- a/public/locales/en/invoice-controls.json +++ b/public/locales/en/invoice-controls.json @@ -1,9 +1,10 @@ { "back": "Back", "book": "Book", - "density": "Density", + "design_and_layout": "Design & layout", "compact": "Compact", "comfortable": "Comfortable", + "customize": "Customize", "download_pdf": "Download PDF", "delete": "Delete", "delete_modal": { diff --git a/public/locales/es/customizations-modal.json b/public/locales/es/customizations-modal.json new file mode 100644 index 0000000..78b02c1 --- /dev/null +++ b/public/locales/es/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customize your invoices", + "textarea_label": "Insert your custom CSS", + "updated": "Updated" +} diff --git a/public/locales/es/invoice-controls.json b/public/locales/es/invoice-controls.json index 9dfd3bc..af0001f 100644 --- a/public/locales/es/invoice-controls.json +++ b/public/locales/es/invoice-controls.json @@ -1,6 +1,10 @@ { "back": "Atrás", "book": "Libro", + "design_and_layout": "Design & layout", + "compact": "Compact", + "comfortable": "Comfortable", + "customize": "Customize", "download_pdf": "Descargar PDF", "delete": "Eliminar", "delete_modal": { diff --git a/public/locales/et/customizations-modal.json b/public/locales/et/customizations-modal.json new file mode 100644 index 0000000..78b02c1 --- /dev/null +++ b/public/locales/et/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customize your invoices", + "textarea_label": "Insert your custom CSS", + "updated": "Updated" +} diff --git a/public/locales/et/invoice-controls.json b/public/locales/et/invoice-controls.json index f5ca196..0fc77ae 100644 --- a/public/locales/et/invoice-controls.json +++ b/public/locales/et/invoice-controls.json @@ -1,6 +1,10 @@ { "back": "Tagasi", "book": "Kinnita", + "design_and_layout": "Design & layout", + "compact": "Compact", + "comfortable": "Comfortable", + "customize": "Customize", "download_pdf": "Lae alla PDF", "delete": "Kustuta", "delete_modal": { diff --git a/public/locales/fa/customizations-modal.json b/public/locales/fa/customizations-modal.json new file mode 100644 index 0000000..78b02c1 --- /dev/null +++ b/public/locales/fa/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customize your invoices", + "textarea_label": "Insert your custom CSS", + "updated": "Updated" +} diff --git a/public/locales/fa/invoice-controls.json b/public/locales/fa/invoice-controls.json index 33cc43d..1b475ea 100644 --- a/public/locales/fa/invoice-controls.json +++ b/public/locales/fa/invoice-controls.json @@ -1,6 +1,10 @@ { "back": "بازگشت", "book": "کتاب", + "design_and_layout": "Design & layout", + "compact": "Compact", + "comfortable": "Comfortable", + "customize": "Customize", "download_pdf": "بارگیری PDF", "delete": "حذف", "delete_modal": { diff --git a/src/assets/scss/components/_invoice.scss b/src/assets/scss/components/_invoice.scss index 80e1a5f..6fae16c 100644 --- a/src/assets/scss/components/_invoice.scss +++ b/src/assets/scss/components/_invoice.scss @@ -10,7 +10,6 @@ box-shadow: $box-shadow-light-1; font-size: 16px; line-height: 24px; - font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; } &__row { @@ -36,18 +35,26 @@ @page { size: A4; margin: 0; + //-webkit-print-color-adjust: exact; } @media print { html, body { width: 210mm; height: 297mm; - color: $dark; + //color: $dark; + -webkit-print-color-adjust: exact; + print-color-adjust: exact; } .table { - color: $dark; + //color: $dark; + td, th { + background-color: inherit !important; + } } .invoice-box { box-shadow: none; + -webkit-print-color-adjust: exact; + print-color-adjust: exact; } } diff --git a/src/components/invoices/CustomizationsModal.vue b/src/components/invoices/CustomizationsModal.vue new file mode 100644 index 0000000..bcf788a --- /dev/null +++ b/src/components/invoices/CustomizationsModal.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/components/invoices/InvoiceControls.vue b/src/components/invoices/InvoiceControls.vue index b6138d4..72f8e6e 100644 --- a/src/components/invoices/InvoiceControls.vue +++ b/src/components/invoices/InvoiceControls.vue @@ -20,10 +20,13 @@ - + {{ invoice.is_compact ? $t('comfortable') : $t('compact') }} + + {{ $t('customize') }} + {{ $t('download_pdf') }} @@ -37,11 +40,18 @@