mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Email pdf generation
Added invoice template Add latest dompdf release
This commit is contained in:
57
css/invoice.css
Executable file
57
css/invoice.css
Executable file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
CSS-Tricks Example
|
||||
by Chris Coyier
|
||||
http://css-tricks.com
|
||||
*/
|
||||
|
||||
* { margin: 0; padding: 0; }
|
||||
/*body { font: 14px/1.4 Georgia, serif; }*/
|
||||
#page-wrap { width: 800px; margin: 0 auto; }
|
||||
|
||||
#page-wrap textarea { border: 0; font: 14px Georgia, Sans-Serif; overflow: hidden; resize: none; }
|
||||
#page-wrap table { border-collapse: collapse; }
|
||||
#page-wrap table td, #page-wrap table th { border: 1px solid black; padding: 5px; }
|
||||
|
||||
#header { height: 30px; width: 100%; margin: 20px 0; background: #222; text-align: center; color: white; font: bold 26px Helvetica, Sans-Serif; text-decoration: uppercase; letter-spacing: 4px; padding: 8px 0px; }
|
||||
|
||||
/* first row */
|
||||
#logo { text-align: right; margin-top: 15px; float: left; position: relative; border: 1px solid #fff; max-width: 150px; max-height: 150px; overflow: hidden; }
|
||||
/*#logo:hover, #logo.edit { border: 1px solid #000; margin-top: 0px; max-height: 125px; }*/
|
||||
#logoctr { display: none; }
|
||||
#logo:hover #logoctr, #logo.edit #logoctr { display: block; text-align: right; line-height: 25px; background: #eee; padding: 0 5px; }
|
||||
#logohelp { text-align: left; display: none; font-style: italic; padding: 10px 5px;}
|
||||
#logohelp input { margin-bottom: 5px; }
|
||||
.edit #logohelp { display: block; }
|
||||
.edit #save-logo, .edit #cancel-logo { display: inline; }
|
||||
.edit #image, #save-logo, #cancel-logo, .edit #change-logo, .edit #delete-logo { display: none; }
|
||||
#customer-title { height: 100px; float: right; margin-top:40px;}
|
||||
#customer-title textarea { width: 150px; }
|
||||
|
||||
/* second row */
|
||||
#block2 { overflow: hidden; }
|
||||
#company-title { float: left; }
|
||||
#meta { margin-top: 1px; width: 300px; float: right; }
|
||||
#meta td { text-align: right; }
|
||||
#meta td.meta-head { text-align: left; background: #eee; }
|
||||
#meta td textarea { width: 100%; height: 20px; text-align: right; }
|
||||
|
||||
#items { clear: both; width: 100%; margin: 30px 0 0 0; border: 1px solid black; }
|
||||
#items th { background: #eee; }
|
||||
#items textarea { width: 80px; height: 40px; }
|
||||
#items tr.item-row td { border: 0; vertical-align: top; }
|
||||
#items td.description { width: 300px; }
|
||||
#items td.item-name { width: 175px; }
|
||||
#items td.description textarea, #items td.item-name textarea { width: 100%; }
|
||||
#items td.total-line { border-right: 0; text-align: right; }
|
||||
#items td.total-value { border-left: 0; padding: 10px; }
|
||||
#items td.total-value textarea { height: 20px; background: none; }
|
||||
#items td.total-line textarea { height: 20px; width:150px; background: none; }
|
||||
#items td.balance { background: #eee; }
|
||||
#items td.blank { border: 0; }
|
||||
|
||||
#terms { text-align: center; margin: 20px 0 0 0; }
|
||||
#terms h5 { text-transform: uppercase; font: 13px Helvetica, Sans-Serif; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }
|
||||
#terms textarea { width: 100%; text-align: center;}
|
||||
|
||||
.delete-wpr { position: relative; }
|
||||
.delete { display: block; color: #000; text-decoration: none; position: absolute; background: #EEEEEE; font-weight: bold; padding: 0px 3px; border: 1px solid; top: -6px; left: -22px; font-family: Verdana; font-size: 12px; }
|
||||
51
css/invoice_email.css
Executable file
51
css/invoice_email.css
Executable file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
CSS-Tricks Example
|
||||
by Chris Coyier
|
||||
http://css-tricks.com
|
||||
*/
|
||||
#menubar, #footer { display: none; }
|
||||
* { margin: 0; padding: 0; }
|
||||
body { font-family: Helvetica; font-size: 13px; }
|
||||
#page-wrap { width: 800px; margin: 0 auto; }
|
||||
|
||||
#page-wrap { font-family: Helvetica; }
|
||||
#page-wrap table { border-collapse: collapse; }
|
||||
#page-wrap table#items td { padding: 10px; }
|
||||
#page-wrap #meta table td, #page-wrap table th { border: 1px solid black; padding: 5px; }
|
||||
#header { height: 30px; width: 100%; margin: 20px 0; background: #222222; text-align: center; color: white; font: bold 26px Helvetica; text-decoration: uppercase; letter-spacing: 4px; padding: 8px 0px; }
|
||||
|
||||
/* first row */
|
||||
#info { width: 100%; height: 130px; margin: 10px 0 20px 0; }
|
||||
#logo { width: 50%; text-align: left; border: 1px solid #ffffff; overflow: hidden; }
|
||||
#image { height: 120px; width: 163px; }
|
||||
#logoctr { display: none; }
|
||||
#logo:hover #logoctr, #logo.edit #logoctr { display: block; text-align: right; line-height: 25px; background: #eee; padding: 0 5px; }
|
||||
#logohelp { text-align: left; display: none; font-style: italic; padding: 10px 5px;}
|
||||
#logohelp input { margin-bottom: 5px; }
|
||||
.edit #logohelp { display: block; }
|
||||
.edit #save-logo, .edit #cancel-logo { display: inline; }
|
||||
.edit #image, #save-logo, #cancel-logo, .edit #change-logo, .edit #delete-logo { display: none; }
|
||||
#customer-title { width: 50%; text-align: right; }
|
||||
#terms div { width: 100%; text-align: center; margin-bottom: 10px;}
|
||||
|
||||
/* second row */
|
||||
#company-title { width: 50%; padding-left: 20px; }
|
||||
#meta td { text-align: right; }
|
||||
#meta td.meta-head { text-align: left; background: #eee; }
|
||||
|
||||
#items { width: 100%; border: 1px solid black; }
|
||||
#items th { background: #eee; }
|
||||
#items tr.item-row td { border: 0; vertical-align: top; }
|
||||
#items td.description { width: 300px; }
|
||||
#items td.item-name { width: 175px; }
|
||||
#items td.total-line { text-align: right; border-width: 1px 0 1px 1px; border-style: solid; }
|
||||
#items td.total-value { border-width: 1px 0px 1px 0; border-style: solid; }
|
||||
#items td.centered-value { text-align: center; }
|
||||
#items td.balance { background: #eeeee; }
|
||||
#items td.blank { border: 0; }
|
||||
|
||||
#terms { text-align: center; margin: 20px 0; }
|
||||
#terms h5 { border-bottom: 1px solid black; font: 13px Helvetica, Sans-Serif; padding: 8px 0; margin: 8px 0; line-height: 1.3em; }
|
||||
|
||||
.delete-wpr { position: relative; }
|
||||
.delete { display: block; color: #000; text-decoration: none; position: absolute; background: #EEEEEE; font-weight: bold; padding: 0px 3px; border: 1px solid; top: -6px; left: -22px; font-family: Verdana; font-size: 12px; }
|
||||
@@ -8,6 +8,7 @@
|
||||
@import url(tables.css);
|
||||
@import url(thickbox.css);
|
||||
@import url(datepicker.css);
|
||||
@import url(invoice.css);
|
||||
|
||||
body
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user