If you've been using Sass for any length of time, then you're likely to be familiar with being able to reference parent selectors using the ampersand (&) character.
A simple Sass example looks like this:
h3
font-size: 20px
margin-bottom: 10px
&.some-selector
font-size: 24px
margin-bottom: 20px
And here's how the output CSS looks.
h3 {
font-size: 20px;
margin-bottom: 10px;
}
h3.some-selector {
font-size: 24px;
margin-bottom: 20px;
}
So, in your case, you will get this following code:
.input-helper {
position: relative;
display: inline-block;
margin-bottom: 5px;
}
And
.input-helper:before{
content: '';
display: block;
position: absolute;
}
}
See more information