mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
Found by running their Chromium specs through build.sh: - Budget and billing did not refresh after a save: the board pane read the current template data inside a promise, where there is none. It uses its own instance's data now, and a save refreshes only the board's detail and its row, without the spinner that took the pane down and without the billingBoards call that ran into its rate limit. - Workload's capacity form lost its "saved" note: the refresh after a save showed the spinner, which replaces the form. The spinner is now only for the first load. - The Cloud Panel's forms did not render: a function passed to an inclusion as done=done is called by Spacebars, so they received its result. Errors and the domain being edited are module state now. - The checkboxes of the three pages were hidden by the app-wide form styles; each page shows its own again. - An invoice PDF failed in the bundle with "Cannot find module #standard-fonts/Helvetica": pdfkit is given the bundled font. Tests: templateDataInPromise, spacebarsFunctionArgs and nativeCheckboxesShown find each shape anywhere in the client, invoiceFiles requires the font in every PDFDocument, and workload pins the spinner to the first load. Thanks to xet7 !
192 lines
3.8 KiB
CSS
192 lines
3.8 KiB
CSS
/* Budget and billing page (docs/Features/Billing/Billing.md). */
|
|
.billing-page {
|
|
padding: 1rem;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.billing-intro {
|
|
max-width: 70ch;
|
|
opacity: 0.85;
|
|
}
|
|
.billing-boards,
|
|
.billing-invoice-table,
|
|
.billing-print-lines {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 0.5rem 0 1rem;
|
|
}
|
|
.billing-boards th,
|
|
.billing-boards td,
|
|
.billing-invoice-table th,
|
|
.billing-invoice-table td,
|
|
.billing-print-lines th,
|
|
.billing-print-lines td {
|
|
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
padding: 0.35rem 0.5rem;
|
|
text-align: start;
|
|
vertical-align: top;
|
|
}
|
|
.billing-boards a {
|
|
cursor: pointer;
|
|
}
|
|
.billing-board-row.is-selected {
|
|
background: rgba(0, 121, 191, 0.08);
|
|
}
|
|
.billing-board-row.is-over,
|
|
.billing-over {
|
|
color: #c62828;
|
|
}
|
|
.billing-bar {
|
|
height: 0.5rem;
|
|
background: rgba(0, 0, 0, 0.08);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-bottom: 0.2rem;
|
|
max-width: 12rem;
|
|
}
|
|
.billing-bar-fill {
|
|
height: 100%;
|
|
background: #3cb500;
|
|
}
|
|
.billing-board-row.is-over .billing-bar-fill {
|
|
background: #e53935;
|
|
}
|
|
.billing-summary dl,
|
|
.billing-print-meta dl {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 0.2rem 1rem;
|
|
}
|
|
.billing-summary dt,
|
|
.billing-print-meta dt {
|
|
font-weight: bold;
|
|
}
|
|
.billing-summary dd,
|
|
.billing-print-meta dd {
|
|
margin: 0;
|
|
}
|
|
.billing-sections {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
.billing-section {
|
|
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
border-radius: 4px;
|
|
padding: 0.75rem;
|
|
margin-top: 1rem;
|
|
}
|
|
.billing-sections .billing-section {
|
|
margin-top: 0;
|
|
}
|
|
.billing-section h3 {
|
|
margin-top: 0;
|
|
}
|
|
.billing-section label {
|
|
display: block;
|
|
margin-top: 0.4rem;
|
|
}
|
|
.billing-list {
|
|
padding-inline-start: 1.2rem;
|
|
}
|
|
.billing-list a {
|
|
margin-inline-start: 0.5rem;
|
|
cursor: pointer;
|
|
}
|
|
.billing-invoice-table-wrapper,
|
|
.billing-invoices {
|
|
overflow-x: auto;
|
|
}
|
|
.billing-invoice-actions button {
|
|
margin: 0 0.25rem 0.25rem 0;
|
|
}
|
|
.billing-status-void td {
|
|
opacity: 0.55;
|
|
text-decoration: line-through;
|
|
}
|
|
.billing-status-paid td:nth-child(6) {
|
|
color: #2e7d32;
|
|
font-weight: bold;
|
|
}
|
|
.billing-print {
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
.billing-print-customer {
|
|
white-space: pre-wrap;
|
|
font-family: inherit;
|
|
}
|
|
.billing-print-lines tfoot th {
|
|
border-top: 2px solid #000;
|
|
}
|
|
/* Printing: only the invoice. */
|
|
@media print {
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
.billing-print,
|
|
.billing-print * {
|
|
visibility: visible;
|
|
}
|
|
.billing-print {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: none;
|
|
}
|
|
.billing-print button {
|
|
display: none;
|
|
}
|
|
}
|
|
@media screen and (max-width: 800px) {
|
|
.billing-page { padding: 0.5rem; }
|
|
}
|
|
|
|
/* Expenses, fees, time to approve and quotes (docs/Features/Billing/Billing.md). */
|
|
.billing-hint {
|
|
color: #555;
|
|
font-size: 0.9em;
|
|
}
|
|
.billing-list li.is-invoiced {
|
|
color: #555;
|
|
}
|
|
.billing-draft-lines li.billing-line-fee,
|
|
.billing-draft-lines li.billing-line-expense {
|
|
font-style: italic;
|
|
}
|
|
.billing-quote-accepted td:first-child {
|
|
font-weight: bold;
|
|
}
|
|
.billing-quote-declined {
|
|
color: #777;
|
|
text-decoration: line-through;
|
|
}
|
|
.time-entry-approved {
|
|
color: #2e7d32;
|
|
margin-inline-start: 0.3em;
|
|
}
|
|
.time-entry-rejected {
|
|
color: #b71c1c;
|
|
margin-inline-start: 0.3em;
|
|
}
|
|
|
|
/* Labelled native checkboxes: the app-wide material form rule
|
|
(client/components/forms/forms.css) hides native checkboxes three ways -
|
|
display, visibility, an offset - which left these with a label and no box
|
|
to tick or see ticked. All three are undone, as in cardFlow.css. */
|
|
.billing-page input[type="checkbox"] {
|
|
display: inline-block;
|
|
visibility: visible;
|
|
position: static;
|
|
inset-inline-start: auto;
|
|
width: 16px;
|
|
height: 16px;
|
|
min-height: 0;
|
|
margin: 0;
|
|
margin-inline-end: 4px;
|
|
flex: none;
|
|
}
|