Repository navigation
Expand file tree
/
Copy pathsettings.css
More file actions
61 lines (61 loc) · 5.86 KB
/
Copy pathsettings.css
File metadata and controls
61 lines (61 loc) · 5.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
* { box-sizing: border-box; margin: 0; }
body { padding: 2px 0 0; color: var(--text-primary, #1a1a1a); font: 13px/1.5 system-ui, sans-serif; }
.title { font-weight: 600; }
.hint, #status { margin-top: 6px; font-size: 11px; color: var(--text-tertiary, #767676); }
.account-list { margin-top: 12px; border: 1px solid var(--border-default, #e4e4e0); border-radius: 16px; padding: 0 16px; }
.account { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--border-default, #e4e4e0); }
.account-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; color: var(--text-tertiary, #767676); background: var(--surface-chip, #f4f4f4); overflow: hidden; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-identity { flex: 1; min-width: 0; }
.email { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nickname { color: var(--text-tertiary, #767676); font-size: 12px; overflow-wrap: anywhere; }
.account-auth-status { margin-top: 3px; font-size: 11px; }
.expired, .danger { color: var(--error-fg, #d73737); }
button { color: inherit; font: inherit; cursor: pointer; border: 0; background: transparent; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-cta-bg, currentColor); outline-offset: 2px; }
.account-more, .dialog-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; color: var(--text-tertiary, #767676); }
.account-more:hover, .account-more[aria-expanded="true"], .dialog-close:hover, .account-menu button:hover, .account-menu button:focus-visible { background: var(--surface-chip, #f4f4f4); }
.account-icon { display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; background: currentColor; mask: var(--account-icon) center / contain no-repeat; }
.icon-Ellipsis { --account-icon: url('/assets/account-icons/Ellipsis.svg'); }
.icon-Pencil { --account-icon: url('/assets/account-icons/Pencil.svg'); }
.icon-RefreshCw { --account-icon: url('/assets/account-icons/RefreshCw.svg'); }
.icon-X { --account-icon: url('/assets/account-icons/X.svg'); }
.icon-Plus { --account-icon: url('/assets/account-icons/Plus.svg'); }
.icon-CircleUserRound { --account-icon: url('/assets/account-icons/CircleUserRound.svg'); }
.account-connect { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0; width: 100%; text-align: left; font-weight: 500; }
.account-connect:hover { color: var(--text-secondary, #555); }
.account-menu { position: fixed; inset: auto; margin: 0; width: 196px; max-width: calc(100% - 16px); padding: 6px; border: 1px solid var(--border-default, #e4e4e0); border-radius: 16px; background: var(--surface-elevated, #fff); color: var(--text-primary, #1a1a1a); box-shadow: 0 8px 24px #0000001a; }
.account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; white-space: nowrap; }
.account-menu .danger { color: var(--error-fg, #d73737); }
.nickname-dialog { position: fixed; inset: 0; margin: auto; width: 520px; max-width: calc(100% - 24px); max-height: calc(100vh - 20px); padding: 0; border: 1px solid var(--border-default, #e4e4e0); border-radius: 20px; background: var(--surface-elevated, #fff); color: var(--text-primary, #1a1a1a); box-shadow: 0 12px 36px #00000024; overflow: hidden; }
/* A settings guest cannot shade the host window. Keep the modal's focus and
pointer boundary, without painting a clipped rectangle inside the card. */
.nickname-dialog::backdrop { background: transparent; }
/* Account count determines the guest height. Constrain the flex form itself,
not just the outer dialog, so overflowing content cannot push actions out. */
.nickname-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 22px); padding: 22px; }
.nickname-dialog-header { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 12px; }
.nickname-dialog-content { min-height: 0; overflow-y: auto; }
.nickname-dialog h2 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.nickname-dialog-email { margin-top: 4px; margin-bottom: 16px; color: var(--text-tertiary, #767676); overflow-wrap: anywhere; }
.nickname-dialog label { display: block; font-weight: 500; }
.nickname-dialog input { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border-default, #d8d8d8); border-radius: 9px; background: transparent; color: inherit; font: inherit; font-weight: 400; }
.nickname-dialog input:focus { outline: 2px solid var(--accent-cta-bg, currentColor); outline-offset: -1px; }
.nickname-dialog input::placeholder { color: var(--text-tertiary, #888); }
.nickname-dialog-actions { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.nickname-dialog-actions button { min-width: 60px; padding: 8px 16px; border-radius: 12px; }
.nickname-dialog-actions .primary { background: var(--accent-cta-bg, #262626); color: var(--accent-pure-cta-fg, #fff); }
.nickname-dialog .expired { margin-top: 8px; font-size: 12px; }
#status:empty, .nickname-dialog .expired:empty { display: none; }
#accounts:empty { display: none; }
@media (max-width: 360px) { .account-list { padding: 0 10px; } .account { gap: 8px; } .nickname-dialog form { padding: 16px; } }
@media (max-height: 260px) {
.nickname-dialog form { padding: 10px 20px; }
.nickname-dialog .dialog-close { width: 26px; height: 26px; flex-basis: 26px; }
.nickname-dialog h2 { font-size: 18px; }
.nickname-dialog-email { margin-top: 0; margin-bottom: 4px; font-size: 12px; }
.nickname-dialog input { margin-top: 4px; padding: 6px 10px; }
.nickname-dialog-actions { margin-top: 6px; }
.nickname-dialog-actions button { padding: 6px 14px; }
}