mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat: import and export TeamSpeak identities
This commit is contained in:
1 parent
0a4fff6f6f
commit
9e2b9bf564
7 files changed
+641
-4
No files matched your search
@@ -245,6 +245,29 @@
|
||||
.remember-identity strong { font-size: 11px; font-weight: 700; }
|
||||
.remember-identity small { margin-top: 3px; color: #8b9994; font-size: 10px; line-height: 1.4; }
|
||||
.identity-warning { margin: 8px 0 0; color: #9a6a32; font-size: 10px; line-height: 1.45; }
|
||||
.identity-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
||||
.identity-controls .remember-identity { min-width: 0; flex: 1; }
|
||||
.identity-actions { display: flex; flex: 0 0 auto; gap: 7px; }
|
||||
.identity-action-button, .identity-file-button { min-height: 31px; padding: 0 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-1)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 8px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
|
||||
.identity-action-button:hover, .identity-file-button:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface-1)); }
|
||||
.identity-action-button:disabled { cursor: not-allowed; opacity: .48; }
|
||||
.identity-import-backdrop { z-index: 50; }
|
||||
.identity-import-modal { display: flex; width: min(620px, 100%); max-height: min(720px, calc(100dvh - 56px)); flex-direction: column; gap: 15px; overflow-y: auto; padding: 25px; color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 60px color-mix(in srgb, var(--text-primary) 22%, transparent); }
|
||||
.identity-import-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 35px; }
|
||||
.identity-import-header h2 { margin: 0; color: var(--text-primary); font-size: 20px; letter-spacing: -.035em; }
|
||||
.identity-import-header p { margin: 7px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
|
||||
.identity-import-textarea { display: block; width: 100%; min-height: 190px; resize: vertical; padding: 12px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; outline: none; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
|
||||
.identity-import-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent); }
|
||||
.identity-drop-zone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; min-height: 58px; padding: 10px 14px; color: var(--text-muted); background: color-mix(in srgb, var(--accent) 5%, var(--surface-1)); border: 1px dashed color-mix(in srgb, var(--accent) 48%, var(--border)); border-radius: 10px; font-size: 11px; cursor: pointer; transition: background .16s, border-color .16s; }
|
||||
.identity-drop-zone > .ui-icon { color: var(--accent); }
|
||||
.identity-drop-zone.active, .identity-drop-zone:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface-1)); border-color: var(--accent); }
|
||||
.identity-file-input { display: none; }
|
||||
.identity-import-error { margin: -5px 0 0; color: var(--danger); font-size: 11px; line-height: 1.45; }
|
||||
.identity-import-security { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 12px; color: var(--text-muted); background: color-mix(in srgb, var(--warning) 10%, var(--surface-1)); border-radius: 9px; font-size: 10px; line-height: 1.5; }
|
||||
.identity-import-security .ui-icon { flex: 0 0 auto; color: var(--warning); }
|
||||
.identity-import-footer { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
|
||||
.identity-import-submit { min-height: 39px; padding: 0 16px; }
|
||||
.identity-import-submit:disabled { cursor: not-allowed; opacity: .52; }
|
||||
.local-servers { display: grid; gap: 8px; margin: 1px 0 5px; }
|
||||
.local-server-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
|
||||
.local-server-group > span { width: 100%; color: #87958f; font-size: 10px; font-weight: 700; }
|
||||
@@ -1236,3 +1259,19 @@
|
||||
padding: 10px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 740px) {
|
||||
.identity-import-backdrop { align-items: flex-end; padding: 0; }
|
||||
.identity-import-modal { width: 100%; max-height: calc(100svh - env(safe-area-inset-top, 0px)); padding: 24px 19px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; }
|
||||
.identity-import-textarea { min-height: 24svh; }
|
||||
.identity-drop-zone { justify-content: flex-start; }
|
||||
.identity-import-footer .identity-import-submit { min-height: 46px; }
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.identity-controls { align-items: flex-start; flex-direction: column; gap: 8px; }
|
||||
.identity-actions { width: 100%; }
|
||||
.identity-action-button { flex: 1; }
|
||||
.identity-import-header { padding-right: 27px; }
|
||||
.identity-import-header h2 { font-size: 18px; }
|
||||
}
|
||||
Reference in new issue
Block a user