css - Using & inside Less mixins -


here mixin code

.bleed() {     &:before, &:after {         content: " ";         width: 3%;         height: 100%;         display: block;         .horizontal-gradient(none, #000, rgba(0,0,0,0.0));         float: left;     }      &:after {         .horizontal-gradient(none, rgba(0,0,0,0.0), #000);         float: right;     } } 

here code i'm calling from.

.my-class {    .bleed(); } 

i'm hoping there way thing .bleed(&); pass current selector mixin? right crashing , not creating css.

the code work is. there spelling mistake locally.


Comments