Skip to content

Commit 212eb61

Browse files
brabojclaude
andcommitted
style: redesign tabs with folder-tab appearance
Active tab connects to page content with matching background and rounded top corners. Inactive tabs stay in the bar. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0ed7869 commit 212eb61

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

astro-site/src/styles/global.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ a:hover {
257257
top: var(--header-height);
258258
z-index: 99;
259259
background: var(--color-primary-dark);
260-
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
261260
}
262261

263262
.nav-toggle {
@@ -266,7 +265,9 @@ a:hover {
266265

267266
.site-tabs {
268267
display: flex;
268+
align-items: flex-end;
269269
padding: 0 var(--space-md);
270+
padding-top: var(--space-xs);
270271
max-width: calc(var(--max-content) + 2 * var(--sidebar-width) + 2 * var(--space-xl));
271272
margin: 0 auto;
272273
}
@@ -277,28 +278,23 @@ a:hover {
277278
font-weight: 500;
278279
text-transform: uppercase;
279280
letter-spacing: 0.04em;
280-
padding: 0 var(--space-sm);
281-
height: var(--tab-height);
281+
padding: var(--space-xs) var(--space-sm);
282282
display: flex;
283283
align-items: center;
284-
border-bottom: 2px solid transparent;
285-
border-right: 1px solid rgba(255, 255, 255, 0.2);
286284
white-space: nowrap;
287-
}
288-
289-
.site-tabs a:last-child {
290-
border-right: none;
285+
border-radius: 4px 4px 0 0;
291286
}
292287

293288
.site-tabs a:hover {
294289
color: #fff;
290+
background: rgba(255, 255, 255, 0.1);
295291
text-decoration: none;
296292
}
297293

298294
.site-tabs a.active {
299-
color: #fff;
295+
color: var(--color-fg);
300296
font-weight: 700;
301-
border-bottom: 3px solid var(--color-accent);
297+
background: var(--color-bg);
302298
}
303299

304300
/* Three-column layout */

0 commit comments

Comments
 (0)