Skip to content

Commit c4bf26a

Browse files
staredclaude
andcommitted
Simplify sidebar to plain text list
Removed visual complexity from sidebar navigation: - Removed category labels (no brackets/field names) - Removed button borders and boxes - Simple text list with subtle gray color - Hover: text darkens - Active: darker text + medium font weight Clean, minimal Tufte-style navigation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f227fc4 commit c4bf26a

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function createEquationSelector() {
250250

251251
equations.forEach(equation => {
252252
const button = document.createElement('button');
253-
button.innerHTML = `${equation.title} <span class="category">(${equation.category})</span>`;
253+
button.textContent = equation.title;
254254
button.dataset.equationId = equation.id;
255255
button.className = equation.id === currentEquationId ? 'active' : '';
256256

src/style.css

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,35 +98,28 @@ h1 {
9898
.equation-selector {
9999
display: flex;
100100
flex-direction: column;
101-
gap: 0.75rem;
101+
gap: 0.5rem;
102102
}
103103

104104
.equation-selector button {
105-
padding: 0.75rem 1rem;
106-
border: 1px solid var(--border-color);
107-
background-color: transparent;
108-
color: var(--text-color);
109-
font-size: 0.875rem;
105+
padding: 0.5rem 0;
106+
border: none;
107+
background: none;
108+
color: #6b7280;
109+
font-size: 0.9375rem;
110110
cursor: pointer;
111111
font-family: inherit;
112112
text-align: left;
113-
transition: background-color 0.2s ease;
113+
transition: color 0.2s ease;
114114
}
115115

116116
.equation-selector button:hover {
117-
background-color: #e5e7eb;
117+
color: var(--text-color);
118118
}
119119

120120
.equation-selector button.active {
121-
background-color: var(--text-color);
122-
color: var(--bg-color);
123-
}
124-
125-
.equation-selector .category {
126-
display: block;
127-
font-size: 0.75rem;
128-
color: #6b7280;
129-
margin-top: 0.25rem;
121+
color: var(--text-color);
122+
font-weight: 500;
130123
}
131124

132125
/* Color scheme switcher */

0 commit comments

Comments
 (0)