Float transaction type switch above save action
This commit is contained in:
parent
912c41c3bb
commit
3d8729c1ae
2 changed files with 11 additions and 6 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="color-scheme" content="dark" />
|
||||
<meta name="theme-color" content="#111111" />
|
||||
<title>Пожитки</title>
|
||||
<link rel="stylesheet" href="./styles.css?v=16" />
|
||||
<link rel="stylesheet" href="./styles.css?v=18" />
|
||||
<script src="./telegram-web-app.js"></script>
|
||||
<script src="./app.js?v=17" defer></script>
|
||||
</head>
|
||||
|
|
@ -71,11 +71,6 @@
|
|||
<div><p class="eyebrow">Новая запись</p><h2>Движение денег</h2></div>
|
||||
</div>
|
||||
<form id="transactionForm" class="transaction-form">
|
||||
<div class="segmented" role="group" aria-label="Тип операции">
|
||||
<button type="button" class="segment active" data-kind="income">Поступление</button>
|
||||
<button type="button" class="segment" data-kind="expense">Расход</button>
|
||||
</div>
|
||||
|
||||
<label class="amount-field">
|
||||
<span>Сумма</span>
|
||||
<div><input id="amount" name="amount" type="number" inputmode="decimal" min="0.01" step="0.01" placeholder="0" required /><b>₽</b></div>
|
||||
|
|
@ -118,6 +113,11 @@
|
|||
</div>
|
||||
</main>
|
||||
|
||||
<div class="segmented" role="group" aria-label="Тип операции">
|
||||
<button type="button" class="segment active" data-kind="income">Поступление</button>
|
||||
<button type="button" class="segment" data-kind="expense">Расход</button>
|
||||
</div>
|
||||
|
||||
<div class="board-switch" role="tablist" aria-label="Тип лидерборда">
|
||||
<button id="allBoardButton" class="active" type="button">Все</button>
|
||||
<button id="friendsBoardButton" type="button">Друзья</button>
|
||||
|
|
|
|||
|
|
@ -183,6 +183,10 @@ h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
|
|||
.leaderboard-open .board-switch { display: grid; }
|
||||
.board-switch button { min-width: 84px; padding: 8px 14px; border-radius: 999px; }
|
||||
.board-switch button.active { color: var(--accent); background: transparent; box-shadow: none; }
|
||||
.segmented { position: fixed; z-index: 9; bottom: calc(max(12px, calc(var(--app-safe-bottom) + 8px)) + 64px); left: 50%; display: none; width: fit-content; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 999px; transform: translateX(-50%); box-shadow: var(--shadow); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
|
||||
.form-open .segmented { display: grid; }
|
||||
.segmented .segment { min-width: 104px; padding: 8px 14px; border-radius: 999px; }
|
||||
.segmented .segment.active { color: var(--accent); background: transparent; box-shadow: none; }
|
||||
.leader-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 3px 13px; color: var(--muted); font-size: 11px; font-weight: 700; }
|
||||
.leader-filter select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface); }
|
||||
.leaderboard-list { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
|
||||
|
|
@ -209,6 +213,7 @@ h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
|
|||
.app-action:disabled { opacity: .72; cursor: default; }
|
||||
.form-open .nav-tabs { display: none; }
|
||||
.form-open .app-action { flex-basis: 100%; width: 100%; border-radius: 999px; font-size: 16px; font-weight: 800; }
|
||||
.form-open { padding-bottom: calc(174px + var(--app-safe-bottom)); }
|
||||
.leaderboard-open { padding-bottom: calc(174px + var(--app-safe-bottom)); }
|
||||
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(100px + var(--app-safe-bottom)); max-width: calc(100% - 36px); padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; transform: translate(-50%, 20px); background: rgba(0, 0, 0, .62); color: var(--text); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; box-shadow: var(--shadow); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
|
||||
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue