Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

css: the Today row's hover follows the file's own formatting

Duarte Santos3a79a8dd5a5f
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 680e97400..9735d0e33 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -948,8 +948,7 @@ h4.sec{
.today-row{
display:flex;align-items:center;justify-content:space-between;gap:10px;
margin-top:12px;padding:12px 14px;border-radius:var(--r);background:var(--surface-2);
- transition:background var(--fast);width:100%;text-align:left;
- cursor: pointer
+ transition:background var(--fast);width:100%;text-align:left;cursor:pointer;
}
.today-row:active{background:var(--surface-3)}
.today-row .lbl2{font-size:11px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--label-3)}
@@ -958,9 +957,11 @@ h4.sec{
letter-spacing:-.012em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;
}
-@media (hover: hover) {
- .today-row:hover{background: color-mix(in srgb, var(--surface-2), var(--surface-3) 60%) }
- :root[data-theme="light"] .today-row:hover{background: color-mix(in srgb, var(--surface-2), var(--surface-3) 85%) }
+/* Only where a pointer really hovers — on a phone :hover sticks to the row after the tap.
+ Lighter than :active, which goes all the way to --surface-3, so the two stay distinct. */
+@media (hover:hover){
+ .today-row:hover{background:color-mix(in srgb,var(--surface-2),var(--surface-3) 60%)}
+ :root[data-theme="light"] .today-row:hover{background:color-mix(in srgb,var(--surface-2),var(--surface-3) 85%)}
}
/* --------------------------------------------------- desktop (≥1000px) --- */