Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/lessc/selectors.lint-test
| Show All 35 Lines | |||||
| .foo { | .foo { | ||||
| .bar, .baz { | .bar, .baz { | ||||
| & .qux { | & .qux { | ||||
| display: block; | display: block; | ||||
| } | } | ||||
| .qux & { | .qux & { | ||||
| display: inline; | display: inline; | ||||
| } | } | ||||
| .qux& { | .qux& { | ||||
| display: inline-block; | display: inline-block; | ||||
| } | } | ||||
| .qux & .biz { | .qux & .biz { | ||||
| display: none; | display: none; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| .b { | .b { | ||||
| &.c { | &.c { | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| .red { | .red { | ||||
| #@{theme}.@{theme}&.black { | #@{theme}.@{theme}&.black { | ||||
| color:black; | color:black; | ||||
| } | } | ||||
| } | } | ||||
| @num: 3; | @num: 3; | ||||
| :nth-child(@{num}) { | :nth-child(@{num}) { | ||||
| selector: interpolated; | selector: interpolated; | ||||
| } | } | ||||
| .test { | .test { | ||||
| &:nth-child(odd):not(:nth-child(3)) { | &:nth-child(odd):not(:nth-child(3)) { | ||||
| color: #ff0000; | color: #ff0000; | ||||
| } | } | ||||
| } | } | ||||
| [prop], | [prop], | ||||
| [prop=10%], | [prop=10%], | ||||
| Show All 23 Lines | |||||