Hyperline / hyperline

✨ Status line plugin for Hyper ✨
MIT License
619 stars 120 forks source link

Add targetable divs for plugins #170

Open slnt opened 5 years ago

slnt commented 5 years ago

It would be nice to be able to target each plugin so that they can be separately styled.

Currently I am doing:

.wrapper {
  padding-left: 5px;
  padding-right: 20px;

  :nth-child(
    color: #8FBCBB;
  }
  :nth-child(3) {
    color: #81A1C1;
  }
  :nth-child(4) {
    color: #88C0D0;
  }
  :nth-child(5) {
    color: #A3BE8C;
  }
}

which is really awkward, and also doesn't work if I use :first-child.

Being able to target a div for the cpu text, rather than the kind of hacky nth-child would be super great.