"...src/pages/git@git.gitsec.cn:baidan/wecube-platform.git" did not exist on "e240f3b786983a1ed6720e1761a346201341fcae"
Commit ca2e85bc authored by nicolelyn's avatar nicolelyn
Browse files

target g-subnav directly

parent 18db8872
Showing with 15 additions and 20 deletions
+15 -20
......@@ -5,20 +5,19 @@ import { useRouter } from 'next/router'
export default function NomadSubnav() {
const router = useRouter()
return (
<div className="g-constrained-nav">
<Subnav
titleLink={{
text: 'nomad',
url: '/'
}}
ctaLinks={[
{ text: 'GitHub', url: 'https://www.github.com/hashicorp/nomad' },
{ text: 'Download', url: '/downloads' }
]}
currentPath={router.pathname}
menuItemsAlign="right"
menuItems={subnavItems}
/>
</div>
// Currently targeting .g-subnav in style.css to constrain subnav from full-width
<Subnav
titleLink={{
text: 'nomad',
url: '/'
}}
ctaLinks={[
{ text: 'GitHub', url: 'https://www.github.com/hashicorp/nomad' },
{ text: 'Download', url: '/downloads' }
]}
currentPath={router.pathname}
menuItemsAlign="right"
menuItems={subnavItems}
/>
)
}
/* TEMPORARY - only here until all sites convert to full width nav */
.g-constrained-nav {
position: sticky;
top: -1px;
z-index: 900;
.g-subnav {
& .g-subnav-inner {
padding: 0 calc(50% - 1288px / 2 + 32px);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment