Something went wrong. Try again.
Convert CSV banking statements to hledger journals
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051/* The rule editor's shadow root. Nothing in app.css reaches in here except what inherits: font, colour and colour scheme. */
:host { display: block; }
/* app.css's button rule does not cross the shadow boundary, so the delete button needs its own. */button { font: inherit; padding: 0.25rem 0.6rem; cursor: pointer; }
details { border-bottom: 1px solid rgba(128,128,128,0.3); }
/* One line, whatever the condition holds: nowrap folds its line breaks into spaces, and whatever does not fit is cut at the end. The disclosure marker sits inside the line, so the cut never hides it. */summary { padding: 0.35rem 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}summary .name { font-weight: 600; }summary .target, summary .match { margin-left: 1rem; }summary .match { font-family: ui-monospace, monospace; opacity: 0.75; }/* Open, the fields below say the rest. */details[open] summary :is(.target, .match) { display: none; }
/* The name and the accounts share the first row. The condition is usually the longest, so it gets a row of its own, and delete sits in the corner. Both placements count columns from the far edge, so the one-column layout below needs no rules of its own for them. */.rule { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; align-items: end; padding: 0 0 0.5rem;}.field { display: flex; flex-direction: column; gap: 0.15rem; }.field span { font-size: 0.8rem; opacity: 0.75; }.field input, .field textarea { font: inherit; padding: 0.3rem 0.4rem; width: 100%; }.field textarea { font-family: ui-monospace, monospace; resize: vertical; }.field:has(textarea) { grid-column: 1 / -1; }/* The aliases Tab can complete to, under the condition. */.field .hint { font-family: ui-monospace, monospace; white-space: pre-wrap; }.rule > button { grid-column: -2; justify-self: end; }
@media (max-width: 50rem) { .rule { grid-template-columns: 1fr; align-items: stretch; }}