Skip to content

Instantly share code, notes, and snippets.

@nkpgardose
Created May 27, 2016 02:50
Show Gist options
  • Save nkpgardose/2160141607f98f74f86679fde1d914b7 to your computer and use it in GitHub Desktop.
Save nkpgardose/2160141607f98f74f86679fde1d914b7 to your computer and use it in GitHub Desktop.
.list {
  background-color: red;

  & .list-item {
    color: white;
    
    & .list-item-icon {
      margin-right: 5px;
    }
  }
}

.wh-list__icon {
  @extend .list-item-icon;
}

.wh-list__label {
 @extend .list-item;
}

This will bloat your css. Here the generated css result:

.list {
  background-color: red;
}
.list .list-item, .list .wh-list__label {
  color: white;
}
.list .list-item .list-item-icon, .list .wh-list__label .list-item-icon, .list .list-item .wh-list__icon, .list .wh-list__label .wh-list__icon {
  margin-right: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment