-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
159 lines (141 loc) · 3.75 KB
/
Copy pathcontent.css
File metadata and controls
159 lines (141 loc) · 3.75 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
/* ===== LeetCode Problem Copier - Floating Button & Toast ===== */
/* Floating Action Button */
#lc-copier-fab {
position: fixed;
bottom: 28px;
right: 28px;
z-index: 99999;
display: flex;
align-items: center;
gap: 0;
background: linear-gradient(135deg, #ff6b00, #ff9124);
color: #fff;
border: none;
border-radius: 50px;
padding: 0;
cursor: pointer;
box-shadow: 0 4px 20px rgba(255, 107, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.3px;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
height: 52px;
width: 52px;
min-width: 52px;
}
#lc-copier-fab:hover {
width: 195px;
box-shadow: 0 6px 28px rgba(255, 107, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
transform: translateY(-2px);
}
#lc-copier-fab:active {
transform: translateY(0) scale(0.97);
box-shadow: 0 2px 12px rgba(255, 107, 0, 0.4);
}
#lc-copier-fab .lc-copier-icon {
display: flex;
align-items: center;
justify-content: center;
width: 52px;
min-width: 52px;
height: 52px;
}
#lc-copier-fab .lc-copier-icon svg {
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
transition: transform 0.25s ease;
}
#lc-copier-fab:hover .lc-copier-icon svg {
transform: scale(1.1);
}
#lc-copier-fab .lc-copier-label {
white-space: nowrap;
opacity: 0;
max-width: 0;
transition: opacity 0.25s ease 0.05s, max-width 0.3s ease;
padding-right: 0;
}
#lc-copier-fab:hover .lc-copier-label {
opacity: 1;
max-width: 150px;
padding-right: 18px;
}
/* Toast Notification */
#lc-copier-toast {
position: fixed;
bottom: 92px;
right: 28px;
z-index: 100000;
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
border-radius: 12px;
font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
font-size: 13px;
font-weight: 500;
color: #fff;
opacity: 0;
transform: translateY(16px) scale(0.95);
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
#lc-copier-toast.lc-toast-success {
background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.92));
box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}
#lc-copier-toast.lc-toast-error {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(220, 38, 38, 0.92));
box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}
#lc-copier-toast.lc-toast-visible {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
#lc-copier-toast .lc-toast-icon {
display: flex;
align-items: center;
}
#lc-copier-toast .lc-toast-icon svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
/* Language Badge (shown inside toast on success) */
#lc-copier-toast .lc-toast-lang {
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Pulse animation on the FAB when ready */
@keyframes lc-copier-pulse {
0% { box-shadow: 0 4px 20px rgba(255, 107, 0, 0.45), 0 0 0 0 rgba(255, 107, 0, 0.4); }
70% { box-shadow: 0 4px 20px rgba(255, 107, 0, 0.45), 0 0 0 12px rgba(255, 107, 0, 0); }
100% { box-shadow: 0 4px 20px rgba(255, 107, 0, 0.45), 0 0 0 0 rgba(255, 107, 0, 0); }
}
#lc-copier-fab.lc-copier-pulse {
animation: lc-copier-pulse 2s ease-out 3;
}
/* Success state for FAB */
#lc-copier-fab.lc-copier-success {
background: linear-gradient(135deg, #22c55e, #16a34a);
box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}