added stool tracking + toothbrushing tracking

This commit is contained in:
Joren de Graaf
2026-10-02 11:32:59 +02:00
parent d1fbb52937
commit 943dc2280f
16 changed files with 641 additions and 87 deletions
+63
View File
@@ -320,3 +320,66 @@ body[data-theme="dark"] .checkin-tooltip { color: #d9f5e0; background: #315b41;
body[data-theme="dark"] .checkin-tooltip:hover { background: #3b704e; }
body[data-theme="dark"] .checkin-tooltip:focus-visible { outline-color: #a9ddba; }
body[data-theme="dark"] .checkin-tooltip__content { color: #edf5ef; background: #101713; box-shadow: 0 8px 20px rgba(0, 0, 0, .38); }
/* Three-part daily pain check-in ----------------------------------------- */
.checkin-form--pain { display: block; }
.checkin-form--pain .checkin-form__heading { margin-bottom: 18px; }
.checkin-form__topline { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.checkin-form__topline > .field:first-child { width: min(100%, 170px); }
.checkin-form__physio { padding-bottom: 1px; }
.checkin-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.checkin-period { min-width: 0; padding: 15px; border: 1px solid $line; border-radius: 12px; background: #f8faf7; }
.checkin-period h4 { margin: 0 0 12px; color: $forest; font-family: Fraunces, Georgia, serif; font-size: 1rem; }
.checkin-period__scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.checkin-period .field { min-width: 0; }
.checkin-period .field textarea { min-height: 82px; }
.checkin-form--pain .form-actions { margin-top: 18px; }
.checkin-day { display: block; min-height: 73px; padding: 5px; }
.checkin-day__number { display: block; margin: 0 0 4px; }
.checkin-day__periods { display: grid; gap: 2px; }
.checkin-day__period { display: flex; align-items: center; justify-content: space-between; min-height: 14px; padding: 1px 3px; border-radius: 3px; font-size: .62rem; font-weight: 700; line-height: 1; }
.checkin-day__period strong { font-size: .72rem; }
.checkin-day__period--unrecorded { color: #89908a; background: #f3f4f1; border: 1px dashed #d9ddd5; }
.checkin-day__period--zero { color: #35664d; background: #dff0e4; }
.checkin-day__period--low { color: #5d6a2a; background: #eef2d7; }
.checkin-day__period--moderate { color: #815d1d; background: #fff0c8; }
.checkin-day__period--high { color: #99412f; background: #ffe0d8; }
.checkin-day__period--severe { color: #fff; background: #be4c40; }
.checkin-day__physio { top: 5px; right: 20px; bottom: auto; left: auto; }
.checkin-day__sleep { top: 4px; right: 5px; }
@media (max-width: 760px) { .checkin-periods { grid-template-columns: 1fr; }.checkin-period .field textarea { min-height: 68px; } }
@media (max-width: 480px) { .checkin-form__topline { align-items: start; flex-direction: column; }.checkin-form__topline > .field:first-child { width: 100%; }.checkin-day { min-height: 64px; }.checkin-day__period { font-size: .55rem; }.checkin-day__period strong { font-size: .64rem; } }
body[data-theme="dark"] .checkin-period { border-color: #3b473f; background: #29342d; }
body[data-theme="dark"] .checkin-period h4 { color: #9bd5ae; }
body[data-theme="dark"] .checkin-day__period--unrecorded { color: #aab5ad; background: #242d27; border-color: #58645c; }
body[data-theme="dark"] .checkin-day__period--zero { color: #c8f3d2; background: #28533a; }
body[data-theme="dark"] .checkin-day__period--low { color: #eef2b8; background: #536036; }
body[data-theme="dark"] .checkin-day__period--moderate { color: #ffe5a8; background: #71521c; }
body[data-theme="dark"] .checkin-day__period--high { color: #ffd0c5; background: #733b31; }
body[data-theme="dark"] .checkin-day__period--severe { color: #fff; background: #a8463b; }
.brushing-widget { margin-bottom: 16px; padding: 20px; border: 1px solid $line; border-radius: 18px; background: $surface; box-shadow: $shadow; }
.brushing-widget h2 { margin: 0 0 12px; font-size: 1.35rem; }
.brushing-days { display: grid; gap: 6px; }
.brushing-day { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brushing-day time { font-size: .78rem; font-weight: 700; }
.brushing-day__controls { display: flex; flex-wrap: wrap; gap: 3px; }
.brushing-control { margin: 0; }
.brushing-control button { padding: 5px 4px; border: 1px solid transparent; border-radius: 6px; color: $ink; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; }
.brushing-control button:hover { border-color: $line; }
.brushing-control button:focus-visible { outline: 2px solid $forest; outline-offset: 2px; }
.brushing-control__mark { font-size: 1.1rem; color: $forest; vertical-align: -1px; }
.checkin-form--bowel { display: block; }
.checkin-form--bowel > .field { max-width: 180px; }
.bowel-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bowel-period { padding: 12px; border: 1px solid $line; border-radius: 10px; }
.bowel-period h3 { margin: 0 0 10px; font-size: 1rem; }
.bowel-period .field + .field { margin-top: 10px; }
.checkin-form--bowel .field textarea { width: 100%; padding: 8px; border: 1px solid #cfd4cb; border-radius: 8px; color: $ink; background: $surface; }
.checkin-form--bowel .form-actions { margin-top: 16px; }
@media (max-width: 700px) { .bowel-periods { grid-template-columns: 1fr; } }
body[data-theme="dark"] .brushing-widget, body[data-theme="dark"] .bowel-period { border-color: #3b473f; background: #242d27; }
body[data-theme="dark"] .brushing-control button { color: #edf5ef; }
body[data-theme="dark"] .brushing-control__mark { color: #9adab0; }
body[data-theme="dark"] .checkin-form--bowel .field textarea { border-color: #536159; color: #edf5ef; background: #161d19; }