Skip to content

Commit

Permalink
Incorporate @begin/masthead
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Nov 13, 2023
1 parent c4bbf34 commit 38d86f3
Show file tree
Hide file tree
Showing 36 changed files with 465 additions and 652 deletions.
2 changes: 1 addition & 1 deletion app/api/docs/$$.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import redirects from '../../lib/docs-redirects.mjs'
const arcdown = new Arcdown({
pluginOverrides: {
markdownItToc: {
containerClass: 'toc mbe2 mis-2',
containerClass: 'toc mbe2 mis-2 leading2',
listType: 'ul',
},
},
Expand Down
3 changes: 1 addition & 2 deletions app/docs/md/routing/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ The journey of an HTTP request through Enhance isn't complicated, but it's helpf

</doc-callout>

<doc-enhance-diagram class="block mbe2">
</doc-enhance-diagram>
<img src='/_public/img/docs/routing-lifecycle.svg' class='block mbe2 si-100' />

## Routing

Expand Down
1 change: 1 addition & 0 deletions app/elements/begin-masthead.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Masthead as default } from '@begin/masthead'
15 changes: 10 additions & 5 deletions app/elements/doc/content.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export default function DocContent({ html }) {
return html`
<style>
:host {
padding: 1rem;
}
:host > * {
max-width: 52rem;
margin: auto;
Expand All @@ -18,7 +15,15 @@ export default function DocContent({ html }) {
:host > ::slotted([slot]) > h3,
:host > ::slotted([slot]) > h4 {
margin-bottom: 0.75rem;
font-weight: 500;
}
:host > ::slotted([slot]) > h1 {
font-weight: 700;
}
:host > ::slotted([slot]) > h2,
:host > ::slotted([slot]) > h3,
:host > ::slotted([slot]) > h4 {
margin-bottom: 0.75rem;
font-weight: 600;
}
h1 {
font-size: 1.953rem;
Expand All @@ -34,7 +39,7 @@ export default function DocContent({ html }) {
}
strong {
font-weight: 500;
font-weight: 600;
color: var(--black-white);
}
small {
Expand Down
198 changes: 0 additions & 198 deletions app/elements/doc/enhance-diagram.mjs

This file was deleted.

Loading

0 comments on commit 38d86f3

Please sign in to comment.