Add multi-sport tracking with configurable recovery bonuses
This commit is contained in:
+172
-1
@@ -395,6 +395,10 @@ button {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-head--compact {
|
||||
margin-bottom: 0.85rem;
|
||||
}
|
||||
|
||||
.calendar-heatmap {
|
||||
min-height: 0;
|
||||
overflow-x: auto;
|
||||
@@ -536,6 +540,7 @@ button {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.bar-grid {
|
||||
@@ -561,6 +566,22 @@ button {
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.bar-icon-ring {
|
||||
fill: rgba(255, 255, 255, 0.1);
|
||||
stroke: rgba(255, 255, 255, 0.18);
|
||||
stroke-width: 1;
|
||||
}
|
||||
|
||||
.bar-icon {
|
||||
opacity: 0.96;
|
||||
}
|
||||
|
||||
.bar-bonus-dot {
|
||||
fill: rgba(255, 224, 132, 0.96);
|
||||
stroke: rgba(9, 19, 31, 0.7);
|
||||
stroke-width: 1;
|
||||
}
|
||||
|
||||
.page-grid {
|
||||
grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
|
||||
align-items: start;
|
||||
@@ -605,6 +626,73 @@ button {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.sport-choice-field {
|
||||
display: grid;
|
||||
gap: 0.7rem;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.sport-choice-field legend {
|
||||
padding: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.93rem;
|
||||
margin-bottom: 0.1rem;
|
||||
}
|
||||
|
||||
.sport-choice-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.sport-choice {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sport-choice input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sport-choice__card {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
min-height: 100%;
|
||||
padding: 0.85rem 0.95rem;
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.sport-choice__card img {
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
opacity: 0.96;
|
||||
}
|
||||
|
||||
.sport-choice__card strong {
|
||||
color: var(--text);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.sport-choice input:checked + .sport-choice__card {
|
||||
border-color: rgba(139, 228, 255, 0.44);
|
||||
background: linear-gradient(180deg, rgba(96, 184, 255, 0.18), rgba(255, 255, 255, 0.08));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 28px rgba(8, 28, 43, 0.2);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.sport-choice input:focus-visible + .sport-choice__card {
|
||||
outline: 2px solid rgba(139, 228, 255, 0.46);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
@@ -631,6 +719,16 @@ textarea {
|
||||
transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
select {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
option,
|
||||
optgroup {
|
||||
background: #10253a;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
@@ -802,6 +900,11 @@ input[type="range"] {
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.ghost-button--small {
|
||||
min-height: 2.45rem;
|
||||
padding: 0.55rem 0.95rem;
|
||||
}
|
||||
|
||||
.archive-items,
|
||||
.user-list {
|
||||
display: grid;
|
||||
@@ -848,6 +951,52 @@ input[type="range"] {
|
||||
padding-inline: 0.85rem;
|
||||
}
|
||||
|
||||
.sport-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.55rem;
|
||||
padding: 0.45rem 0.75rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(118, 228, 255, 0.1);
|
||||
border: 1px solid rgba(118, 228, 255, 0.14);
|
||||
color: var(--text);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sport-pill img {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.sport-pill span {
|
||||
margin-top: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.sport-pill--soft {
|
||||
margin-top: 0;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.sport-pill--inline {
|
||||
margin-top: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.sport-pill-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
margin-top: 0.45rem;
|
||||
}
|
||||
|
||||
.sport-pill-group--inline {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.note-box {
|
||||
padding: 1rem;
|
||||
border-radius: 18px;
|
||||
@@ -875,6 +1024,23 @@ input[type="range"] {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.sport-type-list {
|
||||
display: grid;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.sport-type-card {
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.sport-type-card__actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.checkbox-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1000,13 +1166,18 @@ input[type="range"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.sport-choice-list {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.bar-chart {
|
||||
overflow-x: auto;
|
||||
padding-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.archive-item,
|
||||
.preview-status {
|
||||
.preview-status,
|
||||
.sport-type-card__actions {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user