Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -295,14 +295,14 @@ label, .gr-checkbox-label span { /* Target labels and checkbox labels */
|
|
295 |
.gr-block .gr-box > div > p, .gr-block .gr-box > div > span {
|
296 |
color: #E0E0E0 !important;
|
297 |
}
|
298 |
-
/* Style for the Reset Button */
|
299 |
-
|
300 |
background-color: #513B8B !important; /* Your desired background color */
|
301 |
color: #FFFFFF !important; /* White text color */
|
302 |
border-color: #513B8B !important; /* Match border color to background */
|
303 |
}
|
304 |
|
305 |
-
|
306 |
background-color: #9b87f5 !important; /* Hover background color */
|
307 |
border-color: #9b87f5 !important; /* Match hover border color */
|
308 |
}
|
@@ -342,7 +342,7 @@ with gr.Blocks(theme=theme, css=custom_css) as iface:
|
|
342 |
target_reps_number = gr.Number(value=target_reps, label="Target Reps per Set", precision=0, minimum=1)
|
343 |
target_sets_number = gr.Number(value=target_sets, label="Target Sets", precision=0, minimum=1)
|
344 |
|
345 |
-
|
346 |
|
347 |
gr.Markdown("### Progress")
|
348 |
reps_output = gr.Textbox(label="Reps Progress")
|
|
|
295 |
.gr-block .gr-box > div > p, .gr-block .gr-box > div > span {
|
296 |
color: #E0E0E0 !important;
|
297 |
}
|
298 |
+
/* Style for the Reset Button using its specific ID */
|
299 |
+
#reset-workout-button {
|
300 |
background-color: #513B8B !important; /* Your desired background color */
|
301 |
color: #FFFFFF !important; /* White text color */
|
302 |
border-color: #513B8B !important; /* Match border color to background */
|
303 |
}
|
304 |
|
305 |
+
#reset-workout-button:hover {
|
306 |
background-color: #9b87f5 !important; /* Hover background color */
|
307 |
border-color: #9b87f5 !important; /* Match hover border color */
|
308 |
}
|
|
|
342 |
target_reps_number = gr.Number(value=target_reps, label="Target Reps per Set", precision=0, minimum=1)
|
343 |
target_sets_number = gr.Number(value=target_sets, label="Target Sets", precision=0, minimum=1)
|
344 |
|
345 |
+
reset_button = gr.Button("Reset Workout", elem_id="reset-workout-button")
|
346 |
|
347 |
gr.Markdown("### Progress")
|
348 |
reps_output = gr.Textbox(label="Reps Progress")
|