This is separate from the already existing spacing utilities.
I would like to request a Utility for adding a class to parent elements that pad the child elements accordingly. Like cellpadding for tables.
A simple concept would be to use pad-0 pad-1 pad-2 pad-3 pad-4 pad-5
Also include padx- and pady-
These classes should just add a margin to the inner elements and a negative from the parent.
I can see that maybe 'pad' is not the best as it might get confused with 'p' spacing utility, but something similar is fine.
This is great for Spacing between toolbar items, buttons rows, image grids, paginations, etc and it matches the existing spacing utility sizes so everything looks good together.
Here is what I have been using in my projects and has been working great:
This is separate from the already existing spacing utilities. I would like to request a Utility for adding a class to parent elements that pad the child elements accordingly. Like cellpadding for tables.
A simple concept would be to use
pad-0 pad-1 pad-2 pad-3 pad-4 pad-5
Also includepadx-
andpady-
These classes should just add a margin to the inner elements and a negative from the parent. I can see that maybe 'pad' is not the best as it might get confused with 'p' spacing utility, but something similar is fine.This is great for Spacing between toolbar items, buttons rows, image grids, paginations, etc and it matches the existing spacing utility sizes so everything looks good together.
Here is what I have been using in my projects and has been working great: