Initial release

This commit is contained in:
odweta
2026-09-10 12:43:40 +02:00
commit 42cc4eafa8
15 changed files with 7400 additions and 0 deletions
+265
View File
@@ -0,0 +1,265 @@
:root {
--ink: #17202a;
--muted-ink: #65717d;
--navy: #183b56;
--blue: #2b6f8f;
--paper: #fffdf8;
--cream: #f5efe5;
--line: #d8d4cc;
--shadow: 0 18px 45px rgba(33, 48, 61, 0.12);
}
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
margin: 0;
padding: 3rem 1.25rem;
color: var(--ink);
background: linear-gradient(135deg, #e9f1f3 0%, #f7f2e9 52%, #e7edf1 100%);
font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
#main-container {
width: min(100%, 980px);
margin: 0 auto;
padding: 2.5rem clamp(1.25rem, 4vw, 4rem);
background: var(--paper);
border: 1px solid rgba(24, 59, 86, 0.12);
box-shadow: var(--shadow);
}
#main-form {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
#main-form > h2 {
width: 100%;
margin: 0;
color: var(--navy);
font-family: Georgia, serif;
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 500;
letter-spacing: 0.02em;
text-align: center;
}
.form-chapter {
display: flex;
flex-direction: row;
gap: 2rem;
width: 100%;
max-width: 820px;
}
.form-chapter:not(.supplier-customer-section) {
padding-top: 1.5rem;
border-top: 1px solid var(--line);
}
.form-part {
display: flex;
flex-direction: column;
flex: 1;
}
.form-group {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}
.form-group label {
margin-bottom: 0.25rem;
color: var(--muted-ink);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.form-group input {
width: 100%;
padding: 0.65rem 0.7rem;
color: var(--ink);
background: #fff;
border: 1px solid #c8d0d5;
border-radius: 0.25rem;
font: inherit;
}
.form-group input:focus {
border-color: var(--blue);
outline: 2px solid rgba(43, 111, 143, 0.18);
outline-offset: 1px;
}
.form-group output {
min-height: 1.5rem;
padding: 0.25rem 0;
color: var(--navy);
font-family: Georgia, serif;
font-size: 1.5rem;
font-weight: 700;
}
.second-row {
align-items: flex-start;
}
.second-row > .form-part,
.second-row > .form-group {
flex: 1;
}
.third-row {
align-items: flex-start;
}
.third-row > .form-part,
.third-row > .form-group {
flex: 1;
}
.supplier-customer-section {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 2rem;
width: 100%;
max-width: 820px;
}
.supplier-customer-section > h2 {
grid-column: 1 / -1;
margin: 0 0 1.5rem;
text-align: center;
}
.form-part h3 {
margin-top: 0;
color: var(--navy);
font-family: Georgia, serif;
font-size: 1.35rem;
font-weight: 500;
}
#itemsContainer {
width: 100%;
}
.invoice-item {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr auto;
align-items: end;
gap: 1rem;
width: 100%;
margin-top: 1.5rem;
padding: 1rem;
border: 1px solid var(--line);
border-radius: 0.25rem;
box-shadow: 0 3px 10px rgba(33, 48, 61, 0.04);
}
.invoice-item:nth-child(even) {
background: #f4f7fb;
}
.invoice-item:nth-child(odd) {
background: #fffaf0;
}
.invoice-item .form-group {
margin-bottom: 0;
}
.invoice-item input {
width: 100%;
}
.delete-item-button {
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
padding: 0;
color: #a53c36;
background: transparent;
border: 1px solid #c47a72;
border-radius: 0.25rem;
cursor: pointer;
}
.delete-item-button:hover {
color: white;
background-color: #a53c36;
}
.delete-item-button:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px;
}
#printInvoiceButton {
align-self: center;
color: #fff;
background: var(--navy);
border: 0;
border-radius: 0.25rem;
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 0.75rem 1rem;
transition: background-color 160ms ease, transform 160ms ease;
}
#printInvoiceButton:hover {
background: var(--blue);
transform: translateY(-1px);
}
#addItemButton {
align-self: flex-start;
color: var(--navy);
background: transparent;
border: 1px solid var(--blue);
border-radius: 0.25rem;
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 0.6rem 0.85rem;
}
#addItemButton:hover {
color: #fff;
background: var(--blue);
}
@media (max-width: 700px) {
body {
padding: 1rem 0.5rem;
}
#main-container {
padding: 1.5rem 1rem;
}
.supplier-customer-section {
grid-template-columns: 1fr;
row-gap: 1rem;
}
.invoice-item {
grid-template-columns: 1fr;
}
.delete-item-button {
justify-self: end;
}
}