{% include "preset-theme-selector.njk" %}
{% include "color-scheme-selector.njk" %}
diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css
index ed0f587ba..44efd0cda 100644
--- a/docs/assets/styles/docs.css
+++ b/docs/assets/styles/docs.css
@@ -483,11 +483,6 @@ wa-page > main:has(> .index-grid) {
/** desktop */
@media screen and not (max-width: 768px) {
- wa-page [data-toggle-nav],
- wa-page .only-mobile {
- display: none;
- }
-
/* Navigation sidebar */
wa-page::part(navigation) {
border-right: var(--wa-border-style) var(--wa-panel-border-width) var(--wa-color-neutral-border-quiet);
diff --git a/docs/docs/components/page.md b/docs/docs/components/page.md
index 21afd37b5..279de1c71 100644
--- a/docs/docs/components/page.md
+++ b/docs/docs/components/page.md
@@ -40,6 +40,10 @@ body {
}
```
+::info
+If you use [native styles](/docs/native/), this is already taken care of.
+:::
+
## Examples
:::warning
@@ -64,7 +68,7 @@ It can be opened using a button with `[data-toggle-nav]` that appears in the `su
- Audubon Worldwide
+ Audubon WorldwideOur WorkAbout UsDiscover
@@ -84,7 +88,7 @@ It can be opened using a button with `[data-toggle-nav]` that appears in the `su
Great Horned Owl
-
+
@@ -161,7 +165,7 @@ It can be opened using a button with `[data-toggle-nav]` that appears in the `su
-
-
+
@@ -609,17 +604,10 @@ A sample media app page using `header`, `navigation-header`, `main-header`, and
--wa-tooltip-arrow-size: 0;
background-color: var(--wa-color-surface-lowered);
}
- wa-page[view='desktop'] {
- :is([data-toggle-nav], #search-nav-drawer) {
- display: none;
- }
- }
+
wa-page[view='mobile'] {
--menu-width: auto;
- #search-header {
- display: none;
- }
[slot*='main'], main {
padding: var(--wa-space-xl);
}
@@ -846,6 +834,10 @@ wa-page[view='desktop'] [data-toggle-nav] {
}
```
+::info
+If you use [native styles](/docs/native/), this is already taken care for you, and the `data-toggle-nav` button is already hidden on wider screens.
+:::
+
#### Custom Widths
You specify widths for some slots on your page with [CSS custom properties](#css-custom-properties) for `--menu-width`, `--main-width`, and `--aside-width`.
@@ -880,3 +872,16 @@ You can override the default spacing for each slot with your own CSS. In this ex
}
```
+## Utility classes
+
+[Native styles](/docs/native/) define a few useful defaults for ``, as well as
+two utility classes you can use for common responsive design tasks:
+- `.wa-mobile-only` hides an element on the desktop view
+- `.wa-desktop-only` hides an element on the mobile view
+
+
+If you don’t want to use [native styles](/docs/native/), you can include this stylesheet in your project to use these:
+
+```html
+
+```
diff --git a/docs/docs/native/index.md b/docs/docs/native/index.md
index 6c63e0d95..077ba2a0b 100644
--- a/docs/docs/native/index.md
+++ b/docs/docs/native/index.md
@@ -11,7 +11,7 @@ We also provide styles that make native HTML elements look good so you can conti
To use all Web Awesome Native Styles, include the following stylesheet in your project:
```html
-
+
```
Here’s what we have so far:
@@ -34,7 +34,7 @@ Instead of including Native Styles with a `` element, you can include it l
```html