Closed J-F-Liu closed 7 years ago
Your suggestion make sense.
Actually we have $width-gap
as a variable.
User may customize their $width-gap
then mt-15
will not be 15px
.
But gap
or double-gap
don't mean margin to top, maybe we can use mt-0
, mt-gap
, mt-double-gap
?
Any other ideas?
How about vertical-gap, vertical-big-gap? margin-top: 0 is the default value and margins are not inherited, so mt-0 is not require.
That sounds good :+1:
I'm going to rename it to top-gap
and top-gap-big
duo to following reasons:
top
is easily to type than vertical
, and more semantic than vertical
-- we only set margin-top
All variables need to be named as ${rule}-${element}-${modifier}
, so I put big
at endAdded top-gap-0
Use gap, double-gag or small-gap, big-gap. This is easier to understand and consistent with naming style of other class names. Furthermore, the gap height can be changed in variable and not equal to 15px.