nex3/sass — Issue #309: Intelligent removal of duplicate properties when compiling
Author: necolas
Created: 2012-03-05 21:57:33+00:00
State: open

Would be great to not have duplicate properties output in the compiled CSS, as they currently are:

![](http://cloud.gf3.ca/Elps)

This would be good for including defaults in mixin that you can override later. Simple example:

```
@mixin btn-template {
position: relative;
display: inline-block;
padding: 5px;
border: 1px solid #ccc;
margin: 0;
text-align: center;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
}

.btn {
@include btn-template();
padding: 5px 10px;
border: 2px solid #555
```

...the CSS produced from this would include 2 `padding` and 2 `border` declarations, where you'd prefer to only have one of each.