-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
- #369
Comments
I think this would fit better as at-rules since I usually find myself writing this kinds of things outside my config file. I like the idea of introducing something like spacing to be able to share the same spacing values between margins (both positive and negative) and paddings (à la Tachyons) but I'm not sure most people would want this if it hasn't been yet discussed or PR'd (not sure about this though). Also not sure if you made a mistake here or I simply don't understand how toggling between first/last would work: So Just my two cents. Looking forward to everyone else's opinion on this. Somewhat related to this (media queries and pseudo selectors) #313 #355. |
Interesting thought. I find myself constantly adding conditional classes in VueJS. |
What I meant is that I don't see why should we add this and only use it to add margins to child elements. I feel this would be much more useful as at-rules to use with pseudo-selectors to Together with
Again, I still don't understand how I would probably go for something more like |
I think the most "Tailwind" way to handle this would be adding new prefixes for targeting children like @hacknug mentioned. I'd probably want it to work like this: <div class="children:mb-4 last-child:mb-0">
...
</div> I'm still trying to get over my fear of bloating the living hell out of the CSS so I'm hesitant to add this right now, but I do like the idea. The main question I have with this stuff is how it all plays with other state variants. Do we need to support Regarding the .spaced-y-4 {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
.spaced-x-4 {
margin-right: 1rem;
&:last-child {
margin-right: 0;
}
} ...instead of having specific versions for top, bottom, left, and right. Seems like just an implementation detail of what you're really trying to do which is either "space these items vertically" or "space these items horizontally". |
Thought on this: the Flexbox Level 2 Spec will bring Grid’s |
@aparajita What happened? Why did you remove all your issues/comments from this repo? |
No description provided.
The text was updated successfully, but these errors were encountered: