545 lines
8.9 KiB
CSS
545 lines
8.9 KiB
CSS
:root {
|
|
--page-bg: #f8f5ef;
|
|
--card-bg: #fffdf8;
|
|
--ink: #26231f;
|
|
--muted: #8b8680;
|
|
--subtle: #f0ece5;
|
|
--border: #eee8df;
|
|
--accent: #2f6f62;
|
|
--accent-soft: #e5eee9;
|
|
--accent-light: #6f8f83;
|
|
--danger: #c45f5f;
|
|
--warning: #c56f36;
|
|
--shadow: 0 10px 28px rgba(58, 48, 34, 0.06);
|
|
color: var(--ink);
|
|
background: var(--page-bg);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
min-height: 100%;
|
|
margin: 0;
|
|
background: var(--page-bg);
|
|
}
|
|
|
|
body {
|
|
min-width: 320px;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.62;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mobile-shell {
|
|
min-height: 100vh;
|
|
background: var(--page-bg);
|
|
}
|
|
|
|
.mobile-shell--tab {
|
|
padding-bottom: calc(84px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.mobile-page {
|
|
width: min(100%, 520px);
|
|
min-height: 100vh;
|
|
margin: 0 auto;
|
|
padding: 14px 12px 28px;
|
|
}
|
|
|
|
.mobile-page--plain {
|
|
padding: 0;
|
|
}
|
|
|
|
.mobile-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 12;
|
|
display: grid;
|
|
grid-template-columns: 42px 1fr 42px;
|
|
align-items: center;
|
|
width: min(100%, 520px);
|
|
margin: 0 auto;
|
|
padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
|
|
background: rgba(248, 245, 239, 0.94);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.mobile-header h1 {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
font-size: 17px;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mobile-header__side {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.icon-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--card-bg);
|
|
color: #4e4942;
|
|
box-shadow: 0 6px 14px rgba(58, 48, 34, 0.05);
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid rgba(50, 43, 34, 0.06);
|
|
border-radius: 12px;
|
|
background: var(--card-bg);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.section {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.section__head,
|
|
.row-between,
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.section__head,
|
|
.row-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.section__head {
|
|
margin: 2px 2px 10px;
|
|
}
|
|
|
|
.section__head h2 {
|
|
margin: 0;
|
|
color: #4c4740;
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.tag,
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 24px;
|
|
padding: 0 10px;
|
|
border-radius: 999px;
|
|
background: var(--subtle);
|
|
color: #6d675f;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chip--active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.primary-btn,
|
|
.secondary-btn,
|
|
.danger-btn,
|
|
.text-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 42px;
|
|
padding: 0 16px;
|
|
border-radius: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.primary-btn,
|
|
.secondary-btn,
|
|
.danger-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.primary-btn {
|
|
background: var(--accent-light);
|
|
color: #fffdf8;
|
|
box-shadow: 0 12px 24px rgba(111, 143, 131, 0.22);
|
|
}
|
|
|
|
.secondary-btn {
|
|
border: 1px solid #d8d1c8;
|
|
background: var(--card-bg);
|
|
color: #514b44;
|
|
}
|
|
|
|
.danger-btn {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.text-btn {
|
|
min-height: 32px;
|
|
padding: 0;
|
|
color: var(--accent);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.button-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-card {
|
|
padding: 4px 12px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 58px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.field:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.field--stack {
|
|
display: block;
|
|
padding: 14px 0;
|
|
}
|
|
|
|
.field label,
|
|
.field-label {
|
|
flex: 0 0 92px;
|
|
color: #625c55;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.required::after {
|
|
content: " *";
|
|
color: var(--warning);
|
|
font-weight: 900;
|
|
}
|
|
|
|
.field input,
|
|
.field textarea,
|
|
.field select,
|
|
.field-value {
|
|
flex: 1;
|
|
min-width: 0;
|
|
width: 100%;
|
|
border: 0;
|
|
outline: 0;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.field textarea {
|
|
min-height: 108px;
|
|
padding: 10px 0;
|
|
resize: vertical;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
height: 42px;
|
|
padding: 0 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
outline: 0;
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.list-card {
|
|
padding: 14px;
|
|
}
|
|
|
|
.list-card__title {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
font-size: 16px;
|
|
font-weight: 850;
|
|
}
|
|
|
|
.list-card__subtitle,
|
|
.list-card__meta {
|
|
margin-top: 4px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.list-card__actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.fixed-bottom {
|
|
position: fixed;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 20;
|
|
padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
|
|
background: rgba(248, 245, 239, 0.94);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
.fixed-bottom__inner {
|
|
width: min(100%, 520px);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.fab {
|
|
position: fixed;
|
|
right: max(16px, calc((100vw - 520px) / 2 + 16px));
|
|
bottom: calc(92px + env(safe-area-inset-bottom));
|
|
z-index: 18;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 54px;
|
|
height: 54px;
|
|
border-radius: 50%;
|
|
background: var(--accent-light);
|
|
color: #fff;
|
|
font-size: 30px;
|
|
font-weight: 300;
|
|
box-shadow: 0 12px 26px rgba(111, 143, 131, 0.24);
|
|
}
|
|
|
|
.tabbar {
|
|
position: fixed;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 30;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
width: min(100%, 520px);
|
|
margin: 0 auto;
|
|
padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
|
|
border-top: 1px solid rgba(50, 43, 34, 0.06);
|
|
background: rgba(255, 253, 248, 0.96);
|
|
box-shadow: 0 -8px 26px rgba(58, 48, 34, 0.07);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
.tabbar__item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
min-height: 52px;
|
|
border-radius: 12px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.tabbar__item.router-link-active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.tabbar__item img {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.loading-state,
|
|
.empty-state {
|
|
display: grid;
|
|
place-items: center;
|
|
gap: 8px;
|
|
min-height: 160px;
|
|
padding: 28px 16px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-state__spinner {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: 3px solid var(--accent-soft);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
.empty-state__mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 18px;
|
|
background: var(--subtle);
|
|
color: #6d675f;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.empty-state strong {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.modal-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 50;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
padding: 14px;
|
|
background: rgba(38, 35, 31, 0.34);
|
|
}
|
|
|
|
.modal-panel {
|
|
width: min(100%, 500px);
|
|
max-height: min(84vh, 720px);
|
|
overflow: auto;
|
|
border-radius: 22px 22px 16px 16px;
|
|
background: var(--card-bg);
|
|
box-shadow: 0 18px 46px rgba(38, 35, 31, 0.18);
|
|
}
|
|
|
|
.modal-panel__head {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.modal-panel__head h2 {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.modal-panel__close {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--subtle);
|
|
color: #514b44;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.modal-panel__footer {
|
|
position: sticky;
|
|
bottom: 0;
|
|
padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--border);
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.toast-host {
|
|
position: fixed;
|
|
top: calc(16px + env(safe-area-inset-top));
|
|
left: 50%;
|
|
z-index: 80;
|
|
max-width: min(88vw, 420px);
|
|
transform: translateX(-50%);
|
|
padding: 10px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(38, 35, 31, 0.92);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
box-shadow: 0 10px 28px rgba(38, 35, 31, 0.16);
|
|
}
|
|
|
|
.toast-host--success {
|
|
background: rgba(47, 111, 98, 0.94);
|
|
}
|
|
|
|
.toast-host--error {
|
|
background: rgba(196, 95, 95, 0.94);
|
|
}
|
|
|
|
.toast-fade-enter-active,
|
|
.toast-fade-leave-active,
|
|
.modal-fade-enter-active,
|
|
.modal-fade-leave-active {
|
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.toast-fade-enter-from,
|
|
.toast-fade-leave-to {
|
|
opacity: 0;
|
|
transform: translate(-50%, -8px);
|
|
}
|
|
|
|
.modal-fade-enter-from,
|
|
.modal-fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 720px) {
|
|
body {
|
|
background:
|
|
linear-gradient(90deg, rgba(240, 236, 229, 0.72), rgba(248, 245, 239, 0.96)),
|
|
var(--page-bg);
|
|
}
|
|
|
|
.mobile-shell {
|
|
width: 520px;
|
|
margin: 0 auto;
|
|
box-shadow: 0 0 0 1px rgba(50, 43, 34, 0.04), 0 24px 80px rgba(58, 48, 34, 0.12);
|
|
}
|
|
}
|