|
100 | 100 | } |
101 | 101 | </script> |
102 | 102 |
|
103 | | -<div style="display: flex; flex-direction: column; gap: 30px;"> |
| 103 | +<div class="invoice-form-container"> |
104 | 104 | <div class="invoice-form-wrapper"> |
105 | 105 | <div class="invoice-header"> |
106 | 106 | <div class="invoice-header-left"> |
|
139 | 139 | <div class="invoice-section"> |
140 | 140 | <p class="invoice-section-title"> |
141 | 141 | <span>From</span> |
142 | | - {formData.creatorId} |
| 142 | + <span class="invoice-section-title-content">{formData.creatorId}</span> |
143 | 143 | </p> |
144 | 144 | <div class={`invoice-info`}> |
145 | 145 | {#each sellerInfo as { value, isEmail, isCompany }} |
|
157 | 157 | <div class="invoice-section"> |
158 | 158 | <p class="invoice-section-title"> |
159 | 159 | <span>Billed to</span> |
160 | | - {formData.payerAddress} |
| 160 | + <span class="invoice-section-title-content"> |
| 161 | + {formData.payerAddress} |
| 162 | + </span> |
161 | 163 | </p> |
162 | 164 | <div class={`invoice-info`}> |
163 | 165 | {#each buyerInfo as { value, isEmail, isCompany }} |
164 | 166 | <p> |
165 | 167 | {#if isEmail} |
166 | 168 | <a href="mailto:{value}">{value}</a> |
167 | 169 | {:else} |
168 | | - <span class:company={isCompany}>{value}</span> |
| 170 | + <span |
| 171 | + class:company={isCompany} |
| 172 | + class="invoice-section-title-content" |
| 173 | + > |
| 174 | + {value} |
| 175 | + </span> |
169 | 176 | {/if} |
170 | 177 | </p> |
171 | 178 | {/each} |
172 | 179 | </div> |
173 | 180 | </div> |
174 | 181 | <p class="invoice-section-title"> |
175 | 182 | <span>Payment Chain</span> |
176 | | - {currency?.network |
177 | | - ? currency.network.charAt(0).toUpperCase() + |
178 | | - currency.network.slice(1).toLowerCase() |
179 | | - : ""} |
| 183 | + <span class="invoice-section-title-content"> |
| 184 | + {currency?.network |
| 185 | + ? currency.network.charAt(0).toUpperCase() + |
| 186 | + currency.network.slice(1).toLowerCase() |
| 187 | + : ""} |
| 188 | + </span> |
180 | 189 | </p> |
181 | 190 | <p class="invoice-section-title"> |
182 | 191 | <span>Invoice Currency</span> |
183 | | - {invoiceCurrency ? invoiceCurrency.symbol : ""} |
| 192 | + <span class="invoice-section-title-content"> |
| 193 | + {invoiceCurrency ? invoiceCurrency.symbol : ""} |
| 194 | + </span> |
184 | 195 | </p> |
185 | 196 | <p class="invoice-section-title"> |
186 | 197 | <span>Settlement Currency</span> |
187 | | - {currency ? `${currency.symbol} (${currency.network})` : ""} |
| 198 | + <span class="invoice-section-title-content"> |
| 199 | + {currency ? `${currency.symbol} (${currency.network})` : ""} |
| 200 | + </span> |
188 | 201 | </p> |
189 | 202 | <div class="invoice-table-wrapper"> |
190 | 203 | <table class="invoice-table"> |
|
275 | 288 | border-collapse: collapse; |
276 | 289 | border-spacing: 0; |
277 | 290 | } |
| 291 | +
|
| 292 | + .invoice-form-container { |
| 293 | + display: flex; |
| 294 | + flex-direction: column; |
| 295 | + gap: 30px; |
| 296 | + border-top: 6px solid var(--mainColor); |
| 297 | + border-radius: 8px; |
| 298 | + overflow: hidden; |
| 299 | + } |
| 300 | +
|
278 | 301 | .invoice-form-wrapper { |
279 | 302 | height: fit-content; |
280 | 303 | background-color: white; |
|
390 | 413 | .invoice-table-wrapper { |
391 | 414 | position: relative; |
392 | 415 | overflow-x: auto; |
| 416 | + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.06); |
| 417 | + border-radius: 8px; |
393 | 418 | } |
394 | 419 |
|
395 | 420 | .invoice-table { |
396 | 421 | width: 100%; |
397 | 422 | font-size: 14px; |
398 | 423 | line-height: 20px; |
399 | 424 | text-align: left; |
| 425 | + color: #6b7280; |
| 426 | + border-radius: 8px; |
| 427 | + overflow: hidden; |
| 428 | + border-collapse: collapse; |
| 429 | + border-spacing: 0; |
400 | 430 | } |
401 | 431 |
|
402 | 432 | .invoice-table-header { |
403 | | - font-size: 12px; |
404 | 433 | line-height: 20px; |
405 | 434 | text-transform: uppercase; |
406 | | - background-color: #e4e4e7; |
| 435 | + background-color: #f6f6f7; |
| 436 | + color: black; |
| 437 | + border: none; |
| 438 | + border-collapse: collapse; |
407 | 439 | } |
408 | 440 |
|
409 | 441 | .invoice-table-header tr { |
410 | 442 | text-align: left; |
411 | | - white-space: nowrap; |
| 443 | + font-size: 14px; |
412 | 444 | } |
413 | 445 |
|
414 | 446 | .invoice-table-header tr th { |
415 | | - padding: 12px 8px; |
| 447 | + padding: 12px 16px; |
| 448 | + font-size: 11px; |
| 449 | + white-space: nowrap; |
| 450 | + border: none; |
| 451 | + border-spacing: 0; |
| 452 | + background-color: #f6f6f7; |
416 | 453 | } |
417 | 454 |
|
418 | 455 | .invoice-table-header-tr:first-child { |
419 | 456 | padding: 12px 8px 12px 8px; |
420 | 457 | } |
421 | 458 |
|
422 | | - .invoice-table-body-row { |
423 | | - border-bottom: 1px solid black; |
424 | | - } |
425 | | -
|
426 | 459 | .invoice-table-body-row th { |
427 | 460 | padding: 8px 0px 8px 8px; |
428 | 461 | font-weight: 500; |
|
450 | 483 | .invoice-summary-item { |
451 | 484 | display: flex; |
452 | 485 | gap: 20px; |
453 | | - border-bottom: 1px solid black; |
454 | 486 | } |
455 | 487 |
|
456 | 488 | .invoice-summary-item-spaced { |
|
530 | 562 | height: 1px; |
531 | 563 | background-color: var(--mainColor); |
532 | 564 | } |
| 565 | +
|
| 566 | + .invoice-section-title-content { |
| 567 | + color: #6e7480; |
| 568 | + } |
533 | 569 | </style> |
0 commit comments