nex3/sass — Issue #218: Immediate parent selector
Author: shuber
Created: 2011-11-29 07:19:54+00:00
State: open

Since nested `&` references are fully resolved, what do you think about creating a selector like `&&` which references the immediate parent selector?

```scss
body.foo {
color: #eee;

.wrapper {
width: 980px;

#header && {
padding: 0 10px;
width: 960px;
}
}
}
```

```css
body.foo { color: #eee; }
body.foo .wrapper { width: 980px; }
body.foo #header .wrapper { padding: 0 10px; width: 960px; }
```