forked from ericaxu/gemmy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
397 lines (343 loc) · 8.3 KB
/
Copy pathstyles.css
File metadata and controls
397 lines (343 loc) · 8.3 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
:root {
--gemmy-size: 180px;
}
.gemmy-container {
position: fixed;
bottom: 30px;
left: 30px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
cursor: move;
animation: gemmy-pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gemmy-bounce {
animation: gemmy-bounce 0.4s ease;
}
@keyframes gemmy-bounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}
@keyframes gemmy-pop-in {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.gemmy-bubble {
position: absolute;
bottom: 110%;
left: 50%;
transform: translateX(-50%);
background-color: var(--background-primary);
border: 1px solid var(--background-modifier-border);
padding: 8px 12px 40px 12px; /* Top, Right, BOTTOM, Left */
border-radius: 8px;
width: max-content;
max-width: 300px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
user-select: text;
opacity: 1;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
pointer-events: all;
animation: bubble-appear 0.3s ease-out;
}
@keyframes bubble-appear {
0% {
opacity: 0;
transform: translateX(-50%) translateY(10px);
}
100% {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
.gemmy-bubble.fade-out {
opacity: 0;
transform: translateX(-50%) translateY(10px);
pointer-events: none;
}
.hidden {
display: none !important;
}
.gemmy-bubble-content {
user-select: text;
}
.gemmy-button-container {
position: absolute;
bottom: 4px;
right: 4px;
display: flex;
gap: 4px;
opacity: 0;
transition: opacity 0.2s ease-in-out;
pointer-events: auto;
}
.gemmy-bubble:hover .gemmy-button-container {
opacity: 1;
}
/* Instant Tooltip System */
.clickable-icon[aria-label] {
position: relative;
}
.clickable-icon[aria-label]:hover::after {
content: attr(aria-label);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(5px);
padding: 4px 8px;
background-color: var(--background-secondary-alt);
color: var(--text-normal);
font-size: 11px;
font-weight: 600;
white-space: nowrap;
border-radius: 4px;
border: 1px solid var(--background-modifier-border);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
z-index: 10000;
pointer-events: none;
opacity: 1;
display: block;
}
/* Tooltip Arrow */
.clickable-icon[aria-label]:hover::before {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 5px;
border-style: solid;
border-color: transparent transparent var(--background-modifier-border) transparent;
z-index: 10001;
pointer-events: none;
display: block;
}
/* Hide all buttons when focus mode is active, EXCEPT the focus button */
.gemmy-button-container.gemmy-focus-active .gemmy-view-all-button,
.gemmy-button-container.gemmy-focus-active .gemmy-history-button,
.gemmy-button-container.gemmy-focus-active .gemmy-add-button,
.gemmy-button-container.gemmy-focus-active .gemmy-copy-button,
.gemmy-button-container.gemmy-focus-active .gemmy-next-button,
.gemmy-button-container.gemmy-focus-active .gemmy-menu-button,
.gemmy-button-container.gemmy-focus-active .gemmy-favorite-button,
.gemmy-button-container.gemmy-focus-active .gemmy-toggle-mode-button {
display: none !important;
}
/* Ensure focus button is always visible in focus mode on hover (or handling container opacity) */
/* Actually, the container opacity logic still applies (hidden by default, shown on hover).
But when shown, only the focus button should be there. */
.gemmy-view-all-button,
.gemmy-history-button,
.gemmy-add-button,
.gemmy-copy-button,
.gemmy-next-button,
.gemmy-menu-button,
.gemmy-favorite-button,
.gemmy-focus-button,
.gemmy-toggle-mode-button,
.gemmy-focus-settings-button,
.gemmy-bubble .clickable-icon {
padding: 2px 6px;
font-size: 16px;
background-color: var(--interactive-normal);
color: var(--text-muted);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
cursor: pointer;
}
.gemmy-button-container .hidden {
display: none !important;
}
.gemmy-view-all-button:hover,
.gemmy-history-button:hover,
.gemmy-add-button:hover,
.gemmy-copy-button:hover,
.gemmy-next-button:hover,
.gemmy-menu-button:hover,
.gemmy-favorite-button:hover,
.gemmy-focus-button:hover,
.gemmy-toggle-mode-button:hover,
.gemmy-focus-settings-button:hover,
.gemmy-bubble .clickable-icon:hover {
background-color: var(--background-modifier-hover);
color: var(--text-normal);
}
.gemmy-volume-slider {
width: 100%;
height: 6px;
margin-top: 10px;
border-radius: 5px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
transition: opacity 0.2s;
display: block;
}
.gemmy-volume-slider.hidden,
.gemmy-play-pause-button.hidden,
.gemmy-focus-settings-button.hidden,
.gemmy-music-selector.hidden,
.gemmy-focus-controls-container.hidden {
display: none !important;
}
/* REMOVED DEDICATED .gemmy-play-pause-button BLOCK TO FIX STYLE INCONSISTENCY */
.gemmy-play-pause-button:hover {
opacity: 1;
background-color: #d81b60;
color: white;
}
.gemmy-focus-active {
/* background-color: #ffebee; REMOVED to fix pink background issue */
/* border-radius: 8px; */
/* padding: 2px; */
}
.gemmy-bubble::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: var(--background-primary) transparent transparent transparent;
}
.gemmy-container img {
width: var(--gemmy-size);
height: var(--gemmy-size);
border-radius: var(--gemmy-size);
object-fit: cover;
}
/* === BỎ MẸ CÁI ĐỐNG ARIA-LABEL CŨ ĐI, ĐÉO CẦN NỮA === */
/* .gemmy-container[aria-label]::before { ... } */
/* Styling for Modals (View All, Favorites) */
.gemmy-modal ol {
padding-inline-start: 20px;
}
.gemmy-quote-textarea {
width: 100%;
min-height: 200px;
margin-bottom: 10px;
}
.history-quote-text {
/* text nó tự chiếm hết chỗ còn lại rồi */
}
.history-copy-button {
flex-shrink: 0;
padding: 4px 10px;
font-size: 12px;
background-color: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
color: var(--text-muted);
border-radius: 5px;
cursor: pointer;
}
.history-copy-button:hover {
background-color: var(--background-modifier-hover);
}
/* New styles for the View All Quotes modal */
.gemmy-modal ol li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid var(--background-modifier-border);
gap: 16px;
}
.history-button-group {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.history-delete-button {
padding: 4px 10px;
font-size: 12px;
background-color: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
color: var(--text-error); /* Red text for delete */
border-radius: 5px;
cursor: pointer;
}
.history-delete-button:hover {
background-color: var(--background-modifier-error);
color: var(--text-on-accent);
}
/* Refactored Styles */
.gemmy-focus-controls {
display: flex;
align-items: center;
gap: 5px;
margin-top: 8px;
margin-bottom: 8px;
}
.gemmy-music-selector {
flex: 1;
}
.gemmy-focus-ui-container {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 1.2em;
font-weight: bold;
}
.gemmy-timer-input {
width: 60px;
text-align: center;
background: transparent;
border: none;
border-bottom: 1px solid var(--text-muted);
}
.gemmy-hidden-iframe {
width: 1px;
height: 1px;
opacity: 0.01;
position: absolute;
top: -9999px;
pointer-events: none;
}
/* Modals Refactor */
.gemmy-playlist-container {
max-height: 300px;
overflow-y: auto;
margin-bottom: 20px;
}
.gemmy-playlist-add-row {
display: flex;
gap: 5px;
align-items: center;
}
.gemmy-flex-1 { flex: 1; }
.gemmy-flex-2 { flex: 2; }
.gemmy-playlist-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
margin-bottom: 4px;
background: var(--background-secondary);
border-radius: 4px;
}
.gemmy-cursor-pointer { cursor: pointer; }
.gemmy-playlist-item-controls {
display: flex;
gap: 4px;
}
.gemmy-margin-bottom-20 { margin-bottom: 20px; }
.gemmy-modal-button-container {
margin-top: 20px;
display: flex;
gap: 10px;
justify-content: flex-end;
}