mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 21:33:32 -06:00
Initial commit
This commit is contained in:
61
node_modules/stylelint-scss/src/rules/selector-no-redundant-nesting-selector/README.md
generated
vendored
Normal file
61
node_modules/stylelint-scss/src/rules/selector-no-redundant-nesting-selector/README.md
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
# selector-no-redundant-nesting-selector
|
||||
|
||||
Disallow redundant nesting selectors (`&`).
|
||||
|
||||
```scss
|
||||
p {
|
||||
& a {}
|
||||
//↑
|
||||
// This type of selector
|
||||
}
|
||||
```
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```scss
|
||||
p {
|
||||
& a {}
|
||||
}
|
||||
```
|
||||
|
||||
```scss
|
||||
p {
|
||||
& > a {}
|
||||
}
|
||||
```
|
||||
|
||||
```scss
|
||||
p {
|
||||
& .class {}
|
||||
}
|
||||
```
|
||||
|
||||
```scss
|
||||
p {
|
||||
& + .foo {}
|
||||
}
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```scss
|
||||
p {
|
||||
&.foo {}
|
||||
}
|
||||
```
|
||||
|
||||
```scss
|
||||
p {
|
||||
.foo > & {}
|
||||
}
|
||||
```
|
||||
|
||||
```scss
|
||||
p {
|
||||
&,
|
||||
.foo,
|
||||
.bar {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user