refactor: slice web app wip
This commit is contained in:
@@ -0,0 +1,277 @@
|
||||
|
||||
|
||||
.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: var(--admin-bg);
|
||||
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: 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: var(--admin-elev);
|
||||
}
|
||||
|
||||
.admin-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-primary {
|
||||
background: var(--accent);
|
||||
color: #02110a;
|
||||
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(--admin-surface-2);
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger {
|
||||
background: color-mix(in srgb, #ff5757 80%, #000);
|
||||
color: #fff;
|
||||
border-color: color-mix(in srgb, #ff5757 60%, #000);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger:hover:not(:disabled) {
|
||||
background: #ff5757;
|
||||
border-color: #ff5757;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft {
|
||||
color: #ffb4b4;
|
||||
background: var(--admin-surface-2);
|
||||
border-color: color-mix(in srgb, #ff6b6b 30%, transparent);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #ff6b6b 14%, var(--admin-surface));
|
||||
border-color: color-mix(in srgb, #ff6b6b 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: color-mix(in srgb, var(--accent) 36%, transparent);
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-danger {
|
||||
border-color: color-mix(in srgb, #ff6b6b 32%, transparent);
|
||||
color: #ffb4b4;
|
||||
background: color-mix(in srgb, #ff6b6b 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-warning {
|
||||
border-color: color-mix(in srgb, #ffd166 32%, transparent);
|
||||
color: #ffd166;
|
||||
background: color-mix(in srgb, #ffd166 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-muted {
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-setting-control .input,
|
||||
.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-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;
|
||||
}
|
||||
@@ -293,6 +293,7 @@
|
||||
|
||||
/* Flex children must NOT shrink — otherwise they collapse to fit the
|
||||
container and the main never overflows, breaking scroll. */
|
||||
|
||||
.admin-main > * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -451,11 +452,6 @@
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
}
|
||||
|
||||
.admin-toolbar-search .input,
|
||||
.admin-toolbar-search .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-toolbar-controls {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(96px, auto);
|
||||
@@ -463,18 +459,6 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.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-toolbar-field {
|
||||
display: grid;
|
||||
align-items: start;
|
||||
@@ -597,10 +581,6 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-table td.admin-cell-actions .admin-btn {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.admin-table td.admin-cell-wrap {
|
||||
white-space: normal;
|
||||
max-width: 320px;
|
||||
@@ -830,53 +810,14 @@
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.admin-screen-wrap input,
|
||||
.admin-screen-wrap textarea,
|
||||
.admin-screen-wrap select,
|
||||
.admin-screen-wrap .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 {
|
||||
height: 36px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--admin-border-strong);
|
||||
background: var(--admin-bg);
|
||||
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 {
|
||||
color: var(--admin-dim);
|
||||
}
|
||||
|
||||
.admin-screen-wrap .input:focus,
|
||||
.admin-screen-wrap input:focus,
|
||||
.admin-screen-wrap select:focus {
|
||||
border-color: var(--admin-ring);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
|
||||
.admin-select {
|
||||
width: 100%;
|
||||
appearance: auto;
|
||||
}
|
||||
|
||||
.admin-textarea,
|
||||
.admin-screen-wrap textarea {
|
||||
.admin-screen-wrap textarea,
|
||||
.admin-dialog textarea {
|
||||
width: 100%;
|
||||
min-height: 110px;
|
||||
border-radius: 10px;
|
||||
@@ -891,7 +832,8 @@
|
||||
transition: border-color 0.12s ease, box-shadow 0.12s ease;
|
||||
}
|
||||
|
||||
.admin-textarea:focus {
|
||||
.admin-textarea:focus,
|
||||
.admin-dialog textarea:focus {
|
||||
border-color: var(--admin-ring);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
@@ -935,90 +877,6 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.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: 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: var(--admin-elev);
|
||||
}
|
||||
|
||||
.admin-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-primary {
|
||||
background: var(--accent);
|
||||
color: #02110a;
|
||||
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(--admin-surface-2);
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger {
|
||||
background: color-mix(in srgb, #ff5757 80%, #000);
|
||||
color: #fff;
|
||||
border-color: color-mix(in srgb, #ff5757 60%, #000);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger:hover:not(:disabled) {
|
||||
background: #ff5757;
|
||||
border-color: #ff5757;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft {
|
||||
color: #ffb4b4;
|
||||
background: var(--admin-surface-2);
|
||||
border-color: color-mix(in srgb, #ff6b6b 30%, transparent);
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-danger-soft:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #ff6b6b 14%, var(--admin-surface));
|
||||
border-color: color-mix(in srgb, #ff6b6b 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 skeletons (users list, payments / logs / promos / ads
|
||||
tables). Rendered while data is loading to soften the empty
|
||||
@@ -1109,42 +967,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.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: color-mix(in srgb, var(--accent) 36%, transparent);
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-danger {
|
||||
border-color: color-mix(in srgb, #ff6b6b 32%, transparent);
|
||||
color: #ffb4b4;
|
||||
background: color-mix(in srgb, #ff6b6b 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-warning {
|
||||
border-color: color-mix(in srgb, #ffd166 32%, transparent);
|
||||
color: #ffd166;
|
||||
background: color-mix(in srgb, #ffd166 12%, var(--admin-surface));
|
||||
}
|
||||
|
||||
.admin-badge.admin-badge-muted {
|
||||
color: var(--admin-muted);
|
||||
}
|
||||
|
||||
.admin-detail-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
@@ -1353,14 +1175,6 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-setting-control .input,
|
||||
.admin-setting-control input[type="text"],
|
||||
.admin-setting-control input[type="number"] {
|
||||
flex: 1 1 160px;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-setting-control .admin-color {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
@@ -1408,13 +1222,6 @@
|
||||
/* Admin dialogs don't share the user-facing bottom-nav, so reset the .dialog
|
||||
wrapper's padding (which reserves space for the mobile nav) and let the
|
||||
card use the full viewport for its scroll area. */
|
||||
.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;
|
||||
}
|
||||
|
||||
.admin-dialog {
|
||||
max-height: 100%;
|
||||
@@ -1426,6 +1233,7 @@
|
||||
|
||||
/* User-detail dialog: constrain on desktop and lay out as a two-column
|
||||
sidebar (profile facts) + main content (tabs). On mobile it stacks. */
|
||||
|
||||
.admin-user-dialog {
|
||||
width: min(100%, 1040px);
|
||||
max-height: min(100%, 760px);
|
||||
@@ -1532,16 +1340,6 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.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-meta-truncate {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -1758,6 +1556,7 @@
|
||||
/* Section title block: stacks `<strong>` heading + `<small>` description.
|
||||
Higher specificity than `.admin-editor-section-head > div` (which would
|
||||
otherwise force flex-row on the wrapper). */
|
||||
|
||||
.admin-editor-section-head > .admin-editor-section-title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1777,6 +1576,7 @@
|
||||
|
||||
/* Column headers above an `.admin-row-editor` list — visually distinct,
|
||||
inherits the same grid template as input rows so columns line up. */
|
||||
|
||||
.admin-row-editor-line.admin-row-editor-header {
|
||||
color: var(--admin-muted);
|
||||
font-size: 11px;
|
||||
@@ -1810,11 +1610,6 @@
|
||||
grid-template-columns: minmax(80px, 0.8fr) minmax(100px, 1fr) minmax(100px, 1fr) 32px;
|
||||
}
|
||||
|
||||
.admin-row-editor-line .admin-btn {
|
||||
width: 32px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin-package-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -2111,6 +1906,7 @@
|
||||
}
|
||||
|
||||
/* Switch (bits-ui Switch.Root + Thumb) */
|
||||
|
||||
.admin-switch-root {
|
||||
appearance: none;
|
||||
position: relative;
|
||||
@@ -2158,6 +1954,7 @@
|
||||
}
|
||||
|
||||
/* Select (bits-ui Select.Root + Trigger + Content + Item) */
|
||||
|
||||
.admin-select-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -2270,6 +2067,7 @@
|
||||
}
|
||||
|
||||
/* Label primitive (bits-ui Label.Root) */
|
||||
|
||||
.admin-field-label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -2311,6 +2109,7 @@
|
||||
}
|
||||
|
||||
/* Action rows in dialogs */
|
||||
|
||||
.admin-action-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2353,12 +2152,6 @@
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.admin-action-grid > .admin-btn {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.admin-user-quick-actions {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.25fr);
|
||||
@@ -2392,40 +2185,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.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:focus-within {
|
||||
border-color: var(--admin-ring);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
@@ -2439,26 +2198,12 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-input-row .input,
|
||||
.admin-input-row .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-actions-tab > .admin-btn {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-message-actions {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.admin-message-actions .admin-btn {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.admin-confirm-message-preview {
|
||||
max-height: min(280px, 45vh);
|
||||
overflow: auto;
|
||||
@@ -2497,6 +2242,7 @@
|
||||
}
|
||||
|
||||
/* Two-column variant of admin-form-row */
|
||||
|
||||
.admin-form-row.admin-form-row-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
@@ -2508,6 +2254,7 @@
|
||||
}
|
||||
|
||||
/* User summary header inside the user dialog */
|
||||
|
||||
.admin-user-summary {
|
||||
display: grid;
|
||||
grid-template-columns: 56px minmax(0, 1fr);
|
||||
@@ -2583,6 +2330,7 @@
|
||||
}
|
||||
|
||||
/* Editor section header tweaks */
|
||||
|
||||
.admin-editor-section-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -2597,7 +2345,6 @@
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
|
||||
.admin-danger-zone {
|
||||
border: 1px solid color-mix(in srgb, #ff6b6b 32%, transparent);
|
||||
border-radius: 12px;
|
||||
@@ -2632,6 +2379,7 @@
|
||||
/* Subsection grouping inside settings sections (per-payment-provider).
|
||||
Each subsection is a nested Accordion.Item that defaults to closed —
|
||||
users see provider names and expand only the one they want to edit. */
|
||||
|
||||
.admin-subsection-accordion {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -2731,4 +2479,4 @@
|
||||
grid-area: meta;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
@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;
|
||||
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;
|
||||
--blue: #2d9cff;
|
||||
--radius: 8px;
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #02070b;
|
||||
color: var(--text);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
min-height: 100dvh;
|
||||
background: #02070b !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
--desktop-rail-width: 252px;
|
||||
--desktop-page-gutter: clamp(28px, 4vw, 72px);
|
||||
}
|
||||
@@ -1,101 +1,173 @@
|
||||
/* Shared control primitives: buttons, inputs. */
|
||||
|
||||
|
||||
button:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
min-height: 44px;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
min-height: 46px;
|
||||
padding: 0 16px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
padding: 10px 14px;
|
||||
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;
|
||||
font-size: 14px;
|
||||
font-weight: 850;
|
||||
line-height: 1.1;
|
||||
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
|
||||
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 {
|
||||
.btn:hover:not(:disabled) {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.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),
|
||||
0 14px 32px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.btn.wide,
|
||||
.wide {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
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: #031009;
|
||||
box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
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: #03100a;
|
||||
}
|
||||
|
||||
.btn-secondary,
|
||||
.btn-outline {
|
||||
border-color: var(--border-strong);
|
||||
background: rgba(255, 255, 255, 0.045);
|
||||
.btn-secondary {
|
||||
border-color: var(--border);
|
||||
background: var(--panel-3);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
|
||||
color: var(--accent);
|
||||
border-color: var(--border-strong);
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
color: var(--text);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-telegram {
|
||||
border-color: #2d9cff;
|
||||
background: linear-gradient(180deg, #2f9ff4, #1786df);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
border-color: var(--border);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text);
|
||||
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: 8px 10px;
|
||||
font-size: 12px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.wide {
|
||||
width: 100%;
|
||||
.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: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.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: 44px;
|
||||
min-width: 0;
|
||||
min-height: 46px;
|
||||
padding: 8px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(4, 8, 11, 0.48);
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
outline: none;
|
||||
padding: 11px 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
transition:
|
||||
border-color 0.16s ease,
|
||||
box-shadow 0.16s ease;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
|
||||
}
|
||||
|
||||
.input.muted {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.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;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,78 @@
|
||||
/* Modal/dialog primitives — bottom-sheet style cards used across the webapp. */
|
||||
|
||||
|
||||
.dialog-skeleton {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 70;
|
||||
z-index: 220;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
padding:
|
||||
16px
|
||||
var(--screen-gutter)
|
||||
calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + 16px + env(safe-area-inset-bottom));
|
||||
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: rgba(2, 7, 11, 0.54);
|
||||
background: rgba(0, 0, 0, 0.56);
|
||||
backdrop-filter: blur(10px);
|
||||
animation: fade-in 0.18s ease-out both;
|
||||
cursor: pointer;
|
||||
animation: dialog-fade-in 0.18s ease-out both;
|
||||
}
|
||||
|
||||
.dialog-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
width: min(100%, 420px);
|
||||
gap: 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
|
||||
padding: 14px;
|
||||
transform-origin: center;
|
||||
animation: modal-enter 0.2s ease-out both;
|
||||
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) 94%, #07111a);
|
||||
color: var(--text);
|
||||
box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
|
||||
animation: dialog-slide-up 0.2s ease-out both;
|
||||
}
|
||||
|
||||
.dialog-head {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 42px;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dialog-head h2 {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-size: 18px;
|
||||
line-height: 1.16;
|
||||
font-weight: 850;
|
||||
font-size: 19px;
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.dialog-head p {
|
||||
margin: 4px 0 0;
|
||||
margin: 6px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.3;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.dialog-card .bottom-action {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.payment-dialog-card {
|
||||
@@ -64,38 +80,6 @@
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.link-email-code-layout {
|
||||
display: grid;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.link-email-code-center {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.link-email-resend {
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.payment-dialog-body {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
@@ -117,22 +101,42 @@
|
||||
0 0 26px color-mix(in srgb, var(--accent) 42%, transparent);
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
.link-email-dialog-card {
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
height: min(100%, 560px);
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@keyframes modal-enter {
|
||||
.link-email-dialog-card .dialog-head {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.link-email-dialog-card .payment-dialog-body {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@keyframes dialog-fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes dialog-slide-up {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px) scale(0.98);
|
||||
transform: translateY(18px) scale(0.98);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.dialog-card {
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,107 +1,11 @@
|
||||
@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;
|
||||
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;
|
||||
--blue: #2d9cff;
|
||||
--radius: 8px;
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #02070b;
|
||||
color: var(--text);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
min-height: 100dvh;
|
||||
background: #02070b !important;
|
||||
}
|
||||
|
||||
.phone-screen {
|
||||
position: relative;
|
||||
width: min(100%, 440px);
|
||||
@@ -109,10 +13,7 @@ a {
|
||||
margin: 0 auto;
|
||||
overflow-x: hidden;
|
||||
padding:
|
||||
max(16px, env(safe-area-inset-top))
|
||||
max(var(--screen-gutter), var(--safe-inline))
|
||||
max(18px, env(safe-area-inset-bottom))
|
||||
max(var(--screen-gutter), var(--safe-inline));
|
||||
max(16px, env(safe-area-inset-top)) max(var(--screen-gutter), var(--safe-inline)) max(18px, env(safe-area-inset-bottom)) max(var(--screen-gutter), var(--safe-inline));
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -366,24 +267,6 @@ a {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.progress {
|
||||
position: relative;
|
||||
height: 8px;
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.traffic-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -407,7 +290,7 @@ a {
|
||||
|
||||
.card-click-target {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
z-index: 6;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
@@ -439,7 +322,7 @@ a {
|
||||
|
||||
.premium-server-dropdown {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
z-index: 7;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@@ -509,7 +392,7 @@ a {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.premium-server-list > div {
|
||||
.premium-server-list>div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
@@ -533,7 +416,7 @@ a {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.topup-summary-card > div:not(.premium-server-list) {
|
||||
.topup-summary-card>div:not(.premium-server-list) {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
@@ -557,7 +440,7 @@ a {
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
.trial-card-head > svg {
|
||||
.trial-card-head>svg {
|
||||
flex: 0 0 auto;
|
||||
color: var(--accent);
|
||||
}
|
||||
@@ -592,7 +475,7 @@ a {
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
.devices-summary-head > svg {
|
||||
.devices-summary-head>svg {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
@@ -881,17 +764,12 @@ a {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.change-action-row > svg {
|
||||
.change-action-row>svg {
|
||||
flex: 0 0 auto;
|
||||
margin-top: 1px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.dialog-skeleton {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.topup-carryover-note {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
@@ -921,12 +799,10 @@ a {
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background:
|
||||
linear-gradient(
|
||||
90deg,
|
||||
linear-gradient(90deg,
|
||||
rgba(255, 255, 255, 0.07) 0%,
|
||||
rgba(255, 255, 255, 0.14) 42%,
|
||||
rgba(255, 255, 255, 0.07) 84%
|
||||
);
|
||||
rgba(255, 255, 255, 0.07) 84%);
|
||||
background-size: 220% 100%;
|
||||
animation: skeleton-shimmer 1.15s ease-in-out infinite;
|
||||
}
|
||||
@@ -978,6 +854,7 @@ a {
|
||||
0% {
|
||||
background-position: 120% 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: -120% 0;
|
||||
}
|
||||
@@ -1153,11 +1030,6 @@ a {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.input.input-error {
|
||||
border-color: var(--danger);
|
||||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 70%, transparent);
|
||||
}
|
||||
|
||||
.field-error-icon {
|
||||
color: var(--danger);
|
||||
pointer-events: none;
|
||||
@@ -1205,6 +1077,7 @@ a {
|
||||
opacity: 0;
|
||||
transform: translateY(4px) scale(0.98);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
@@ -1216,6 +1089,7 @@ a {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateY(2px) scale(0.98);
|
||||
@@ -1254,7 +1128,7 @@ a {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.bonus-card-head > svg {
|
||||
.bonus-card-head>svg {
|
||||
flex: 0 0 auto;
|
||||
color: var(--accent);
|
||||
}
|
||||
@@ -1370,12 +1244,12 @@ a {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.settings-row > svg:first-child {
|
||||
.settings-row>svg:first-child {
|
||||
color: var(--text);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.settings-row > svg:last-child {
|
||||
.settings-row>svg:last-child {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@@ -1402,7 +1276,7 @@ a {
|
||||
background: color-mix(in srgb, var(--accent) 11%, rgba(255, 255, 255, 0.03));
|
||||
}
|
||||
|
||||
.settings-row-linked > svg:first-child {
|
||||
.settings-row-linked>svg:first-child {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
@@ -1447,7 +1321,7 @@ a {
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.language-select-trigger > svg {
|
||||
.language-select-trigger>svg {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@@ -1531,11 +1405,11 @@ a {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.language-select-item-main > span {
|
||||
.language-select-item-main>span {
|
||||
display: inline-block !important;
|
||||
}
|
||||
|
||||
.language-select-item-main > span:last-child {
|
||||
.language-select-item-main>span:last-child {
|
||||
margin-left: 6px;
|
||||
white-space: nowrap !important;
|
||||
overflow: hidden;
|
||||
@@ -1591,9 +1465,11 @@ a {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.75);
|
||||
}
|
||||
|
||||
70% {
|
||||
box-shadow: 0 0 0 8px rgba(255, 75, 75, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
|
||||
}
|
||||
@@ -1924,6 +1800,7 @@ a {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
@@ -1935,6 +1812,7 @@ a {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px) scale(0.97);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
@@ -1946,6 +1824,7 @@ a {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
@@ -2023,19 +1902,6 @@ a {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.preview-phone .period-card {
|
||||
min-height: 72px;
|
||||
}
|
||||
@@ -2141,6 +2007,7 @@ a {
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
.content,
|
||||
.home-layout,
|
||||
.language-select-content,
|
||||
@@ -2166,11 +2033,6 @@ a {
|
||||
Mobile (≤ 1023px) is intentionally untouched.
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--desktop-rail-width: 252px;
|
||||
--desktop-page-gutter: clamp(28px, 4vw, 72px);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
body {
|
||||
background: #02070b;
|
||||
@@ -2195,18 +2057,15 @@ a {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding:
|
||||
max(28px, env(safe-area-inset-top))
|
||||
var(--desktop-page-gutter)
|
||||
40px
|
||||
calc(var(--desktop-rail-width) + var(--desktop-page-gutter));
|
||||
max(28px, env(safe-area-inset-top)) var(--desktop-page-gutter) 40px calc(var(--desktop-rail-width) + var(--desktop-page-gutter));
|
||||
overflow-x: visible;
|
||||
}
|
||||
|
||||
/* Centre and cap the width of the actual content blocks. */
|
||||
.phone-screen > .app-header,
|
||||
.phone-screen > main,
|
||||
.phone-screen > .home-layout,
|
||||
.phone-screen > nav.bottom-nav ~ * {
|
||||
.phone-screen>.app-header,
|
||||
.phone-screen>main,
|
||||
.phone-screen>.home-layout,
|
||||
.phone-screen>nav.bottom-nav~* {
|
||||
max-width: 1080px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
@@ -2217,13 +2076,11 @@ a {
|
||||
width: min(100%, 460px);
|
||||
min-height: 100dvh;
|
||||
padding:
|
||||
max(48px, env(safe-area-inset-top))
|
||||
clamp(24px, 4vw, 48px)
|
||||
48px;
|
||||
max(16px, env(safe-area-inset-top)) clamp(24px, 4vw, 16px) 16px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.phone-screen.auth-screen ~ .bottom-nav,
|
||||
.phone-screen.auth-screen~.bottom-nav,
|
||||
.auth-screen .bottom-nav {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -2234,10 +2091,7 @@ a {
|
||||
align-items: stretch;
|
||||
min-height: 100dvh;
|
||||
padding:
|
||||
max(32px, env(safe-area-inset-top))
|
||||
var(--desktop-page-gutter)
|
||||
42px
|
||||
calc(var(--desktop-rail-width) + var(--desktop-page-gutter));
|
||||
max(32px, env(safe-area-inset-top)) var(--desktop-page-gutter) 42px calc(var(--desktop-rail-width) + var(--desktop-page-gutter));
|
||||
}
|
||||
|
||||
/* Home: keep the phone-style vertical flow, but center it in the
|
||||
@@ -2255,7 +2109,7 @@ a {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.home-layout > .home-brand {
|
||||
.home-layout>.home-brand {
|
||||
grid-column: auto;
|
||||
align-self: center;
|
||||
justify-items: center;
|
||||
@@ -2342,12 +2196,12 @@ a {
|
||||
transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
|
||||
}
|
||||
|
||||
.bottom-nav button > svg {
|
||||
.bottom-nav button>svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.bottom-nav button > span {
|
||||
.bottom-nav button>span {
|
||||
text-align: left !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 600;
|
||||
@@ -2372,11 +2226,12 @@ a {
|
||||
.bottom-nav .rail-admin-entry {
|
||||
display: grid !important;
|
||||
}
|
||||
|
||||
.settings-admin-block {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.phone-screen > main.content.with-nav {
|
||||
.phone-screen>main.content.with-nav {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
@@ -2431,6 +2286,7 @@ a {
|
||||
}
|
||||
|
||||
/* Brand block sits at the top of the desktop side rail; hidden on mobile. */
|
||||
|
||||
.rail-brand {
|
||||
display: none;
|
||||
}
|
||||
@@ -2455,4 +2311,4 @@ a {
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user