Repository navigation
Expand file tree
/
Copy pathoptions.css
More file actions
143 lines (127 loc) · 4.91 KB
/
Copy pathoptions.css
File metadata and controls
143 lines (127 loc) · 4.91 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* EFF AI 助手 - 设置页 */
:root {
--bg: #f5f5f8;
--card: #fff;
--text: #1d1d21;
--soft: #6b6b74;
--border: rgba(0, 0, 0, 0.1);
--accent: #6366f1;
--accent-2: #a855f7;
--ok: #16a34a;
--err: #ef4444;
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #17171b;
--card: #202027;
--text: #ececf1;
--soft: #9b9ba6;
--border: rgba(255, 255, 255, 0.1);
}
}
* { box-sizing: border-box; }
body {
margin: 0;
padding: 30px 16px 60px;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.wrap { max-width: 640px; margin: 0 auto; }
header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo {
font-size: 12px; font-weight: 700; color: #fff;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
border-radius: 8px; padding: 5px 9px; letter-spacing: 0.5px;
}
h1 { font-size: 20px; margin: 0; }
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 18px 20px;
margin-bottom: 16px;
}
h2 { font-size: 15px; margin: 0 0 14px; }
.field { display: block; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field-label b { color: var(--accent); margin-left: 6px; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
width: 100%;
padding: 9px 12px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg);
color: var(--text);
font-size: 13.5px;
font-family: inherit;
outline: none;
transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }
.row { display: flex; gap: 8px; align-items: center; }
.row select { flex: 1; }
.hint { font-size: 12px; color: var(--soft); margin: 6px 0 0; line-height: 1.6; }
.hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.hint.cloud-warn { color: #b45309; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 8px; padding: 8px 10px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.switch { width: 42px; height: 24px; appearance: none; cursor: pointer; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; position: relative; transition: background 0.15s; }
.switch::after {
content: ''; position: absolute; top: 2px; left: 2px;
width: 18px; height: 18px; border-radius: 50%;
background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
transition: left 0.15s;
}
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { left: 20px; }
.switch-field { display: flex; align-items: center; justify-content: space-between; }
.switch-field .field-label { margin: 0; }
.btn {
border: none;
border-radius: 10px;
padding: 9px 16px;
font-size: 13.5px;
font-family: inherit;
cursor: pointer;
transition: transform 0.1s, opacity 0.15s;
white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn.big { padding: 12px 28px; font-size: 14.5px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.test-result { font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.test-result.ok { color: var(--ok); }
.test-result.err { color: var(--err); }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.foot-note { font-size: 12px; color: var(--soft); line-height: 1.8; }
/* 角色管理 */
.role-list { display: flex; flex-direction: column; gap: 8px; }
.role-row { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.role-row-head {
display: flex; align-items: center; gap: 8px;
padding: 9px 12px; cursor: pointer; user-select: none;
}
.role-row-head:hover { background: var(--bg); }
.role-row-icon { font-size: 16px; }
.role-row-name { font-size: 13.5px; font-weight: 600; }
.role-row-desc { font-size: 11.5px; color: var(--soft); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-active-tag {
font-size: 10.5px; color: var(--accent); border: 1px solid var(--accent);
border-radius: 999px; padding: 1px 7px; white-space: nowrap;
}
.role-editor { padding: 0 12px 12px; }
.role-editor textarea {
width: 100%; min-height: 180px;
padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
background: var(--bg); color: var(--text);
font-size: 12.5px; font-family: inherit; line-height: 1.6;
outline: none; resize: vertical;
}
.role-editor textarea:focus { border-color: var(--accent); }
.role-editor .row { margin-top: 8px; }
.role-editor .hint { margin-top: 6px; }