love this trick!
maps combined with @each loops can also DRY up your code:
@each
$gutter-column-sizes: ( none: 0, sm: $unit / 6, md: $unit / 4, lg: $unit / 2, xl: $unit, ); @each $gutter-column-size-key, $gutter-column-size-value in $gutter-column-sizes { .gutter-column--#{$gutter-column-size-key} { padding-inline-start: $gutter-column-size-value; padding-inline-end: $gutter-column-size-value; } }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
love this trick!
maps combined with
@each
loops can also DRY up your code: