Center navigation chevrons
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 4s
Deploy / context (push) Successful in 0s
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 4s
Deploy / app-quality (push) Successful in 1m6s
Deploy / app-image (push) Successful in 54s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 12s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 4s
Deploy / context (push) Successful in 0s
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 4s
Deploy / app-quality (push) Successful in 1m6s
Deploy / app-image (push) Successful in 54s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 12s
This commit is contained in:
@@ -77,7 +77,7 @@ export default function Header({ siteName }: { siteName: string }) {
|
|||||||
>
|
>
|
||||||
<div className="navigation-group__heading">
|
<div className="navigation-group__heading">
|
||||||
<Link href={group.href} aria-current={pathname === group.href ? "page" : undefined} onClick={closeNavigation}>{group.label}</Link>
|
<Link href={group.href} aria-current={pathname === group.href ? "page" : undefined} onClick={closeNavigation}>{group.label}</Link>
|
||||||
<button ref={(element) => { if (element) groupButtonRefs.current.set(group.href, element); else groupButtonRefs.current.delete(group.href); }} type="button" aria-expanded={expanded} aria-controls={submenuId} aria-label={`Unterseiten von ${group.label} ${expanded ? "schließen" : "öffnen"}`} onClick={() => setOpenGroup((current) => current === group.href ? null : group.href)}><span aria-hidden="true" className="navigation-chevron" /></button>
|
<button ref={(element) => { if (element) groupButtonRefs.current.set(group.href, element); else groupButtonRefs.current.delete(group.href); }} type="button" aria-expanded={expanded} aria-controls={submenuId} aria-label={`Unterseiten von ${group.label} ${expanded ? "schließen" : "öffnen"}`} onClick={() => setOpenGroup((current) => current === group.href ? null : group.href)}><svg aria-hidden="true" className="navigation-chevron" viewBox="0 0 16 16"><path d="M3.5 5.75 8 10.25l4.5-4.5" /></svg></button>
|
||||||
</div>
|
</div>
|
||||||
<ul className="navigation-submenu" id={submenuId}>
|
<ul className="navigation-submenu" id={submenuId}>
|
||||||
{group.children.map((item) => <li key={item.href}><Link href={item.href} aria-current={pathname === item.href ? "page" : undefined} onClick={closeNavigation}>{item.label}</Link></li>)}
|
{group.children.map((item) => <li key={item.href}><Link href={item.href} aria-current={pathname === item.href ? "page" : undefined} onClick={closeNavigation}>{item.label}</Link></li>)}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid w
|
|||||||
.navigation-group__heading { display:flex; align-items:center; gap:.1rem; }
|
.navigation-group__heading { display:flex; align-items:center; gap:.1rem; }
|
||||||
.navigation-group__heading>a { display:inline-flex; align-items:center; min-height:44px; }
|
.navigation-group__heading>a { display:inline-flex; align-items:center; min-height:44px; }
|
||||||
.navigation-group__heading button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:44px; padding:0; border:0; color:var(--blue-950); background:transparent; cursor:pointer; }
|
.navigation-group__heading button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:44px; padding:0; border:0; color:var(--blue-950); background:transparent; cursor:pointer; }
|
||||||
.navigation-chevron { width:.5rem; height:.5rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transform-origin:center; transition:transform .2s ease; }
|
.navigation-chevron { display:block; flex:none; width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transform:rotate(0deg); transform-origin:50% 50%; transition:transform .2s ease; }
|
||||||
.navigation-group[data-expanded="true"] .navigation-chevron { transform:rotate(225deg); }
|
.navigation-group[data-expanded="true"] .navigation-chevron { transform:rotate(180deg); }
|
||||||
.navigation-submenu { display:none; position:absolute; top:100%; left:0; z-index:30; min-width:285px; padding:.55rem; border:1px solid var(--line); background:var(--paper); box-shadow:var(--shadow); }
|
.navigation-submenu { display:none; position:absolute; top:100%; left:0; z-index:30; min-width:285px; padding:.55rem; border:1px solid var(--line); background:var(--paper); box-shadow:var(--shadow); }
|
||||||
.navigation-group:last-child .navigation-submenu { right:0; left:auto; }
|
.navigation-group:last-child .navigation-submenu { right:0; left:auto; }
|
||||||
.navigation-group[data-expanded="true"]>.navigation-submenu { display:grid; }
|
.navigation-group[data-expanded="true"]>.navigation-submenu { display:grid; }
|
||||||
@@ -63,7 +63,7 @@ a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid w
|
|||||||
.quick-grid--four{grid-template-columns:repeat(4,1fr)}
|
.quick-grid--four{grid-template-columns:repeat(4,1fr)}
|
||||||
.discover-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);scroll-margin-top:88px;background:#e7eee7}.discover-photo{position:relative;min-height:570px;overflow:hidden}.discover-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.discover-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,8vw,7rem)}.discover-copy>p{max-width:620px}.discover-copy .link-list{max-width:650px}
|
.discover-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);scroll-margin-top:88px;background:#e7eee7}.discover-photo{position:relative;min-height:570px;overflow:hidden}.discover-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.discover-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,8vw,7rem)}.discover-copy>p{max-width:620px}.discover-copy .link-list{max-width:650px}
|
||||||
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.feature-grid>a{min-height:240px;padding:2rem;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}.feature-grid>a:hover{background:#f1f4f0;box-shadow:var(--shadow);transform:translateY(-3px)}.feature-grid span{display:block;margin-bottom:3rem;color:var(--gold-700);font-weight:700}.feature-grid p{color:var(--muted)}
|
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.feature-grid>a{min-height:240px;padding:2rem;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}.feature-grid>a:hover{background:#f1f4f0;box-shadow:var(--shadow);transform:translateY(-3px)}.feature-grid span{display:block;margin-bottom:3rem;color:var(--gold-700);font-weight:700}.feature-grid p{color:var(--muted)}
|
||||||
.project-links{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.5rem}.project-links--two{grid-template-columns:repeat(2,1fr)}.project-links a{display:flex;flex-direction:column;padding:1.5rem 1.2rem;border:1px solid rgb(255 255 255 / 22%);border-radius:var(--radius);text-decoration:none;transition:background-color .2s ease,transform .2s ease}.project-links a:hover{background:rgb(255 255 255 / 10%);transform:translateY(-2px)}.project-links strong{font-size:1.25rem}.project-links span{color:rgb(255 255 255 / 68%)}
|
.project-links{display:grid;grid-template-columns:repeat(3,1fr);margin-top:2.5rem;border-top:1px solid rgb(255 255 255 / 22%)}.project-links--two{grid-template-columns:repeat(2,1fr)}.project-links a{display:flex;flex-direction:column;padding:1.5rem 1.2rem;border-bottom:1px solid rgb(255 255 255 / 22%);text-decoration:none;transition:background-color .2s ease,transform .2s ease}.project-links a:hover{background:rgb(255 255 255 / 10%);transform:translateY(-2px)}.project-links strong{font-size:1.25rem}.project-links span{color:rgb(255 255 255 / 68%)}
|
||||||
.contact-band{display:flex;align-items:center;justify-content:space-between;gap:2rem}.contact-band>div{max-width:720px}.contact-band h2{margin-bottom:1rem}
|
.contact-band{display:flex;align-items:center;justify-content:space-between;gap:2rem}.contact-band>div{max-width:720px}.contact-band h2{margin-bottom:1rem}
|
||||||
.content-image{max-width:860px;margin:0 0 4rem}.content-image img{display:block;width:100%;height:auto;max-height:580px;object-fit:cover}.content-image figcaption{margin-top:.5rem;color:var(--muted);font-size:.76rem}
|
.content-image{max-width:860px;margin:0 0 4rem}.content-image img{display:block;width:100%;height:auto;max-height:580px;object-fit:cover}.content-image figcaption{margin-top:.5rem;color:var(--muted);font-size:.76rem}
|
||||||
.coat-of-arms{max-width:260px;margin:0 0 4rem}.coat-of-arms img{width:100%;height:auto}
|
.coat-of-arms{max-width:260px;margin:0 0 4rem}.coat-of-arms img{width:100%;height:auto}
|
||||||
|
|||||||
Reference in New Issue
Block a user