-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
314 lines (274 loc) · 7.14 KB
/
Copy pathstyle.css
File metadata and controls
314 lines (274 loc) · 7.14 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
/* ========== Design Tokens ========== */
:root {
color-scheme: light dark;
--bg: #f6f7fb;
--bg2: #eef2ff;
--surface: rgba(255, 255, 255, 0.78);
--surface-solid: #ffffff;
--text: #0b1220;
--muted: rgba(11, 18, 32, 0.68);
--border: rgba(15, 23, 42, 0.12);
--accent: #1a73e8;
--accent-strong: #185abc;
--shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.10);
--shadow-md: 0 18px 48px rgba(15, 23, 42, 0.18);
--radius: 14px;
--tabbar-h: 56px;
--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0b0f19;
--bg2: #0f172a;
--surface: rgba(17, 24, 39, 0.70);
--surface-solid: rgba(17, 24, 39, 0.92);
--text: rgba(255, 255, 255, 0.92);
--muted: rgba(255, 255, 255, 0.64);
--border: rgba(255, 255, 255, 0.10);
--shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.30);
--shadow-md: 0 22px 60px rgba(0, 0, 0, 0.38);
}
}
/* ========== 全体の基本設定 ========== */
html, body {
height: 100%;
}
body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
margin: 0;
overflow: hidden;
background: radial-gradient(1200px 600px at 15% 0%, var(--bg2) 0%, transparent 60%),
radial-gradient(900px 500px at 85% 10%, rgba(26, 115, 232, 0.14) 0%, transparent 55%),
var(--bg);
color: var(--text);
}
/* ========== タブバー全体 ========== */
#tab-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
height: var(--tabbar-h);
box-sizing: border-box;
border-bottom: 1px solid var(--border);
background: var(--surface);
backdrop-filter: blur(14px) saturate(140%);
-webkit-backdrop-filter: blur(14px) saturate(140%);
-webkit-app-region: drag;
}
/* ========== タブのコンテナ ========== */
#tabs {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
#tabs::-webkit-scrollbar {
width: 0;
height: 0;
}
/* ========== 各アカウントタブ ========== */
.tab {
cursor: pointer;
user-select: none;
max-width: 240px;
padding: 8px 12px;
border-radius: 999px;
border: 1px solid transparent;
display: inline-flex;
align-items: center;
gap: 8px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
color: var(--muted);
background: transparent;
transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), color 160ms var(--ease);
-webkit-app-region: no-drag;
}
.tab:hover {
background: rgba(26, 115, 232, 0.10);
color: var(--text);
}
.tab:active {
transform: translateY(1px);
}
.tab.active {
background: var(--surface-solid);
border-color: var(--border);
box-shadow: var(--shadow-sm);
color: var(--text);
}
/* ========== 「+」アイコンボタン ========== */
#add-btn {
margin-left: auto;
width: 36px;
height: 36px;
background: rgba(26, 115, 232, 0.12);
border: 1px solid rgba(26, 115, 232, 0.20);
cursor: pointer;
padding: 0;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--accent);
transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
-webkit-app-region: no-drag;
}
/* ========== サービス切替 ========== */
#service-switcher {
-webkit-app-region: no-drag;
display: flex;
align-items: center;
}
#service-select {
-webkit-app-region: no-drag;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
padding: 9px 34px 9px 12px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface-solid);
color: var(--text);
font-weight: 650;
letter-spacing: 0.01em;
box-shadow: var(--shadow-sm);
outline: none;
cursor: pointer;
position: relative;
transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}
#service-select:hover {
transform: translateY(-1px);
}
#service-select:focus {
border-color: rgba(26, 115, 232, 0.55);
box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.16), var(--shadow-sm);
}
/* ▼ をCSSだけで描画 */
#service-switcher {
position: relative;
}
#service-switcher::after {
content: "";
position: absolute;
right: 14px;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid var(--muted);
pointer-events: none;
}
#add-btn:hover {
background: rgba(26, 115, 232, 0.18);
border-color: rgba(26, 115, 232, 0.28);
transform: translateY(-1px);
}
#add-btn:active {
transform: translateY(0px) scale(0.98);
}
/* ========== モーダル(入力画面) ========== */
.hidden {
opacity: 0;
pointer-events: none;
visibility: hidden;
}
#modal {
position: fixed;
inset: 0;
display: grid;
place-items: center;
opacity: 1;
transition: opacity 180ms var(--ease);
visibility: visible;
-webkit-app-region: no-drag;
}
#modal-overlay {
position: absolute;
inset: 0;
background: rgba(2, 6, 23, 0.22);
}
#modal-content {
position: relative;
width: min(420px, calc(100vw - 40px));
padding: 20px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--surface-solid);
box-shadow: var(--shadow-md);
color: var(--text);
transform: translateY(0) scale(1);
transition: transform 200ms var(--ease);
}
#modal.hidden #modal-content {
transform: translateY(10px) scale(0.98);
}
#modal-content h2 {
margin: 0;
font-size: 16px;
font-weight: 650;
letter-spacing: 0.01em;
}
#account-name-input {
width: 100%;
padding: 12px 12px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(26, 115, 232, 0.06);
color: var(--text);
box-sizing: border-box;
margin-top: 12px;
outline: none;
}
#account-name-input:focus {
border-color: rgba(26, 115, 232, 0.55);
box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.16);
}
#modal-actions {
margin-top: 16px;
display: flex;
justify-content: flex-end;
gap: 10px;
}
#modal-actions button {
padding: 10px 14px;
border-radius: 10px;
cursor: pointer;
font-weight: 650;
border: 1px solid transparent;
transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
-webkit-app-region: no-drag;
}
#cancel-btn {
background: transparent;
color: var(--text);
border-color: var(--border);
}
#cancel-btn:hover {
background: rgba(255, 255, 255, 0.06);
}
#ok-btn {
background: var(--accent);
color: white;
}
#ok-btn:hover {
background: var(--accent-strong);
transform: translateY(-1px);
}
#ok-btn:active {
transform: translateY(0px) scale(0.99);
}
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
scroll-behavior: auto !important;
}
}