subesokun / atom-tree-view-git-status

Shows the Git repository status in the Atom tree-view
MIT License
24 stars 2 forks source link

Add branch label as a CSS class to the corresponding DOM element #36

Closed mpsq closed 7 years ago

mpsq commented 7 years ago

This enable custom styling based on the branch name.

Example: when you have a big list of projects you might want to add a:

.branch-label:not(.master) {
  color: orange;
}

Class to your styles.less to automatically see which project is on a [branch] and which project is on [master].

mpsq commented 7 years ago

That's great! Thank you :)

subesokun commented 7 years ago

FYI I've changed the implementation a little bit to make it more generic :) See https://github.com/subesokun/atom-tree-view-git-status#css-branch-styling