-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
261 lines (238 loc) · 12.8 KB
/
Copy pathstyle.css
File metadata and controls
261 lines (238 loc) · 12.8 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
:root {
--primary: #3b82f6;
--primary-hover: #2563eb;
--danger: #ef4444;
--danger-hover: #dc2626;
--success: #10b981;
--bg-color: #f8fafc;
--surface: #ffffff;
--text-main: #334155;
--text-muted: #64748b;
--border: #e2e8f0;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
body {
margin: 0; padding: 0;
width: 750px; height: 500px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg-color); color: var(--text-main); font-size: 13px;
overflow: hidden;
}
/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* Layout Utama */
#main {
display: flex; flex-direction: column; height: 100vh; overflow: hidden;
}
header {
background: var(--surface); padding: 12px 20px;
border-bottom: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: center;
flex-shrink: 0; position: relative; z-index: 20;
}
.app-title { font-weight: 700; font-size: 15px; color: var(--text-main); }
/* Tabs */
.tabs { display: flex; background: #f1f5f9; padding: 3px; border-radius: 6px; position: relative; }
.tab-btn {
padding: 6px 14px; border: none; background: transparent; cursor: pointer;
font-weight: 600; color: var(--text-muted); border-radius: 4px; font-size: 12px;
transition: color 0.3s ease; position: relative; z-index: 2;
}
.tab-btn.active { color: var(--primary); }
/* Sliding indicator behind active tab */
.tab-slider {
position: absolute; top: 3px; bottom: 3px; left: 3px;
background: var(--surface); border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1;
}
/* Content Layout (BUG-28: was form, changed to div in BUG-23) */
#content-area {
display: flex; flex-direction: column; flex: 1; overflow: hidden; min-height: 0;
}
/* Toolbar */
#buttons {
padding: 10px 20px; display: flex; gap: 8px; flex-wrap: nowrap;
background: var(--bg-color); align-items: center;
flex-shrink: 0; border-bottom: 1px solid var(--border); z-index: 15;
}
.action-btn {
padding: 6px 12px; border: 1px solid var(--border); background: var(--surface);
color: var(--text-main); border-radius: 5px; cursor: pointer;
font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s;
}
.action-btn:hover { background-color: #f1f5f9; border-color: #cbd5e1; }
.action-btn.primary { background-color: var(--primary); color: white; border-color: var(--primary); }
.action-btn.primary:hover { background-color: var(--primary-hover); }
.action-btn.danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.action-btn.danger:hover { background: #fef2f2; border-color: var(--danger); }
.icon-plus { font-size: 14px; font-weight: bold; line-height: 1; }
/* Import Accordion */
.import-panel {
background: #eff6ff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
overflow: hidden; transition: all 0.3s ease;
flex-shrink: 0; z-index: 15;
}
.import-panel.hidden { display: none; }
.import-content { padding: 15px 20px; }
textarea#import-text {
width: 100%; height: 80px; padding: 10px; border: 1px solid #cbd5e1;
border-radius: 6px; font-family: 'Consolas', monospace; font-size: 12px; resize: none;
margin-bottom: 10px; background: white; box-sizing: border-box;
}
textarea#import-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }
.import-actions { display: flex; justify-content: space-between; align-items: center; }
.action-group { display: flex; gap: 8px; }
/* File Input Styling */
.file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; vertical-align: middle; }
.file-upload-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-label { max-width: 180px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.file-name-span { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; vertical-align: middle; }
/* Table Area */
#table {
flex: 1; overflow-y: auto; padding: 0;
background: var(--surface); position: relative;
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th {
text-align: left; padding: 10px 15px; font-weight: 600; color: var(--text-muted);
font-size: 11px; text-transform: uppercase; background: #f8fafc;
border-bottom: 1px solid var(--border);
position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
td { padding: 8px 15px; border-bottom: 1px solid var(--border); vertical-align: top; background: var(--surface); }
tr:hover td { background-color: #f8fafc; }
tr.new-row td { background-color: #f0fdf4 !important; }
/* Inputs */
input[type="text"] {
width: 100%; padding: 5px; border: 1px solid transparent; background: transparent;
font-family: 'Consolas', monospace; font-size: 12px; color: var(--text-main); border-radius: 3px; box-sizing: border-box;
}
input[type="text"]:focus { background: white; border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }
input[type="text"][readonly] { color: var(--text-muted); cursor: default; }
/* BUG-35: No focus ring on readonly inputs — avoids suggesting editability */
input[type="text"][readonly]:focus { background: transparent; border-color: transparent; box-shadow: none; outline: none; }
/* Cookie metadata subtitle (domain/path/flags) */
.cookie-meta {
font-size: 10px; color: var(--text-muted); font-family: 'Consolas', monospace;
margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
line-height: 1.3; opacity: 0.75;
}
/* Icons */
.td-icon { cursor: pointer; color: var(--text-muted); display: inline-flex; padding: 4px; border-radius: 4px; transition: all 0.2s; }
.td-icon:hover { background: #e2e8f0; color: var(--text-main); }
.td-icon.minus:hover { color: var(--danger); background: #fee2e2; }
.td-icon.open:hover { color: var(--primary); background: #dbeafe; }
.td-icon.save-new { color: var(--success); } .td-icon.save-new:hover { background: #dcfce7; }
.td-icon.cancel-new { color: var(--danger); } .td-icon.cancel-new:hover { background: #fee2e2; }
.icon-svg { width: 18px; height: 18px; vertical-align: middle; }
/* About View */
#about-view { padding: 40px 20px; display: flex; justify-content: center; align-items: center; flex: 1; background: var(--bg-color); }
.about-container { text-align: center; max-width: 300px; }
/* About entrance animation — staggered cascade */
@keyframes aboutFadeUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes aboutLogoPop {
0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
60% { transform: scale(1.08) rotate(2deg); }
100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
/* Initial hidden state for animated children */
.about-animate .about-logo,
.about-animate h2,
.about-animate .version,
.about-animate .creator-info,
.about-animate .github-card { opacity: 0; }
/* Logo — bouncy pop in */
.about-animate .about-logo {
animation: aboutLogoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}
/* App name */
.about-animate h2 {
animation: aboutFadeUp 0.4s ease-out 0.2s forwards;
}
/* Version badge */
.about-animate .version {
animation: aboutFadeUp 0.4s ease-out 0.3s forwards;
}
/* Creator info */
.about-animate .creator-info {
animation: aboutFadeUp 0.4s ease-out 0.4s forwards;
}
/* GitHub card */
.about-animate .github-card {
animation: aboutFadeUp 0.4s ease-out 0.5s forwards;
}
.about-logo { width: 80px; height: 80px; margin-bottom: 15px; border-radius: 12px;}
.about-container h2 { margin: 0; font-size: 20px; color: var(--text-main); }
.version { margin: 5px 0 20px 0; color: var(--text-muted); font-size: 13px; background: #e2e8f0; display: inline-block; padding: 2px 8px; border-radius: 12px; }
.creator-info { margin-bottom: 30px; }
.creator-info p { margin: 0; color: var(--text-muted); font-size: 12px; }
.creator-info h3 { margin: 5px 0 0 0; font-size: 16px; color: var(--primary); }
.github-card {
display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px;
background: #24292f; color: white; text-decoration: none; border-radius: 6px;
font-weight: 600; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.github-card:hover { background: #000; transform: translateY(-2px); }
/* JSON Modal */
.modal-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 50; align-items: center; justify-content: center; }
#json .modal-window { width: 100%; height: 100%; display: flex; flex-direction: column; }
.modal-header { height: 50px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; flex-shrink: 0; }
.modal-title { font-weight: 700; font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.close-btn { background: transparent; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; flex-shrink: 0; }
.close-btn:hover { background: #f1f5f9; color: var(--danger); }
.modal-body { flex: 1; overflow: auto; padding: 20px; }
#code { font-family: 'Consolas', monospace; font-size: 12px; line-height: 1.5; background: var(--surface); padding: 15px; border-radius: 6px; border: 1px solid var(--border); margin: 0; white-space: pre-wrap; word-break: break-all; color: var(--text-main); }
.string { color: #059669; } .number { color: #d97706; } .boolean { color: #7c3aed; } .null { color: #9ca3af; } .key { color: #2563eb; }
/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
background: var(--surface); color: var(--text-main); padding: 10px 15px; border-radius: 6px; box-shadow: var(--shadow-lg);
border-left: 4px solid var(--primary); min-width: 200px; font-size: 13px; font-weight: 500;
opacity: 0; transform: translateX(20px); animation: slideIn 0.3s forwards; display: flex; align-items: center; gap: 10px; pointer-events: auto;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.fading { animation: fadeOut 0.3s forwards; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
/* Confirm Modal */
#confirm-modal {
display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(15, 23, 42, 0.4); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.confirm-box {
background: var(--surface); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-lg); width: 320px; text-align: center;
transform: scale(0.9); opacity: 0; animation: popIn 0.2s forwards;
}
.confirm-icon {
width: 50px; height: 50px; background: #fee2e2; color: var(--danger); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto;
}
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.confirm-text { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions button { flex: 1; }
@keyframes popIn { to { transform: scale(1); opacity: 1; } }
/* FIXED: Clean Empty State */
.empty-state {
display: flex; flex-direction: column; align-items: center; justify-content: center;
height: 100%; min-height: 300px; color: var(--text-muted); background: var(--surface);
font-size: 14px; font-weight: 500; text-align: center;
}
.empty-icon-wrapper {
width: 60px; height: 60px; background: #f1f5f9; border-radius: 50%;
display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
color: #94a3b8;
}
.empty-icon-wrapper.restricted { background: #fee2e2; color: #ef4444; }
.empty-svg { width: 32px; height: 32px; }
.hidden { display: none !important; }