Navigation: Kopfzeile, Seitenleiste, Brotkrumen (v2.1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -122,6 +122,21 @@
|
||||
.choice input:disabled { cursor: not-allowed; }
|
||||
fieldset { border: 0; margin: 0; padding: 0; }
|
||||
legend { font-size: var(--font-size-small); font-weight: 600; padding: 0; margin-bottom: .25rem; }
|
||||
.appbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-button); padding: .6rem var(--content-gutter); display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; }
|
||||
.nav-pill { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2); overflow-x: auto; max-width: 100%; }
|
||||
.nav-pill a, .side a { color: var(--muted); text-decoration: none; padding: .35rem .8rem; white-space: nowrap; }
|
||||
.nav-pill a { border-radius: var(--radius-pill); }
|
||||
.nav-pill a:hover, .side a:hover { color: var(--text); }
|
||||
.nav-pill a[aria-current="page"], .side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
|
||||
.layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; border: 1px solid var(--border); border-radius: var(--radius-button); overflow: hidden; margin-top: .8rem; }
|
||||
.side { background: var(--surface); border-right: 1px solid var(--border); padding: .6rem; display: grid; gap: 2px; align-content: start; }
|
||||
.side a { display: block; border-radius: var(--radius-field); }
|
||||
.side h4 { margin: .6rem .8rem .2rem; font-size: var(--font-size-table-head); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
|
||||
.layout main, .layout .content { padding: 1rem; background: var(--bg); }
|
||||
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .5rem; padding: 0; font-size: var(--font-size-small); }
|
||||
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: .3rem; }
|
||||
.crumbs [aria-current="page"] { color: var(--text); }
|
||||
@media (max-width: 40rem) { .layout { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--border); } }
|
||||
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
|
||||
.tabs button { font: inherit; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; color: var(--muted); cursor: pointer; }
|
||||
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-strong); font-weight: 600; }
|
||||
@ -219,6 +234,31 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Navigation</h2>
|
||||
<div class="appbar">
|
||||
<span class="wordmark">Style<b>guide</b></span>
|
||||
<nav class="nav-pill" aria-label="Hauptnavigation">
|
||||
<a href="#" aria-current="page">Übersicht</a><a href="#">Projekte</a><a href="#">Berichte</a><a href="#">Einstellungen</a>
|
||||
</nav>
|
||||
<span class="small">Konto</span>
|
||||
</div>
|
||||
<div class="layout">
|
||||
<nav class="side" aria-label="Seitenleiste">
|
||||
<h4>Arbeit</h4>
|
||||
<a href="#" aria-current="page">Kapitel</a><a href="#">Entwürfe</a>
|
||||
<h4>Verwaltung</h4>
|
||||
<a href="#">Export</a><a href="#">Archiv</a>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<nav class="crumbs" aria-label="Brotkrumen"><ol>
|
||||
<li><a href="#">Projekte</a></li><li><a href="#">Roman</a></li><li aria-current="page">Kapitel 3</li>
|
||||
</ol></nav>
|
||||
<p style="margin:0">Hauptinhalt der Seite.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Tabs und Aufklappmenü</h2>
|
||||
<div class="tabs" role="tablist" aria-label="Beispiel-Tabs" id="tabs">
|
||||
|
||||
Reference in New Issue
Block a user