Skip to content

Commit

Permalink
WIP new pages, mobile menu updates
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Oct 5, 2023
1 parent 816720c commit a92533e
Show file tree
Hide file tree
Showing 11 changed files with 165 additions and 345 deletions.
12 changes: 0 additions & 12 deletions app/docs/nav-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ export const data = [
label: 'Learn',
slug: 'learn',
items: [
{
type: TYPE.link,
slug: 'why-enhance',
label: 'Why Enhance?',
description: 'Our core philosophy',
},
{
type: TYPE.link,
slug: 'showcase',
label: 'Showcase',
description: 'Built with Enhance',
},
{
type: TYPE.category,
slug: 'get-started',
Expand Down
210 changes: 0 additions & 210 deletions app/elements/docs/header.mjs

This file was deleted.

4 changes: 2 additions & 2 deletions app/elements/docs/layout.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ export default function DocsLayout({ html, state }) {
<docs-symbols></docs-symbols>
<docs-header-v2 id="header"></docs-header-v2>
<enhance-header id="header"></enhance-header>
<docs-nav
id="sidebar"
class="pbs1-lg overflow-y-auto-lg"
class="overflow-y-auto-lg"
aria-label="sidebar"></docs-nav>
<doc-content id="content" class="overflow-y-auto-lg p1-lg pbe2">
Expand Down
3 changes: 1 addition & 2 deletions app/elements/docs/nav.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function List(items, classes = []) {
return `
<ul role="list" class="${['list-none pis-1', ...classes].join(' ')}">
<ul role="list" class="${['list-none pis-2', ...classes].join(' ')}">
${items
.map((item) => {
return `
Expand Down Expand Up @@ -85,7 +85,6 @@ export default function DocsNav({ html, state }) {
}
</style>
<docs-theme-toggle class="block hidden-lg mbe0 pis-1"></docs-theme-toggle>
<nav>${List(activeTab.items)}</nav>
`
}
6 changes: 3 additions & 3 deletions app/elements/docs/theme-toggle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export default function DocsThemeToggle({ html }) {
width: ${size}px;
}
input + svg {
opacity: 0.3;
padding-bottom: 2px;
color: var(--purple-princess);
}
input:hover + svg,
input:checked + svg {
opacity: 1;
color: var(--black-princess);
color: var(--rift-white);
}
input:checked + svg {
border-bottom: 2px solid var(--black-princess);
border-bottom: 2px solid var(--rift-white);
}
</style>
Expand Down
10 changes: 10 additions & 0 deletions app/elements/editorial-header.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default function EditorialHeader({ html }) {
return html`
<style>
enhance-header {
inline-size: var(--editorial-width);
}
</style>
<enhance-header class="block mi-auto font-medium"></enhance-header>
`
}
Loading

0 comments on commit a92533e

Please sign in to comment.