less.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.6, at build/shiki/samples/less.sample
| 1 | .button { |
| 2 | &-ok { |
| 3 | background-image: url("ok.png"); |
| 4 | } |
| 5 | &-cancel { |
| 6 | background-image: url("cancel.png"); |
| 7 | } |
| 8 | |
| 9 | &-custom { |
| 10 | background-image: url("custom.png"); |
| 11 | } |
| 12 | } |
| 13 | .link { |
| 14 | & + & { |
| 15 | color: red; |
| 16 | } |
| 17 | |
| 18 | & & { |
| 19 | color: green; |
| 20 | } |
| 21 | |
| 22 | && { |
| 23 | color: blue; |
| 24 | } |
| 25 | |
| 26 | &, &ish { |
| 27 | color: cyan; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // From https://lesscss.org/features/#parent-selectors-feature |
| 32 |