Skip to content

Instantly share code, notes, and snippets.

@jaredcwhite
Created December 14, 2020 20:05
Show Gist options
  • Save jaredcwhite/3b442ff9fe8575cf8c05bb6575bad012 to your computer and use it in GitHub Desktop.
Save jaredcwhite/3b442ff9fe8575cf8c05bb6575bad012 to your computer and use it in GitHub Desktop.
Markup with custom elements, inline styles + CSS variables
<nav style="margin: var(--gap-3) 0">
<navbar-inner>
<sl-flex nowrap align-items="center" spaced="between">
<sl-flex-item size="6/10 xs:2/10 sm:3/10 md:4/10 lg:5/10">
<a href="/" style="background: var(--primary-color)">
<img alt="Whitefusion" src="/images/whitefusion-w-transparent.png" width="60">
</a>
</sl-flex-item>
<sl-flex-item>
<a href="/spec">Tech Specs</a>
</sl-flex-item>
<sl-flex-item>
<a href="/resources">Resources</a>
</sl-flex-item>
<sl-flex-item>
<a href="/learn">Learn More</a>
</sl-flex-item>
</sl-flex>
</navbar-inner>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment