I have not been using SASS for a very long time and wanted to know if there are some issues with pseudo-elements such as :first-child or :last-child ?
I have not been using SASS for a very long time and wanted to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While @Andre is correct that there are issues with pseudo elements and their support, especially in older (IE) browsers, that support is improving all the time.
As for your question of, are there any issues, I’d say I’ve not really seen any, although the syntax for the pseudo-element can be a bit tricky, especially when first sussing it out. So:
which compiles as one would expect:
I haven’t seen any documentation on any of this, save for the statement that “sass can do everything that css can do.” As always, with Haml and SASS the indentation is everything.