Skip to content

Commit

Permalink
Remove nesting option from playground, update docs
Browse files Browse the repository at this point in the history
On by default!
  • Loading branch information
devongovett committed Sep 17, 2023
1 parent 8683184 commit 7ff93ca
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -25,7 +25,7 @@ An extremely fast CSS parser, transformer, and minifier written in Rust. Use it
- **Vendor prefixing** – Lightning CSS accepts a list of browser targets, and automatically adds (and removes) vendor prefixes.
- **Browserslist configuration** – Lightning CSS supports opt-in browserslist configuration discovery to resolve browser targets and integrate with your existing tools and config setup.
- **Syntax lowering** – Lightning CSS parses modern CSS syntax, and generates more compatible output where needed, based on browser targets.
- CSS Nesting (draft spec)
- CSS Nesting
- Custom media queries (draft spec)
- Logical properties
* [Color Level 5](https://drafts.csswg.org/css-color-5/)
Expand Down
2 changes: 1 addition & 1 deletion website/pages/transpilation.md
Expand Up @@ -436,7 +436,7 @@ p:not(:first-child, .lead) {
compiles to:

```css
p:not(:is(:first-child, (.lead)) {
p:not(:is(:first-child, .lead)) {
margin-top: 1em;
}
```
Expand Down
1 change: 0 additions & 1 deletion website/playground/index.html
Expand Up @@ -170,7 +170,6 @@ <h3>Options</h3>
<label><input id="analyzeDependencies" type="checkbox"> Analyze dependencies</label>
<label><input id="visitorEnabled" type="checkbox"> Visitor</label>
<h3>Draft syntax</h3>
<label><input id="nesting" type="checkbox" checked> Nesting</label>
<label><input id="customMedia" type="checkbox" checked> Custom media queries</label>
<h3>Targets</h3>
<div class="targets">
Expand Down
7 changes: 0 additions & 7 deletions website/playground/playground.js
Expand Up @@ -46,7 +46,6 @@ function loadPlaygroundState() {
} catch {
return {
minify: minify.checked,
nesting: nesting.checked,
visitorEnabled: visitorEnabled.checked,
targets: getTargets(),
include: 0,
Expand Down Expand Up @@ -102,10 +101,6 @@ function reflectPlaygroundState(playgroundState) {
compiledDependencies.hidden = !playgroundState.analyzeDependencies;
}

if (typeof playgroundState.nesting !== 'undefined') {
nesting.checked = playgroundState.nesting;
}

if (typeof playgroundState.customMedia !== 'undefined') {
customMedia.checked = playgroundState.customMedia;
}
Expand Down Expand Up @@ -144,7 +139,6 @@ function savePlaygroundState() {
let data = new FormData(sidebar);
const playgroundState = {
minify: minify.checked,
nesting: nesting.checked,
customMedia: customMedia.checked,
cssModules: cssModules.checked,
analyzeDependencies: analyzeDependencies.checked,
Expand Down Expand Up @@ -216,7 +210,6 @@ function update() {
include,
exclude,
drafts: {
nesting: nesting.checked,
customMedia: customMedia.checked
},
cssModules: cssModules.checked,
Expand Down

1 comment on commit 7ff93ca

@cyjake
Copy link
Contributor

@cyjake cyjake commented on 7ff93ca Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://lightningcss.dev/docs.html#with-parcel documentation site still has it

Please sign in to comment.