-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow for :first-child #23
Comments
Oh yes this would be a good feature. But it is only necessary if you use Tailwind CSS,isn't it? In plain CSS you can define it by a selector. |
Would be awesome to do it in Tailwind though ;) |
@michaelmannucci classify.php
Or dou I understand you wish wrong? |
I believe that would style the first H2 on the page, regardless if it's the first-child of the div... so if you wanted to remove top-margin for the first H2, it wouldn't work if the first element isn't an H2. Also, your example doesn't seem to work for me... lol |
It would be great to be able to do something like:
h2:first-child' => 'mt-0',
So that the first element on the page has no top-margin, but does elsewhere. I tried it but it doesn't seem to work.
The text was updated successfully, but these errors were encountered: