diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index bee60ba6a..18685ca69 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -19,7 +19,7 @@

- {{ component.summary }} + {{ component.summary | inlineMarkdown | safe }}

{% endblock %} diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index 67b3775d9..3860c2cb2 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -105,10 +105,6 @@ wa-page[view='desktop'] > #sidebar { max-height: 100%; } -wa-page[view='desktop'] > #outline { - max-width: 240px; -} - #sidebar, #outline { h2 { @@ -165,10 +161,18 @@ wa-page::part(menu) { /* Main content */ wa-page > main { max-width: 80ch; - padding: 2rem; + padding: var(--wa-space-xl); margin-inline: auto; } +wa-page[view='desktop'] > main { + padding: var(--wa-space-3xl); +} + +.component-info { + margin-block-end: var(--wa-flow-spacing); +} + /* Current link */ #sidebar, #outline { diff --git a/docs/assets/styles/outline.css b/docs/assets/styles/outline.css index 6f9b7afce..26ee6c274 100644 --- a/docs/assets/styles/outline.css +++ b/docs/assets/styles/outline.css @@ -1,6 +1,5 @@ #outline { order: 2; - padding-inline-end: 2rem; margin-block: 2rem; } @@ -12,6 +11,9 @@ #outline > nav { position: sticky; top: calc(var(--docs-header-height) + 3.5rem); + padding-inline-end: 2rem; + max-width: 240px; + min-width: 240px; } #outline-expandable { @@ -28,7 +30,7 @@ margin-inline-start: 1rem; } -@media screen and (max-width: 1299px) { +@media screen and (max-width: 1199px) { #outline { padding-block: 0.25rem; margin-block-end: -1rem; diff --git a/docs/docs/components/breadcrumb-item.md b/docs/docs/components/breadcrumb-item.md index 2b8dfcced..a071cd8be 100644 --- a/docs/docs/components/breadcrumb-item.md +++ b/docs/docs/components/breadcrumb-item.md @@ -16,5 +16,5 @@ layout: component ``` :::info -Additional demonstrations can be found in the [breadcrumb examples](/components/breadcrumb). +Additional demonstrations can be found in the [breadcrumb examples](/docs/components/breadcrumb). ::: diff --git a/docs/docs/components/button-group.md b/docs/docs/components/button-group.md index de7f10069..2e09c930e 100644 --- a/docs/docs/components/button-group.md +++ b/docs/docs/components/button-group.md @@ -135,7 +135,7 @@ Dropdowns can be placed inside button groups as long as the trigger is an ` diff --git a/docs/docs/components/carousel-item.md b/docs/docs/components/carousel-item.md index 34379d947..af19d6137 100644 --- a/docs/docs/components/carousel-item.md +++ b/docs/docs/components/carousel-item.md @@ -40,5 +40,5 @@ layout: component ``` :::info -Additional demonstrations can be found in the [carousel examples](/components/carousel). +Additional demonstrations can be found in the [carousel examples](/docs/components/carousel). ::: diff --git a/docs/docs/components/copy-button.md b/docs/docs/components/copy-button.md index bf305965b..a4cf36054 100644 --- a/docs/docs/components/copy-button.md +++ b/docs/docs/components/copy-button.md @@ -25,7 +25,7 @@ Copy Buttons display feedback in a tooltip. You can customize the labels using t ### Custom Icons -Use the `copy-icon`, `success-icon`, and `error-icon` slots to customize the icons that get displayed for each state. You can use [``](/components/icon) or your own images. +Use the `copy-icon`, `success-icon`, and `error-icon` slots to customize the icons that get displayed for each state. You can use [``](/docs/components/icon) or your own images. ```html {.example} diff --git a/docs/docs/components/dialog.md b/docs/docs/components/dialog.md index 0ae560e9b..129ffa6c8 100644 --- a/docs/docs/components/dialog.md +++ b/docs/docs/components/dialog.md @@ -127,7 +127,7 @@ By design, a dialog's height will never exceed that of the viewport. As such, di ### Header Actions -The header shows a functional close button by default. You can use the `header-actions` slot to add additional [icon buttons](/components/icon-button) if needed. +The header shows a functional close button by default. You can use the `header-actions` slot to add additional [icon buttons](/docs/components/icon-button) if needed. ```html {.example} diff --git a/docs/docs/components/divider.md b/docs/docs/components/divider.md index 62c7026aa..9fb78d197 100644 --- a/docs/docs/components/divider.md +++ b/docs/docs/components/divider.md @@ -54,7 +54,7 @@ Add the `vertical` attribute to draw the divider in a vertical orientation. The ### Menu Dividers -Use dividers in [menus](/components/menu) to visually group menu items. +Use dividers in [menus](/docs/components/menu) to visually group menu items. ```html {.example} diff --git a/docs/docs/components/drawer.md b/docs/docs/components/drawer.md index d8d041655..473958041 100644 --- a/docs/docs/components/drawer.md +++ b/docs/docs/components/drawer.md @@ -187,7 +187,7 @@ By design, a drawer's height will never exceed 100% of its container. As such, d ### Header Actions -The header shows a functional close button by default. You can use the `header-actions` slot to add additional [icon buttons](/components/icon-button) if needed. +The header shows a functional close button by default. You can use the `header-actions` slot to add additional [icon buttons](/docs/components/icon-button) if needed. ```html {.example} diff --git a/docs/docs/components/dropdown.md b/docs/docs/components/dropdown.md index c5c970920..f74771ee8 100644 --- a/docs/docs/components/dropdown.md +++ b/docs/docs/components/dropdown.md @@ -6,7 +6,7 @@ layout: component Dropdowns consist of a trigger and a panel. By default, activating the trigger will expose the panel and interacting outside of the panel will close it. -Dropdowns are designed to work well with [menus](/components/menu) to provide a list of options the user can select from. However, dropdowns can also be used in lower-level applications (e.g. [color picker](/components/color-picker)). The API gives you complete control over showing, hiding, and positioning the panel. +Dropdowns are designed to work well with [menus](/docs/components/menu) to provide a list of options the user can select from. However, dropdowns can also be used in lower-level applications (e.g. [color picker](/docs/components/color-picker)). The API gives you complete control over showing, hiding, and positioning the panel. ```html {.example} @@ -35,7 +35,7 @@ Dropdowns are designed to work well with [menus](/components/menu) to provide a ### Getting the Selected Item -When dropdowns are used with [menus](/components/menu), you can listen for the [`wa-select`](/components/menu#events) event to determine which menu item was selected. The menu item element will be exposed in `event.detail.item`. You can set `value` props to make it easier to identify commands. +When dropdowns are used with [menus](/docs/components/menu), you can listen for the [`wa-select`](/docs/components/menu#events) event to determine which menu item was selected. The menu item element will be exposed in `event.detail.item`. You can set `value` props to make it easier to identify commands. ```html {.example}