Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

Mixin for: adding property to element but zeroing that property on last child. #10

Open
wjdp opened this issue Dec 5, 2014 · 0 comments
Labels

Comments

@wjdp
Copy link
Member

wjdp commented Dec 5, 2014

This is often done (for example, to add space between inline-block or floated elements but to prevent the last from having orphaned space)

element
  margin-right: 3px
  &:last-child
    margin-right: 0

Looking to replace that with something like:

element
  @include all-but-last-child(margin-right, 3px)
@wjdp wjdp added the feature label Dec 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant