diff --git a/home.css b/home.css index 0dc5f4d..2202c09 100644 --- a/home.css +++ b/home.css @@ -2,7 +2,7 @@ body { margin: 0; padding: 0; font-family: "Raleway", sans-serif; - background-color: #F9FAFB; + background-color: #f2f2f2; color: #111827; text-align: center; } @@ -13,7 +13,7 @@ body { align-items: center; padding-left: 15px; border-bottom: 1.50px solid #111827; - background-color: #F9FAFB; + background-color: #f2f2f2; color: #111827; text-decoration: none; } @@ -93,3 +93,9 @@ body { .arrow { margin-left: 5px; } + +@media (max-width: 768px) { + .hero h1{ + font-size: 4rem; + } +} \ No newline at end of file diff --git a/invoice.html b/invoice.html index 9e1ab69..4cf795c 100644 --- a/invoice.html +++ b/invoice.html @@ -283,9 +283,10 @@

Invoice Preview

/>
- +
Invoice Preview readonly />
- + Invoice Items - +
+ +
diff --git a/style.css b/style.css index ca81a16..b506322 100644 --- a/style.css +++ b/style.css @@ -102,6 +102,16 @@ body { box-sizing: border-box; background-color: #fdfdfd; } + +.form-table textarea{ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + + width: 100%; + resize: none; +} + .item-table { width: 100%; border-collapse: collapse; @@ -176,6 +186,7 @@ input:disabled { align-items: center; justify-content: center; transition: color 0.3s ease; + margin-bottom: 1rem; } #add-row-btn svg { @@ -221,6 +232,10 @@ input:disabled { font-family: Arial, sans-serif; } +.download-pdf-btn{ + max-width: 1536px; +} + #itemsTable { width: 100%; border-collapse: collapse; @@ -242,18 +257,35 @@ input:disabled { background-color: #F9FAFB; font-family: Arial, sans-serif; } + #billingTotal { text-align: right; font-size: 14px; font-family: Arial, sans-serif; } +/* fix the overflow for invoice number */ +#invoiceNumber, +#invoiceDate { + padding: 3px; + font-size: 14px; +} + +.form-preview td[style*="text-align: right"] { + min-width: 220px; + white-space: nowrap; +} + +.form-preview td[style*="text-align: right"] > div { + margin: 0 auto 10px auto; +} + #downloadPDF { display: block; - margin-top: 10px; + margin-top: 20px; margin-left: auto; - margin-right: 30px; - margin-bottom: 10px; + margin-right: .7rem; + margin-bottom: 20px; padding: 10px 20px; font-size: 14px; background-color: #A78BFA; @@ -263,11 +295,13 @@ input:disabled { cursor: pointer; transition: transform 0.3s ease, background-color 0.3s ease; } + #commentTable { margin-top: 20px; margin-bottom: 20px; font-family: Arial, sans-serif; } + input[readonly] { border: none; outline: none; @@ -278,6 +312,7 @@ input[readonly] { text-align: right; } + .invoice-footer { border-top: 1px solid #ccc; width: 100%; @@ -295,8 +330,10 @@ input[readonly] { transform: scale(1.05); background-color: #3a78c2; } + /* Responsive */ -@media (max-width: 768px) { +/* Mobile phones & Tablets */ +@media (max-width: 1024px) { .invoice-container { flex-direction: column; } @@ -305,5 +342,104 @@ input[readonly] { .invoice-preview { width: 100%; margin: 20px 0; + padding: 10px; } -} + + .invoice-container { + width: 90%; + } + + .invoice-form{ + padding: 0 0 0 1rem; + } + + .form-table { + display: block; + table-layout: fixed; + } + + .form-table tr { + display: block; + margin-bottom: 15px; + } + + .form-table td { + display: block; + padding: 5px 0; + overflow-x: hidden; + text-overflow: ellipsis; + word-wrap: break-word; + } + + .form-table td:first-child { + font-weight: bold; + padding-bottom: 2px; + } + + .currency-selector{ + width: 90%; + margin: 0; + gap: 8px; + } + + + .currency-selector select, .currency-selector input{ + /*fits better on smaller screens */ + width:50%; + } + + .item-table th, + .item-table td { + padding: 10px; + } + + .form-preview, + .form-preview tbody, + .form-preview tr, + .form-preview td { + display: block; + width: 100%; + } + + .form-preview td { + border: none; + border-bottom: 1px solid #eee; + padding: 8px 5px; + } + + .form-preview td[colspan="2"], + .form-preview td[colspan="3"] { + padding-bottom: 15px; + } + + .form-preview td[style*="text-align: right"] { + text-align: left !important; + } + + .form-preview img { + height: 50px !important; + margin-bottom: 10px; + } + + .invoice-break{ + display: none; + } + + .form-table textarea { + resize: none; + } + + #invoiceNumber { + text-align: left; + padding: 2px 2px; + } + + #itemsTable { + overflow-x: auto; + display: block; + } + + #downloadPDF{ + margin: 0 auto; + } +} \ No newline at end of file