mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
switching to change input label styling
This commit is contained in:
@@ -50,16 +50,16 @@
|
||||
</ul>
|
||||
</wa-details>
|
||||
|
||||
<wa-details{{ ' open' if '/essentials/' in page.url }}>
|
||||
<wa-details{{ ' open' if '/natives/' in page.url }}>
|
||||
<h2 slot=summary>
|
||||
<a href="/docs/essentials/" title="Overview">Essentials
|
||||
<a href="/docs/natives/" title="Overview">Natives
|
||||
<wa-icon name="grid-2"></wa-icon>
|
||||
</a>
|
||||
</h2>
|
||||
<ul>
|
||||
{% for page in collections.essentials | sort %}
|
||||
{% for page in collections.natives | sort %}
|
||||
<li>
|
||||
<a href="/docs/essentials/{{ page.fileSlug }}">{{ page.data.title }}</a>
|
||||
<a href="/docs/natives/{{ page.fileSlug }}">{{ page.data.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Essentials
|
||||
title: Natives
|
||||
description: TODO
|
||||
---
|
||||
|
||||
@@ -7,7 +7,7 @@ Web Awesome works _with_ the platform, rather than trying to reinvent it.
|
||||
If all you need is styles, you don’t need to use new `<wa-*>` elements!
|
||||
We also provide styles that make native HTML elements look good so you can continue using what you know and gradually adopt Web Awesome as you see fit.
|
||||
|
||||
To use all Web Awesome Essentials, include the following stylesheet in your project:
|
||||
To use all Web Awesome Natives, include the following stylesheet in your project:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="{% cdnUrl 'styles/themes/applied.css' %}" />
|
||||
@@ -17,19 +17,19 @@ Here’s what we have so far:
|
||||
|
||||
<!-- TODO make nice cards for these -->
|
||||
<ul>
|
||||
{%- for page in collections.essentials | sort -%}
|
||||
{%- for page in collections.natives | sort -%}
|
||||
<li>
|
||||
<a href="/docs/essentials/{{ page.fileSlug }}">{{ page.data.title }}</a>
|
||||
<a href="/docs/natives/{{ page.fileSlug }}">{{ page.data.title }}</a>
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
|
||||
## Opting out of Essentials on a case by case basis
|
||||
## Opting out of Natives on a case by case basis
|
||||
|
||||
So you've decided to use Essentials and now you need to style an element or a part of a page completely differently, what to do?
|
||||
So you've decided to use Natives and now you need to style an element or a part of a page completely differently, what to do?
|
||||
You can create an opt-out with the power of [CSS Cascade Layers](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_layers)!
|
||||
|
||||
Instead of including Essentials with a `<link>` element, you can include it like this:
|
||||
Instead of including Natives with a `<link>` element, you can include it like this:
|
||||
|
||||
```html
|
||||
<style>
|
||||
@@ -45,7 +45,7 @@ Instead of including Essentials with a `<link>` element, you can include it like
|
||||
</style>
|
||||
```
|
||||
|
||||
Then you can opt-out of Essentials styling by using a `wa-off` class on individual elements or `wa-off-deep` for entire subtrees:
|
||||
Then you can opt-out of Natives styling by using a `wa-off` class on individual elements or `wa-off-deep` for entire subtrees:
|
||||
|
||||
```html
|
||||
<p>
|
||||
@@ -79,5 +79,5 @@ E.g. to opt-out of `<details>` styling:
|
||||
}
|
||||
```
|
||||
|
||||
If you find yourself opting out of entire element types too much, you could consider only including the parts of Essentials you need instead of the whole thing.
|
||||
You can find instructions for how to do that on the individual Essentials pages.
|
||||
If you find yourself opting out of entire element types too much, you could consider only including the parts of Natives you need instead of the whole thing.
|
||||
You can find instructions for how to do that on the individual Natives pages.
|
||||
Reference in New Issue
Block a user