Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle pseudo elements like :before #1

Open
TheJaredWilcurt opened this issue Sep 13, 2021 · 0 comments
Open

Handle pseudo elements like :before #1

TheJaredWilcurt opened this issue Sep 13, 2021 · 0 comments
Labels
blocker Prevents other issues from being started help wanted Extra attention is needed

Comments

@TheJaredWilcurt
Copy link
Member

TheJaredWilcurt commented Sep 13, 2021

We're handling psuedo classes already (.thing:hover), but not psuedo elements (.thing:before).

Probably something like this:

.cow {
    padding: 10px;
}
.cow:before {
    content: '';
    background: #F00;
}
.rp__padding__--COLON10px { padding: 10px }
.rp__content__--COLON__--SINGLEQUOTE__--SINGLEQUOTE___--BEFORE:before { content: '' }
.rp__background__--COLON__--OCTOTHORPF00___--BEFORE:before { background: #F00 }
.rp__a { padding: 10px }
.rp__b:before { content: '' }
.rp__c:before { background: #F00 }

Should support all pseudo elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Prevents other issues from being started help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant