Files
Dreierpack-Manager/assets/modern/amount.rcss
T
MichaelandClaude Fable 5.2 fe4b034181 A number pad with soft keys and a column of function keys; no coloured left edges
The entry of a number shows its value in a display with the allowed range, proposals
as chips, the digits as soft keys and backspace, clear and maximum as a coloured
column. The first digit key replaces the offered value. Marked rows and the bank's
readings no longer carry a coloured bar at their left edge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 21:00:05 +01:00

50 lines
5.6 KiB
Plaintext

/* SPDX-License-Identifier: GPL-3.0-only */
/* The entry of a number: a display, proposals, a pad of soft keys and a column of function keys. */
body {--key-top:#5d6a76;--key-bottom:#49555f;--key-edge:#27313a;--pad-display:#141d26b8;--function-top:#f0a052;--function-bottom:#d8721e;--function-edge:#9c4d0d;}
body.silver {--key-top:#ffffff;--key-bottom:#e6e3da;--key-edge:#b7b1a2;--pad-display:#e9e5da;}
body.matchday {--key-top:#5a555e;--key-bottom:#454148;--key-edge:#242127;--pad-display:#17161ab8;}
.amount-layer {position:absolute;left:0;right:0;top:0;bottom:0;z-index:150;display:flex;align-items:center;justify-content:center;background-color:#0a131d80;}
.amount-box {position:relative;flex-shrink:0;width:900dp;height:1186dp;padding:26dp;border:2dp var(--paper-edge);border-radius:40dp;background-color:transparent;decorator:linear-gradient(175deg,var(--paper-top),var(--paper-bottom));color:var(--text);}
.amount-button {display:flex;align-items:center;justify-content:center;padding:0;border:2dp var(--key-edge);border-bottom-width:6dp;border-radius:26dp;background-color:transparent;decorator:linear-gradient(180deg,var(--key-top),var(--key-bottom));font-size:50dp;font-weight:normal;line-height:1.1;color:var(--text);}
.amount-button:hover {filter:brightness(1.08);}
.amount-button:active {filter:brightness(.9);border-bottom-width:2dp;}
.amount-button[disabled] {opacity:.4;}
.amount-button:focus-visible {border-color:var(--accent);}
.amount-header {position:absolute;left:26dp;top:26dp;width:848dp;height:58dp;}
.amount-header h2 {position:absolute;left:62dp;top:6dp;width:724dp;height:46dp;line-height:46dp;margin:0;font-family:Display;font-size:38dp;font-weight:normal;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.amount-header .amount-close {position:absolute;left:0;top:7dp;width:44dp;height:44dp;border:1dp #ffb0a34d;border-radius:22dp;decorator:none;background-color:#fa6a60;color:#572c29;font-size:34dp;}
.amount-display {position:absolute;left:26dp;top:100dp;width:848dp;height:200dp;border:2dp var(--rule);border-radius:24dp;background-color:var(--pad-display);}
.amount-label {position:absolute;left:54dp;top:114dp;width:792dp;height:30dp;line-height:30dp;text-align:right;font-size:28dp;color:var(--muted);}
#calculator-value {position:absolute;left:46dp;top:144dp;width:808dp;height:104dp;padding:0 8dp;border:0dp;border-radius:10dp;background-color:transparent;color:var(--text);font-family:Display;font-size:88dp;font-weight:normal;line-height:104dp;text-align:right;}
.amount-context {position:absolute;left:54dp;top:252dp;width:792dp;height:36dp;}
.amount-limit {position:absolute;left:0;top:0;width:792dp;height:36dp;display:flex;align-items:center;justify-content:flex-end;font-size:28dp;color:var(--muted);}
.amount-limit span {display:block;line-height:30dp;}
.amount-proposals-label {position:absolute;left:30dp;top:314dp;width:400dp;height:34dp;margin:0;line-height:34dp;font-size:26dp;letter-spacing:2dp;color:var(--muted);}
.amount-proposal,.amount-key,.amount-function {position:absolute;}
.amount-proposal {font-size:32dp;border-width:2dp;border-bottom-width:2dp;border-color:var(--rule);border-radius:32dp;decorator:none;background-color:transparent;}
.amount-proposal:hover {background-color:var(--hover);}
.amount-proposal.selected {background-color:var(--function-bottom);border-color:var(--function-edge);color:#ffffff;}
.amount-function {border-color:var(--function-edge);decorator:linear-gradient(180deg,var(--function-top),var(--function-bottom));color:#ffffff;}
.amount-function.amount-max {font-size:38dp;letter-spacing:2dp;}
.amount-function.amount-erase {font-size:56dp;}
.amount-feedback {position:absolute;left:26dp;top:1014dp;width:848dp;height:56dp;display:flex;align-items:center;justify-content:center;margin:0;font-size:28dp;line-height:32.4dp;text-align:center;color:var(--muted);}
.amount-feedback span {display:block;width:100%;line-height:32.4dp;}
.amount-feedback.invalid {color:var(--loss);}
.amount-actions {position:absolute;left:26dp;top:1080dp;width:848dp;height:80dp;display:flex;gap:16dp;}
.amount-actions .amount-button {height:80dp;width:308dp;font-size:32dp;border-radius:22dp;}
.amount-actions .amount-button.amount-accept {width:524dp;border-color:var(--function-edge);decorator:linear-gradient(180deg,var(--function-top),var(--function-bottom));color:#ffffff;}
.amount-box.amount-review {height:auto;min-height:620dp;padding:70dp;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:42dp;text-align:center;}
.amount-review h2 {display:block;width:100%;margin:0;line-height:56dp;font-family:Display;font-size:48dp;font-weight:bold;}
.amount-review>p {display:block;width:100%;margin:0;line-height:51dp;font-size:34dp;color:var(--text);}
.amount-review>strong {display:block;width:100%;font-family:Display;font-size:80dp;line-height:92dp;font-weight:normal;color:var(--accent);}
.amount-review-actions {display:flex;align-items:center;justify-content:center;flex-shrink:0;gap:20dp;width:760dp;height:88dp;margin-top:28dp;}
.amount-review-actions .amount-button {height:88dp;width:230dp;font-size:32dp;line-height:35.2dp;border-radius:22dp;flex-shrink:0;}
.amount-review-actions #calculator-confirm {width:260dp;border-color:var(--function-edge);decorator:linear-gradient(180deg,var(--function-top),var(--function-bottom));color:#ffffff;}
.amount-review .amount-review-error {color:var(--danger);font-size:28dp;line-height:35dp;}
body.midnight .amount-review>strong {color:#c4e9dd;}
body.midnight .amount-review>p {color:#b5cad9;}
#calculator-value selection {color:#ffffff;background-color:#144bc1;}
/* Confirmation amounts carry money semantics, independent of the skin accent. */
body.matchday .amount-review>strong {color:var(--money);}