Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate declaration of margin-left with gallery() mixin #580

Open
ntucakovic opened this issue Mar 23, 2016 · 1 comment
Open

Duplicate declaration of margin-left with gallery() mixin #580

ntucakovic opened this issue Mar 23, 2016 · 1 comment

Comments

@ntucakovic
Copy link

This is pretty harmless issue, except it's triggering my CSS Lint errors for no obvious reason.

Apparently, if I use gallery(# of #), first child of the class where mixin is applied has duplicate declaration.

This is example code that I've found on codepen while looking for solution, it has the same issue as I'm describing. Inspect first element in row on both of the rows, it has same duplication problem.

This is the code generated on first element in row:

  margin-left: 0;
  margin-right: -100%;
  clear: both;
  margin-left: 0;

I guess this can be tagged as an improvement. In meantime, I'll be looking at some post-css script to remove duplication, because CSS Lint is giving me troubles because of this.

@mirisuzanne
Copy link
Member

Thanks for letting us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants