Last active
May 18, 2016 13:02
-
-
Save rutger1140/b2598ec5fe644ed44534aed14829093c to your computer and use it in GitHub Desktop.
LESS to SASS conversion - issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LESS | |
.form-field { | |
border: 1px solid #ccc; | |
padding: .5em 1em; | |
input& { | |
height: 2em; | |
} | |
textarea& { | |
height: auto; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SASS | |
.form-field { | |
border: 1px solid #ccc; | |
padding: .5em 1em; | |
@at-root input#{&} { | |
height: 2em; | |
} | |
@at-root textarea#{&} { | |
height: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While converting some code I ran into this issue.
The @at-root selector helped me out, but this doesn't feel like the way to do it.