mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 19:14:03 +00:00
refactor(miniapp): compact finance and admin editors
This commit is contained in:
@@ -13,6 +13,18 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
@@ -204,6 +216,51 @@ button {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.ui-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
border: 1px solid rgb(255 255 255 / 0.12);
|
||||
border-radius: 14px;
|
||||
min-height: 44px;
|
||||
padding: 10px 14px;
|
||||
background: rgb(255 255 255 / 0.05);
|
||||
color: inherit;
|
||||
transition:
|
||||
transform 140ms ease,
|
||||
border-color 140ms ease,
|
||||
background 140ms ease,
|
||||
color 140ms ease;
|
||||
}
|
||||
|
||||
.ui-button:disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.ui-button--primary {
|
||||
border-color: rgb(247 179 137 / 0.42);
|
||||
background: rgb(247 179 137 / 0.16);
|
||||
color: #fff4ea;
|
||||
}
|
||||
|
||||
.ui-button--secondary,
|
||||
.ui-button--ghost,
|
||||
.ui-button--icon {
|
||||
background: rgb(255 255 255 / 0.04);
|
||||
}
|
||||
|
||||
.ui-button--danger {
|
||||
border-color: rgb(247 115 115 / 0.28);
|
||||
background: rgb(247 115 115 / 0.08);
|
||||
color: #ffc5c5;
|
||||
}
|
||||
|
||||
.ui-button--icon {
|
||||
min-width: 44px;
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.nav-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
@@ -397,7 +454,7 @@ button {
|
||||
|
||||
.purchase-chart__figure {
|
||||
position: relative;
|
||||
width: min(220px, 100%);
|
||||
width: min(180px, 100%);
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
@@ -433,7 +490,7 @@ button {
|
||||
|
||||
.purchase-chart__center span {
|
||||
color: #c6c2bb;
|
||||
font-size: 0.82rem;
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
@@ -451,7 +508,7 @@ button {
|
||||
.purchase-chart__legend-item {
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
padding: 10px 12px;
|
||||
background: rgb(255 255 255 / 0.02);
|
||||
}
|
||||
|
||||
@@ -584,6 +641,11 @@ button {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.settings-field select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.settings-field__value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -615,6 +677,186 @@ button {
|
||||
color: #ffc5c5;
|
||||
}
|
||||
|
||||
.panel-toolbar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.ledger-compact-card {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 14px;
|
||||
align-items: start;
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 18px;
|
||||
padding: 14px;
|
||||
background: rgb(255 255 255 / 0.02);
|
||||
}
|
||||
|
||||
.ledger-compact-card__main {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ledger-compact-card header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.ledger-compact-card p {
|
||||
margin: 0;
|
||||
color: #d6d3cc;
|
||||
}
|
||||
|
||||
.ledger-compact-card__meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.ledger-compact-card__actions {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.mini-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
padding: 6px 10px;
|
||||
background: rgb(247 179 137 / 0.12);
|
||||
color: #ffe6d2;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.mini-chip--muted {
|
||||
background: rgb(255 255 255 / 0.05);
|
||||
color: #dad5ce;
|
||||
}
|
||||
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 50;
|
||||
display: grid;
|
||||
place-items: end center;
|
||||
padding: 18px 14px;
|
||||
background: rgb(8 10 16 / 0.7);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.modal-sheet {
|
||||
width: min(720px, 100%);
|
||||
max-height: min(88vh, 920px);
|
||||
overflow: auto;
|
||||
border: 1px solid rgb(255 255 255 / 0.1);
|
||||
border-radius: 24px;
|
||||
padding: 18px;
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03)), rgb(18 26 36 / 0.96);
|
||||
box-shadow: 0 28px 80px rgb(0 0 0 / 0.35);
|
||||
}
|
||||
|
||||
.modal-sheet__header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.modal-sheet__header h3 {
|
||||
margin: 0;
|
||||
font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
|
||||
letter-spacing: -0.04em;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.modal-sheet__header p {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.modal-sheet__body {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.modal-sheet__footer {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.editor-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.editor-panel {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 18px;
|
||||
padding: 14px;
|
||||
background: rgb(255 255 255 / 0.03);
|
||||
}
|
||||
|
||||
.editor-panel__header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.participant-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.participant-card {
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
background: rgb(255 255 255 / 0.02);
|
||||
}
|
||||
|
||||
.participant-card header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.participant-card__controls {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.participant-card__field {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.modal-action-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.modal-action-row--single {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.modal-action-row__primary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.panel--wide {
|
||||
min-height: 170px;
|
||||
}
|
||||
@@ -709,6 +951,10 @@ button {
|
||||
.settings-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.editor-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 759px) {
|
||||
@@ -742,6 +988,7 @@ button {
|
||||
}
|
||||
|
||||
.activity-row header,
|
||||
.ledger-compact-card header,
|
||||
.ledger-item header,
|
||||
.utility-bill-row header,
|
||||
.balance-item header {
|
||||
|
||||
Reference in New Issue
Block a user