Added behavior journal, adjusted layout, and added some colors
Deploy / deploy-prod (push) Skipped
Deploy / deploy-dev (push) Successful in 4m18s

This commit is contained in:
Corey Blais committed 2026-10-05 15:20:00 -04:00
1 parent b1b89ad334
commit 3237cd7601
31 files changed
+2135 -275

No files matched your search

+81 -10
View File
@@ -44,6 +44,30 @@ body,
width: 100%;
}
/* Keep the page width steady when switching between short and long tabs. */
html {
overflow-y: scroll;
background-color: #e9ddba;
scrollbar-color: #898b93 transparent;
}
/* Keep native scrollbar tracks from painting a white strip over the page. */
html::-webkit-scrollbar {
width: 14px;
background: transparent;
}
html::-webkit-scrollbar-track {
background: transparent;
}
html::-webkit-scrollbar-thumb {
background-color: #898b93;
border: 3px solid transparent;
background-clip: padding-box;
border-radius: 999px;
}
body {
min-height: 100vh;
color: var(--ink);
@@ -510,11 +534,26 @@ textarea {
text-align: left;
}
/* Background X colors and their lighter tones give every tab a distinct active fill. */
.page-tab[data-tab="overview"] { --tab-active-color: #5bb3b7; }
.page-tab[data-tab="flock"] { --tab-active-color: #7eb773; }
.page-tab[data-tab="settings"] { --tab-active-color: #f3a24a; }
.page-tab[data-tab="admin"] { --tab-active-color: #9698a0; }
.bird-detail-tab[data-tab="info"] { --tab-active-color: #9ed2d4; }
.bird-detail-tab[data-tab="weight"] { --tab-active-color: #b9c945; }
.bird-detail-tab[data-tab="behavior"] { --tab-active-color: #f7c27d; }
.bird-detail-tab[data-tab="notes"] { --tab-active-color: #b4d5ad; }
.bird-detail-tab[data-tab="vet"] { --tab-active-color: #71ad80; }
.bird-detail-tab[data-tab="reports"] { --tab-active-color: #b9bac0; }
.bird-detail-tab[data-tab="timeline"] { --tab-active-color: #d4ba64; }
.bird-detail-tab[data-tab="audit"] { --tab-active-color: #78a8ad; }
.page-tab.active {
background: linear-gradient(135deg, #d89a2f, #3c8f65 58%, #2f8f98);
color: #fffdf9;
border-color: transparent;
background: var(--tab-active-color);
color: var(--ink);
border-color: rgba(31, 42, 42, 0.32);
box-shadow: 0 14px 26px rgba(88, 110, 62, 0.2);
font-weight: 700;
}
.page-tab:hover {
@@ -1679,6 +1718,20 @@ textarea {
transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bird-detail-tab .behavior-tab-icon {
font-family: 'Material Symbols Outlined';
font-size: 24px;
font-weight: normal;
font-style: normal;
line-height: 1;
letter-spacing: normal;
text-transform: none;
white-space: nowrap;
font-feature-settings: 'liga';
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
-webkit-font-smoothing: antialiased;
}
.bird-detail-tab svg {
width: 20px;
height: 20px;
@@ -1715,9 +1768,9 @@ textarea {
}
.bird-detail-tab.active {
border-color: rgba(35, 138, 90, 0.42);
background: rgba(240, 248, 244, 0.95);
color: var(--accent-green);
border-color: rgba(31, 42, 42, 0.32);
background: var(--tab-active-color);
color: var(--ink);
box-shadow: 10px 10px 20px rgba(39, 105, 179, 0.1);
}
@@ -1793,11 +1846,12 @@ textarea {
.segmented-control {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
gap: 0.55rem;
}
.segmented-option {
min-width: 0;
display: inline-flex;
align-items: center;
justify-content: center;
@@ -1810,6 +1864,17 @@ textarea {
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.segmented-option .gender-symbol,
.segmented-option .gender-source-icon {
flex-shrink: 0;
}
.gender-option-label {
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
}
.segmented-option.active {
border-color: rgba(35, 138, 90, 0.4);
box-shadow: 0 10px 20px rgba(39, 105, 179, 0.1);
@@ -2883,8 +2948,14 @@ label {
min-width: 520px;
}
.overview-chart-card {
min-height: 230px;
.chart-card.overview-chart-card {
min-height: 0;
overflow: hidden;
}
.overview-chart-card .weight-chart {
min-width: 0;
min-height: 0;
}
.chart-footer {
@@ -3004,7 +3075,7 @@ label {
}
.segmented-control {
grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}
.segmented-option {