Skip to content

Commit 716464e

Browse files
vintaclaude
andcommitted
fix: improve CSS polish with active states, font smoothing, and text wrapping
Add active-state press feedback (scale transform) to buttons, filter clear, and tags. Add moz-osx-font-smoothing for consistent antialiasing on Firefox/Mac. Apply text-wrap: balance to headings and text-wrap: pretty to body text and expanded row descriptions. Add text-underline-offset to links and highlight active table rows with bg-hover. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4ea3134 commit 716464e

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

website/static/style.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ body {
3838
display: flex;
3939
flex-direction: column;
4040
-webkit-font-smoothing: antialiased;
41+
-moz-osx-font-smoothing: grayscale;
4142
}
4243

43-
a { color: var(--accent); text-decoration: none; }
44+
a { color: var(--accent); text-decoration: none; text-underline-offset: 0.15em; }
4445
a:hover { color: var(--accent-hover); text-decoration: underline; }
4546

4647
/* === Skip Link === */
@@ -92,6 +93,10 @@ a:hover { color: var(--accent-hover); text-decoration: underline; }
9293
text-decoration: none;
9394
}
9495

96+
.hero-submit:active {
97+
transform: scale(0.97);
98+
}
99+
95100
.hero-submit:focus-visible {
96101
outline: 2px solid var(--accent);
97102
outline-offset: 2px;
@@ -103,6 +108,7 @@ a:hover { color: var(--accent-hover); text-decoration: underline; }
103108
font-weight: 400;
104109
letter-spacing: -0.01em;
105110
line-height: 1.1;
111+
text-wrap: balance;
106112
color: var(--accent);
107113
margin-bottom: 0.75rem;
108114
}
@@ -112,6 +118,7 @@ a:hover { color: var(--accent-hover); text-decoration: underline; }
112118
color: var(--text-secondary);
113119
line-height: 1.6;
114120
margin-bottom: 0.5rem;
121+
text-wrap: pretty;
115122
}
116123

117124
.hero-sub a { color: var(--text-secondary); font-weight: 600; }
@@ -194,6 +201,10 @@ a:hover { color: var(--accent-hover); text-decoration: underline; }
194201
transition: border-color 0.15s, color 0.15s;
195202
}
196203

204+
.filter-clear:active {
205+
transform: scale(0.97);
206+
}
207+
197208
.filter-clear:hover {
198209
border-color: var(--text-muted);
199210
color: var(--text);
@@ -342,6 +353,7 @@ th[data-sort].sort-asc::after {
342353

343354
/* === Row Click === */
344355
.row { cursor: pointer; }
356+
.row:active td { background: var(--bg-hover); }
345357

346358
.row:focus-visible td {
347359
outline: none;
@@ -385,6 +397,7 @@ th[data-sort].sort-asc::after {
385397
font-size: var(--text-sm);
386398
color: var(--text-secondary);
387399
line-height: 1.6;
400+
text-wrap: pretty;
388401
animation: expand-in 0.2s cubic-bezier(0.25, 1, 0.5, 1);
389402
}
390403

@@ -475,6 +488,10 @@ th[data-sort].sort-asc::after {
475488
inset: -0.5rem -0.25rem;
476489
}
477490

491+
.tag:active {
492+
transform: scale(0.95);
493+
}
494+
478495
.tag:hover {
479496
background: var(--tag-hover-bg);
480497
color: var(--accent);

0 commit comments

Comments
 (0)