diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index 2980ce651..bee60ba6a 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -69,41 +69,35 @@ Name - Attribute Description Reflects - Type - Default {% for prop in component.properties %} - {{ prop.name }} - - + {{ prop.name }}
{% if prop.attribute %} - {{ prop.attribute }} +
{{ prop.attribute }}
{% endif %} - {{ prop.description | inlineMarkdown | safe }} +
{{ prop.description | inlineMarkdown | safe }}
+ {% if prop.type.text %} +
Type {{ prop.type.text | trimPipes | inlineMarkdown | safe }}
+ {% endif %} + {% if prop.default %} +
Default {{ prop.default | inlineMarkdown | safe }}
+ {% endif %} {% if prop.reflects %} {% endif %} - - {% if prop.type.text %} - {{ prop.type.text | trimPipes | inlineMarkdown | safe }} - {% endif %} - - {% if prop.default %} - {{ prop.default | inlineMarkdown | safe }} - {% endif %} + {% endfor %} @@ -206,17 +200,18 @@ Name Description - Default {% for cssProperty in component.cssProperties %} {{ cssProperty.name }} - {{ cssProperty.description | inlineMarkdown | safe }} - + +
{{ cssProperty.description | inlineMarkdown | safe }}
{% if cssProperty.default %} - {{ cssProperty.default }} +
+ Default {{ cssProperty.default }} +
{% endif %} @@ -236,7 +231,6 @@ Name Description - CSS selector @@ -244,7 +238,6 @@ {{ cssPart.name }} {{ cssPart.description | inlineMarkdown | safe }} - ::part({{ cssPart.name }}) {% endfor %} diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index 5a52ae1b8..b31548de1 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -105,6 +105,11 @@ wa-page[view='desktop'] > #sidebar { max-height: 100%; } +wa-page[view='desktop'] > #outline { + min-width: 240px; + max-width: 240px; +} + #sidebar, #outline { h2 { @@ -191,7 +196,7 @@ wa-page > main { .callout { display: flex; gap: 1rem; - border: var(--wa-border-style) var(--wa-border-width-m); + border: var(--wa-border-style) var(--wa-border-width-s); border-radius: var(--wa-border-radius-m); padding: 1rem; margin-block-end: var(--wa-flow-spacing); @@ -258,3 +263,7 @@ wa-page > main { columns: 2; gap: 1rem; } + +.component-table td > * + * { + margin-block-start: var(--wa-space-s); +} diff --git a/src/themes/applied.css b/src/themes/applied.css index 2837d0565..e0a03a53c 100644 --- a/src/themes/applied.css +++ b/src/themes/applied.css @@ -191,7 +191,7 @@ var { } code { - white-space: pre; + white-space: normal; } pre { @@ -355,7 +355,8 @@ th { td, th { text-align: start; - padding: var(--wa-space-s); + padding: var(--wa-space-l) var(--wa-space-s); + vertical-align: top; } /* Definition lists */