Skip to content

Commit e3cee1a

Browse files
authored
Merge pull request #133 from vedansh-5/optApi
Opt api
2 parents 3f131ce + af8bf22 commit e3cee1a

File tree

9 files changed

+1398
-633
lines changed

9 files changed

+1398
-633
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
"dependencies": {
3232
"@tailwindcss/cli": "^4.1.3"
3333
}
34-
}
34+
}

src/icons/settings-light.png

23.1 KB
Loading

src/icons/settings-night.png

65.8 KB
Loading

src/index.css

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,225 @@ body,input,div,h3,h4,p,label,hr, #scrumReport{
117117

118118
.dark-mode a {
119119
color: #00b7ff !important;
120+
}
121+
#refreshCache {
122+
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
123+
border: none;
124+
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
125+
transition: all 0.2s ease;
126+
}
127+
128+
#refreshCache:hover {
129+
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
130+
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
131+
transform: translateY(-1px);
132+
}
133+
134+
#refreshCache:active {
135+
transform: translateY(0);
136+
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
137+
}
138+
139+
#refreshCache i {
140+
animation: spin 0s linear infinite;
141+
}
142+
143+
#refreshCache.loading i {
144+
animation: spin 1s linear infinite;
145+
}
146+
147+
@keyframes spin {
148+
from { transform: rotate(0deg); }
149+
to { transform: rotate(360deg); }
150+
}
151+
/* Disabled state styling */
152+
.disabled-content {
153+
opacity: 0.5 !important;
154+
pointer-events: none !important;
155+
user-select: none !important;
156+
}
157+
158+
.disabled-content input,
159+
.disabled-content button,
160+
.disabled-content [contenteditable] {
161+
cursor: not-allowed !important;
162+
}
163+
164+
/* Dark mode disabled state */
165+
.dark-mode .disabled-content {
166+
opacity: 0.4 !important;
167+
}
168+
.cache-info {
169+
font-size: 11px;
170+
color: #6b7280;
171+
text-align: center;
172+
margin-top: 8px;
173+
line-height: 1.3;
174+
}
175+
176+
.cache-info i {
177+
margin-right: 4px;
178+
font-size: 10px;
179+
}
180+
181+
/* Dark mode for cache info */
182+
.dark-mode .cache-info {
183+
color: #9ca3af;
184+
}
185+
#cacheInput {
186+
transition: border-color 0.2s ease;
187+
}
188+
189+
#cacheInput:focus {
190+
outline: none;
191+
border-color: #3b82f6;
192+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
193+
}
194+
195+
/* Update the settings button styles: */
196+
#settingsToggle {
197+
transition: all 0.2s ease;
198+
border: none;
199+
cursor: pointer;
200+
background: none !important;
201+
}
202+
203+
#settingsToggle:hover {
204+
transform: scale(1.05);
205+
background: none !important;
206+
}
207+
208+
#settingsToggle:active {
209+
transform: scale(0.95);
210+
}
211+
212+
#settingsToggle img {
213+
transition: transform 0.2s ease;
214+
filter: brightness(0.9);
215+
}
216+
217+
#settingsToggle.active img {
218+
transform: rotate(45deg);
219+
filter: brightness(1);
220+
}
221+
222+
.dark-mode #settingsToggle {
223+
background: none !important;
224+
}
225+
226+
.dark-mode #settingsToggle:hover {
227+
background: none !important;
228+
}
229+
230+
.dark-mode #settingsToggle img {
231+
filter: brightness(0.9);
232+
}
233+
234+
.dark-mode #settingsToggle.active img {
235+
filter: brightness(1);
236+
}
237+
238+
.tooltip-container {
239+
position: relative;
240+
display: inline-block;
241+
margin-left: 4px;
242+
}
243+
244+
.question-icon {
245+
color: #6b7280;
246+
font-size: 14px;
247+
cursor: help;
248+
transition: color 0.2s ease;
249+
}
250+
251+
.question-icon:hover {
252+
color: #3b82f6;
253+
}
254+
255+
.tooltip-bubble {
256+
visibility: hidden;
257+
opacity: 0;
258+
position: absolute;
259+
background-color: #1f2937;
260+
color: white;
261+
text-align: left;
262+
padding: 12px;
263+
border-radius: 8px;
264+
font-size: 12px;
265+
line-height: 1.4;
266+
white-space: normal;
267+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
268+
z-index: 1000;
269+
transition: opacity 0.3s ease, visibility 0.3s ease;
270+
width: 280px;
271+
}
272+
273+
.tooltip-bubble {
274+
bottom: 125%;
275+
left: 150%;
276+
transform: translateX(-50%);
277+
}
278+
279+
.tooltip-bubble::after {
280+
content: "";
281+
position: absolute;
282+
top: 100%;
283+
left: 50%;
284+
margin-left: -5px;
285+
border-width: 5px;
286+
border-style: solid;
287+
border-color: #1f2937 transparent transparent transparent;
288+
}
289+
290+
.tooltip-container.tooltip-bottom .tooltip-bubble {
291+
top: 125%;
292+
bottom: auto;
293+
}
294+
295+
.tooltip-container.tooltip-bottom .tooltip-bubble::after {
296+
top: -10px;
297+
border-color: transparent transparent #1f2937 transparent;
298+
}
299+
300+
.tooltip-container.tooltip-right .tooltip-bubble {
301+
top: -5px;
302+
left: 125%;
303+
bottom: auto;
304+
transform: none;
305+
}
306+
307+
.tooltip-container.tooltip-right .tooltip-bubble::after {
308+
top: 15px;
309+
left: -10px;
310+
border-color: transparent #1f2937 transparent transparent;
311+
}
312+
313+
.tooltip-container:hover .tooltip-bubble {
314+
visibility: visible;
315+
opacity: 1;
316+
}
317+
318+
.dark-mode .question-icon {
319+
color: #9ca3af;
320+
}
321+
322+
.dark-mode .question-icon:hover {
323+
color: #60a5fa;
324+
}
325+
326+
.dark-mode .tooltip-bubble {
327+
background-color: #374151;
328+
border: 1px solid #4b5563;
329+
}
330+
331+
.dark-mode .tooltip-bubble::after {
332+
border-color: #374151 transparent transparent transparent;
333+
}
334+
335+
.dark-mode .tooltip-container.tooltip-bottom .tooltip-bubble::after {
336+
border-color: transparent transparent #374151 transparent;
337+
}
338+
339+
.dark-mode .tooltip-container.tooltip-right .tooltip-bubble::after {
340+
border-color: transparent #374151 transparent transparent;
120341
}

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
"*://*.yahoo.com/*",
5353
"https://api.github.com/*"
5454
]
55-
}
55+
}

0 commit comments

Comments
 (0)