refactor: project architecture refactor, container splitting
This commit is contained in:
@@ -0,0 +1,294 @@
|
||||
|
||||
|
||||
.admin-toolbar-search .input,
|
||||
.admin-toolbar-search .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-toolbar > .input,
|
||||
.admin-toolbar input[type="text"],
|
||||
.admin-toolbar input[type="number"],
|
||||
.admin-toolbar input[type="search"] {
|
||||
flex: 1 1 200px;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.admin-toolbar > .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-table td.admin-cell-actions .admin-btn {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.admin-screen-wrap input,
|
||||
.admin-screen-wrap textarea,
|
||||
.admin-screen-wrap select,
|
||||
.admin-screen-wrap .input,
|
||||
.admin-dialog input,
|
||||
.admin-dialog textarea,
|
||||
.admin-dialog select,
|
||||
.admin-dialog .input {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.admin-screen-wrap .input,
|
||||
.admin-screen-wrap input[type="text"],
|
||||
.admin-screen-wrap input[type="number"],
|
||||
.admin-screen-wrap input[type="email"],
|
||||
.admin-screen-wrap input[type="search"],
|
||||
.admin-screen-wrap input[type="password"],
|
||||
.admin-screen-wrap input[type="url"],
|
||||
.admin-screen-wrap select,
|
||||
.admin-dialog .input,
|
||||
.admin-dialog input[type="text"],
|
||||
.admin-dialog input[type="number"],
|
||||
.admin-dialog input[type="email"],
|
||||
.admin-dialog input[type="search"],
|
||||
.admin-dialog input[type="password"],
|
||||
.admin-dialog input[type="url"],
|
||||
.admin-dialog select {
|
||||
height: 36px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--admin-border-strong);
|
||||
background: color-mix(in srgb, var(--admin-bg) 82%, var(--admin-surface-2));
|
||||
color: var(--admin-text);
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
transition: border-color 0.12s ease, box-shadow 0.12s ease;
|
||||
}
|
||||
|
||||
.admin-screen-wrap .input::placeholder,
|
||||
.admin-screen-wrap input::placeholder,
|
||||
.admin-screen-wrap textarea::placeholder,
|
||||
.admin-dialog .input::placeholder,
|
||||
.admin-dialog input::placeholder,
|
||||
.admin-dialog textarea::placeholder {
|
||||
color: var(--admin-dim);
|
||||
}
|
||||
|
||||
.admin-screen-wrap .input:focus,
|
||||
.admin-screen-wrap input:focus,
|
||||
.admin-screen-wrap select:focus,
|
||||
.admin-dialog .input:focus,
|
||||
.admin-dialog input:focus,
|
||||
.admin-dialog select:focus {
|
||||
border-color: var(--admin-ring);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
|
||||
.admin-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
height: 34px;
|
||||
padding: 0 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--admin-border);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
|
||||
var(--admin-surface-2);
|
||||
color: var(--admin-text);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
|
||||
}
|
||||
|
||||
.admin-btn:hover:not(:disabled) {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.018)),
|
||||
var(--admin-elev);
|
||||
border-color: var(--admin-border-strong);
|
||||
}
|
||||
|
||||
.admin-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-primary {
|
||||
background: var(--accent);
|
||||
color: var(--accent-contrast);
|
||||
border-color: color-mix(in srgb, var(--accent) 70%, #000);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-primary:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--accent) 90%, #fff);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-ghost {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-ghost:hover:not(:disabled) {
|
||||
background: var(--surface-hover);
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger {
|
||||
background: color-mix(in srgb, var(--danger) 80%, #000);
|
||||
color: #fff;
|
||||
border-color: color-mix(in srgb, var(--danger) 60%, #000);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger:hover:not(:disabled) {
|
||||
background: var(--danger);
|
||||
border-color: var(--danger);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft {
|
||||
color: var(--danger-text);
|
||||
background: var(--admin-surface-2);
|
||||
border-color: var(--danger-border);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft:hover:not(:disabled) {
|
||||
background: var(--danger-soft);
|
||||
border-color: color-mix(in srgb, var(--danger) 50%, transparent);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-icon {
|
||||
width: 34px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-sm {
|
||||
height: 28px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.admin-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--admin-border);
|
||||
background: var(--admin-surface-2);
|
||||
color: var(--admin-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-success {
|
||||
border-color: var(--success-border);
|
||||
color: var(--success-text);
|
||||
background: var(--success-soft);
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-danger {
|
||||
border-color: var(--danger-border);
|
||||
color: var(--danger-text);
|
||||
background: var(--danger-soft);
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-warning {
|
||||
border-color: var(--warning-border);
|
||||
color: var(--warning-text);
|
||||
background: var(--warning-soft);
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-muted {
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-setting-control .input,
|
||||
.admin-setting-control .admin-setting-select,
|
||||
.admin-setting-control input[type="text"],
|
||||
.admin-setting-control input[type="number"] {
|
||||
flex: 1 1 160px;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.admin-row-editor-line .admin-btn {
|
||||
width: 32px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin-action-grid > .admin-btn {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.admin-extend-control .input {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
padding: 0 12px;
|
||||
line-height: 34px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.admin-extend-control .input:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.admin-extend-control .admin-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
padding: 0 12px;
|
||||
border-width: 0 0 0 1px;
|
||||
border-radius: 0;
|
||||
border-color: var(--admin-border-strong);
|
||||
background: var(--admin-surface-2);
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-extend-control .admin-btn svg {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.admin-extend-control .admin-btn.admin-btn-primary {
|
||||
background: var(--accent);
|
||||
color: var(--accent-contrast);
|
||||
border-color: color-mix(in srgb, var(--accent) 70%, #000);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-extend-control .admin-btn.admin-btn-primary:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--accent) 90%, #fff);
|
||||
}
|
||||
|
||||
.admin-input-row .input,
|
||||
.admin-input-row .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-actions-tab > .admin-btn {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-message-actions .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
.dialog:has(.admin-dialog) {
|
||||
padding: max(12px, env(safe-area-inset-top))
|
||||
max(12px, env(safe-area-inset-right))
|
||||
max(12px, env(safe-area-inset-bottom))
|
||||
max(12px, env(safe-area-inset-left));
|
||||
z-index: 90;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,120 @@
|
||||
@font-face {
|
||||
font-family: "Twemoji Country Flags";
|
||||
src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2")
|
||||
format("woff2");
|
||||
font-display: swap;
|
||||
unicode-range:
|
||||
U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074,
|
||||
U+E0077, U+E007F;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
||||
--font-mono: "JetBrains Mono", "Fira Code", monospace;
|
||||
--font-logo: var(--font-mono);
|
||||
color-scheme: dark;
|
||||
--accent: #00fe7a;
|
||||
--bg: #03070b;
|
||||
--panel: #111820;
|
||||
--panel-2: #0b1118;
|
||||
--panel-3: #17212b;
|
||||
--border: rgba(255, 255, 255, 0.12);
|
||||
--border-strong: rgba(255, 255, 255, 0.2);
|
||||
--text: #f2f7f4;
|
||||
--muted: #a9b4b0;
|
||||
--dim: #68736f;
|
||||
--danger: #ff6b6b;
|
||||
--danger-text: #ffb4b4;
|
||||
--danger-soft: color-mix(in srgb, var(--danger) 12%, var(--panel));
|
||||
--danger-border: color-mix(in srgb, var(--danger) 34%, var(--border));
|
||||
--success: #3ecf8e;
|
||||
--success-text: #7ff0b9;
|
||||
--success-soft: color-mix(in srgb, var(--success) 12%, var(--panel));
|
||||
--success-border: color-mix(in srgb, var(--success) 34%, var(--border));
|
||||
--warning: #ffd166;
|
||||
--warning-text: #ffd166;
|
||||
--warning-soft: color-mix(in srgb, var(--warning) 12%, var(--panel));
|
||||
--warning-border: color-mix(in srgb, var(--warning) 34%, var(--border));
|
||||
--info: #2d9cff;
|
||||
--info-text: #8ed0ff;
|
||||
--info-soft: color-mix(in srgb, var(--info) 12%, var(--panel));
|
||||
--info-border: color-mix(in srgb, var(--info) 34%, var(--border));
|
||||
--blue: #2d9cff;
|
||||
--radius: 8px;
|
||||
--accent-contrast: #03100a;
|
||||
--surface-sheen: rgba(255, 255, 255, 0.055);
|
||||
--surface-sheen-soft: rgba(255, 255, 255, 0.018);
|
||||
--surface-hover: rgba(255, 255, 255, 0.04);
|
||||
--surface-muted: rgba(255, 255, 255, 0.035);
|
||||
--surface-subtle-border: rgba(255, 255, 255, 0.1);
|
||||
--overlay-scrim: rgba(0, 0, 0, 0.56);
|
||||
--nav-bg: rgba(7, 12, 17, 0.88);
|
||||
--rail-bg: rgba(7, 12, 17, 0.55);
|
||||
--shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.22);
|
||||
--shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.46);
|
||||
--shadow-popover: 0 20px 34px rgba(0, 0, 0, 0.42);
|
||||
--inset-highlight: rgba(255, 255, 255, 0.05);
|
||||
|
||||
/* Admin design tokens — kept on :root so portal-rendered admin
|
||||
surfaces (dialogs, bits-ui Select.Portal content) inherit them. */
|
||||
--admin-bg: var(--bg);
|
||||
--admin-surface: var(--panel);
|
||||
--admin-surface-2: var(--panel-2);
|
||||
--admin-elev: var(--panel-3);
|
||||
--admin-border: var(--border);
|
||||
--admin-border-strong: var(--border-strong);
|
||||
--admin-text: var(--text);
|
||||
--admin-muted: var(--muted);
|
||||
--admin-dim: var(--dim);
|
||||
--admin-ring: color-mix(in srgb, var(--accent) 50%, transparent);
|
||||
--screen-gutter: 18px;
|
||||
--safe-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
|
||||
--nav-inline-gutter: max(var(--screen-gutter), var(--safe-inline));
|
||||
--bottom-nav-height: 64px;
|
||||
--bottom-nav-offset: 10px;
|
||||
--bottom-nav-left: calc(max(0px, (100% - 440px) / 2) + var(--nav-inline-gutter));
|
||||
--bottom-nav-width: min(
|
||||
calc(100% - (var(--nav-inline-gutter) * 2)),
|
||||
calc(440px - (var(--nav-inline-gutter) * 2))
|
||||
);
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--bg, #02070b);
|
||||
color: var(--text);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
min-height: 100dvh;
|
||||
background: var(--bg, #02070b) !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
--desktop-rail-width: 252px;
|
||||
--desktop-page-gutter: clamp(28px, 4vw, 72px);
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
/* Shared shadcn-svelte style primitives, themed for the local admin palette. */
|
||||
|
||||
.admin-cn-dashboard-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-cn-dashboard-grid {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.admin-cn-dashboard-grid--3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.admin-cn-card[data-slot="card"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--admin-border);
|
||||
background:
|
||||
linear-gradient(135deg, var(--surface-sheen), var(--surface-sheen-soft)),
|
||||
var(--admin-surface);
|
||||
box-shadow: var(--shadow-soft), inset 0 1px 0 var(--inset-highlight);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-cn-card-header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
grid-template-rows: auto auto;
|
||||
align-items: flex-start;
|
||||
gap: 4px 12px;
|
||||
padding: 14px 16px 0;
|
||||
}
|
||||
|
||||
.admin-cn-card-header > [data-slot="card-description"] {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.admin-cn-card-header > [data-slot="card-title"] {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.admin-cn-card-header > [data-slot="card-action"] {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / span 2;
|
||||
align-self: flex-start;
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
.admin-cn-card-header--lead > [data-slot="card-title"] {
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.admin-cn-card-header--lead > [data-slot="card-description"] {
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.admin-cn-card-description {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-cn-card-title {
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
color: var(--admin-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.admin-cn-card-title--section {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.admin-cn-card-skeleton {
|
||||
min-height: 132px;
|
||||
}
|
||||
|
||||
.admin-cn-card-skeleton--tall {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.admin-cn-card-title {
|
||||
font-size: 1.65rem;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-cn-card-footer {
|
||||
padding: 12px 16px 14px;
|
||||
margin-top: auto;
|
||||
border-top: 1px solid color-mix(in srgb, var(--admin-border) 70%, transparent);
|
||||
}
|
||||
|
||||
.admin-cn-card-footer--stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.admin-cn-card-footer-primary {
|
||||
font-weight: 600;
|
||||
color: var(--admin-text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-cn-card-footer-muted {
|
||||
color: var(--admin-muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.admin-cn-card-content {
|
||||
padding: 12px 16px 14px;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-cn-card-content--flush {
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.admin-cn-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
border: 1px solid var(--admin-border);
|
||||
background: color-mix(in srgb, var(--admin-surface-2) 88%, var(--admin-bg));
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.admin-cn-badge :global(svg) {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-cn-badge-outline {
|
||||
background: transparent;
|
||||
border-color: var(--admin-border);
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-cn-badge-destructive {
|
||||
background: var(--danger-soft);
|
||||
border-color: var(--danger-border);
|
||||
color: var(--danger-text);
|
||||
}
|
||||
|
||||
.admin-cn-badge-success {
|
||||
background: var(--success-soft);
|
||||
border-color: var(--success-border);
|
||||
color: var(--success-text);
|
||||
}
|
||||
|
||||
.admin-cn-badge-muted {
|
||||
background: color-mix(in srgb, var(--admin-surface-2) 70%, var(--admin-bg));
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.ui-spinner,
|
||||
.telegram-button-spinner {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 999px;
|
||||
border: 2px solid currentColor;
|
||||
border-right-color: transparent;
|
||||
display: inline-block;
|
||||
flex: 0 0 auto;
|
||||
animation: ui-spin 0.72s linear infinite;
|
||||
}
|
||||
|
||||
.ui-spinner-sm {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.ui-spinner-lg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
@keyframes ui-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.ui-skeleton,
|
||||
.admin-skeleton,
|
||||
.skeleton-line,
|
||||
.skeleton-dot,
|
||||
.skeleton-pay-button {
|
||||
display: inline-block;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
color-mix(in srgb, var(--muted) 10%, transparent),
|
||||
color-mix(in srgb, var(--muted) 18%, transparent),
|
||||
color-mix(in srgb, var(--muted) 10%, transparent)
|
||||
);
|
||||
background-size: 220% 100%;
|
||||
animation: ui-skeleton-pulse 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.ui-skeleton {
|
||||
width: 100%;
|
||||
min-height: 40px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.ui-skeleton-line,
|
||||
.admin-skeleton-line,
|
||||
.skeleton-line {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
min-height: 0;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.ui-skeleton-title,
|
||||
.skeleton-line-title {
|
||||
height: 14px;
|
||||
min-height: 0;
|
||||
width: 72%;
|
||||
}
|
||||
|
||||
.ui-skeleton-short,
|
||||
.admin-skeleton-line-short,
|
||||
.skeleton-line-short {
|
||||
width: 56%;
|
||||
}
|
||||
|
||||
.ui-skeleton-tiny,
|
||||
.admin-skeleton-line-tiny,
|
||||
.skeleton-line-tiny {
|
||||
width: 34%;
|
||||
}
|
||||
|
||||
.ui-skeleton-badge,
|
||||
.admin-skeleton-badge {
|
||||
width: 64px;
|
||||
height: 18px;
|
||||
min-height: 0;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.ui-skeleton-dot,
|
||||
.skeleton-dot {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
min-height: 0;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
@keyframes ui-skeleton-pulse {
|
||||
0% {
|
||||
background-position: 120% 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -120% 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
|
||||
|
||||
button:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
min-height: 46px;
|
||||
padding: 0 16px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
box-shadow: var(--shadow-soft);
|
||||
transition:
|
||||
transform 0.16s ease,
|
||||
border-color 0.16s ease,
|
||||
background 0.16s ease,
|
||||
box-shadow 0.16s ease,
|
||||
color 0.16s ease;
|
||||
}
|
||||
|
||||
.btn:hover:not(:disabled) {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-soft);
|
||||
}
|
||||
|
||||
.btn:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow:
|
||||
0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent),
|
||||
var(--shadow-soft);
|
||||
}
|
||||
|
||||
.btn.wide,
|
||||
.wide {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
border-color: color-mix(in srgb, var(--accent) 72%, white);
|
||||
background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 76%, white));
|
||||
color: var(--accent-contrast);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
border-color: var(--border);
|
||||
background: var(--panel-3);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
border-color: var(--border-strong);
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-telegram {
|
||||
border-color: color-mix(in srgb, #229ed9 78%, white);
|
||||
background: #229ed9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-icon,
|
||||
.btn-square {
|
||||
width: 42px;
|
||||
min-width: 42px;
|
||||
height: 42px;
|
||||
min-height: 42px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
min-height: 52px;
|
||||
padding: 0 18px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.progress {
|
||||
position: relative;
|
||||
height: 8px;
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--muted) 18%, transparent);
|
||||
}
|
||||
|
||||
.progress span {
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 0;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 72%, white));
|
||||
box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent);
|
||||
}
|
||||
|
||||
.input {
|
||||
width: 100%;
|
||||
min-height: 46px;
|
||||
padding: 8px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
transition:
|
||||
border-color 0.16s ease,
|
||||
box-shadow 0.16s ease;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
|
||||
}
|
||||
|
||||
.input::placeholder {
|
||||
color: var(--dim);
|
||||
}
|
||||
|
||||
.input:disabled {
|
||||
opacity: 0.52;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.input.input-error {
|
||||
border-color: var(--danger);
|
||||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 70%, transparent);
|
||||
}
|
||||
|
||||
.preview-phone .btn {
|
||||
min-height: 38px;
|
||||
font-size: 12px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.preview-phone .btn-square {
|
||||
width: 36px;
|
||||
min-width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
|
||||
|
||||
.dialog-skeleton {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 220;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
padding:
|
||||
max(14px, env(safe-area-inset-top))
|
||||
max(14px, env(safe-area-inset-right))
|
||||
max(14px, env(safe-area-inset-bottom))
|
||||
max(14px, env(safe-area-inset-left));
|
||||
overflow: hidden;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.dialog-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
border: 0;
|
||||
background: var(--overlay-scrim);
|
||||
backdrop-filter: blur(10px);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
width: min(100%, 520px);
|
||||
max-height: min(86dvh, 760px);
|
||||
overflow: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 24px;
|
||||
background: color-mix(in srgb, var(--panel) 96%, var(--bg));
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow-strong);
|
||||
}
|
||||
|
||||
.dialog-head {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.dialog-head h2 {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-size: 19px;
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.dialog-head p {
|
||||
margin: 6px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.dialog-card .bottom-action {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.payment-dialog-card {
|
||||
max-height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.payment-dialog-body {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.payment-divider {
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.payment-submit-button {
|
||||
border-color: color-mix(in srgb, var(--accent) 72%, transparent);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 94%, white), var(--accent));
|
||||
color: var(--accent-contrast);
|
||||
box-shadow:
|
||||
0 16px 38px color-mix(in srgb, var(--accent) 28%, transparent),
|
||||
0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
|
||||
0 0 26px color-mix(in srgb, var(--accent) 42%, transparent);
|
||||
}
|
||||
|
||||
.link-email-dialog-card {
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
height: min(100%, 560px);
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.link-email-dialog-card .dialog-head {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.link-email-dialog-card .payment-dialog-body {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.dialog-card {
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
@layer theme, components, utilities;
|
||||
|
||||
@import "tailwindcss/theme.css" layer(theme);
|
||||
@import "tailwindcss/utilities.css" layer(utilities);
|
||||
|
||||
@source "../**/*.{svelte,js}";
|
||||
|
||||
@theme {
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
||||
--font-mono: "JetBrains Mono", "Fira Code", monospace;
|
||||
|
||||
--color-background: var(--bg);
|
||||
--color-foreground: var(--text);
|
||||
--color-muted: var(--muted);
|
||||
--color-dim: var(--dim);
|
||||
--color-border: var(--border);
|
||||
--color-ring: var(--admin-ring);
|
||||
--color-accent: var(--accent);
|
||||
--color-destructive: var(--danger);
|
||||
--color-admin-bg: var(--admin-bg);
|
||||
--color-admin-surface: var(--admin-surface);
|
||||
--color-admin-surface-2: var(--admin-surface-2);
|
||||
--color-admin-elev: var(--admin-elev);
|
||||
--color-admin-border: var(--admin-border);
|
||||
--color-admin-text: var(--admin-text);
|
||||
--color-admin-muted: var(--admin-muted);
|
||||
--color-admin-dim: var(--admin-dim);
|
||||
|
||||
--radius-card: 12px;
|
||||
--radius-control: var(--radius);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user