Adding padding/margin that is 3 sided #65
Unanswered
anastasialanz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Interesting. I’ve not come across needing this. It feels a little edge-case to me to create a set of classes. I lean more toward fixing the problem you were tying by applying all sides and then changing one. I think this is a cascade issue, and I feel like it does make sense to change this order to be The thing is this can be done without making a change to Sparkle. The map can be setup in the individual project settings to become:
This would result in the desired cascade. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If we wanted to add padding values for 3 sides, what is the best way that we would approach this using Sparkle?
sparkle/globals/sides/_map.scss
Lines 1 to 9 in ee905da
Sparkle gives us default values for a single side,
all
,vrt
, andhrz
.Should I add a new value to the map to handle padding for top/bottom + hrz or left/right + vrt?
One way this could be solved is by combining two of the existing side options, but if I try to use
util-pad-all-md
andutil-pad-btm-none
,util-pad-all-md
overrides the second class.Beta Was this translation helpful? Give feedback.
All reactions