diff --git a/docs/_layouts/theme.njk b/docs/_layouts/theme.njk index 35fdaa125..d890c2406 100644 --- a/docs/_layouts/theme.njk +++ b/docs/_layouts/theme.njk @@ -5,7 +5,61 @@ {% extends '../_includes/base.njk' %} {% block header %} - + + +

+ + + Remix + + + + + (Theme default) + + {% for theme in collections.theme | sort %} + {% if theme.fileSlug !== page.fileSlug %} + {{ theme.data.title }} + {% endif %} + {% endfor %} + + + + + (Theme default) + + {% for p in collections.palette | sort %} + {% if p.fileSlug !== palette %} + {{ p.data.title }} + {% endif %} + {% endfor %} + + + + + (Theme default) + + {% for theme in collections.theme | sort %} + {% if theme.fileSlug !== page.fileSlug %} + {{ theme.data.title }} + {% endif %} + {% endfor %} + + + +

+

Default Color Palette

{% set paletteURL = '/docs/palettes/' + palette + '/' %} @@ -27,14 +81,14 @@ You can import this theme from the Web Awesome CDN. {% set stylesheet = 'styles/themes/' + page.fileSlug + '.css' %} {% include 'import-stylesheet-code.md.njk' %} -### Mixing & Matching +### Remixing { #remixing } -If you want to combine the colors from this theme with another theme, you can import this CSS file *after* the other theme’s CSS file: +If you want to combine the **colors** from this theme with another theme, you can import this CSS file *after* the other theme’s CSS file: {% set stylesheet = 'styles/themes/' + page.fileSlug + '/color.css' %} {% include 'import-stylesheet-code.md.njk' %} -To use the typography from this theme with another theme, you can import this CSS file *after* the other theme’s CSS file: +To use the **typography** from this theme with another theme, you can import this CSS file *after* the other theme’s CSS file: {% set stylesheet = 'styles/themes/' + page.fileSlug + '/typography.css' %} {% include 'import-stylesheet-code.md.njk' %} diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index 36170bcbf..7f5cd5733 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -536,4 +536,23 @@ table.colors { height: 65vh; max-height: 21lh; } + + #mix_and_match { + strong { + display: flex; + align-items: center; + gap: var(--wa-space-2xs); + margin-top: 1.2em; + } + + wa-select::part(label) { + margin-block-end: 0; + } + + wa-select[value='']::part(display-input), + wa-option[value=''] { + font-style: italic; + color: var(--wa-color-text-quiet); + } + } } diff --git a/docs/docs/native/select.md b/docs/docs/native/select.md index 28179161f..efef8547f 100644 --- a/docs/docs/native/select.md +++ b/docs/docs/native/select.md @@ -33,3 +33,39 @@ Use the [appearance utilities](/docs/utilities/appearance/) to change the select ``` + +### Grouping options + +In [modern browsers](https://caniuse.com/mdn-html_elements_select_hr_in_select), you can use the `
` element as a divider: + +```html {.example} + +``` + +To provide labels, you can use the `` element (with or without dividers): + +```html {.example} + +``` diff --git a/docs/docs/themes/demo.njk b/docs/docs/themes/demo.njk index ee54aa408..c511f639b 100644 --- a/docs/docs/themes/demo.njk +++ b/docs/docs/themes/demo.njk @@ -10,12 +10,6 @@ override:tags: [] eleventyComputed: forceTheme: "{{ theme.fileSlug }}" --- - - @@ -24,6 +18,7 @@ eleventyComputed:
{% include 'breadcrumbs.njk' %}

{{ theme.data.title }}

+

{% include 'status.njk' %}

{{ theme.data.description | inlineMarkdown | safe }}

@@ -38,3 +33,47 @@ eleventyComputed: {{ content | safe }} + + diff --git a/docs/docs/themes/showcase.css b/docs/docs/themes/showcase.css index 7f6c6312c..d073cf0f8 100644 --- a/docs/docs/themes/showcase.css +++ b/docs/docs/themes/showcase.css @@ -9,6 +9,15 @@ body, overflow: hidden; } +#mix_and_match { + font-weight: var(--wa-font-weight-semibold); + color: var(--wa-color-text-quiet); + + wa-icon { + vertical-align: middle; + } +} + .theme-showcase { isolation: isolate; background-color: var(--wa-color-surface-lowered); diff --git a/src/components/image-comparer/image-comparer.css b/src/components/image-comparer/image-comparer.css index e6defb515..05325028a 100644 --- a/src/components/image-comparer/image-comparer.css +++ b/src/components/image-comparer/image-comparer.css @@ -17,16 +17,13 @@ .before, .after { display: block; - pointer-events: none; -} -.before::slotted(img), -.after::slotted(img), -.before::slotted(svg), -.after::slotted(svg) { - display: block; - max-width: 100% !important; - height: auto; + &::slotted(img), + &::slotted(svg) { + display: block; + max-width: 100% !important; + height: auto; + } } .after {