Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add color indicators depending on presence of its content
.compare-sidebar
[data-text-binding-target$="compare2"]:not(:empty):before,
[data-text-binding-target$="compare3"]:not(:empty):before
display: inline-block
width: 1em
height: 1em
margin:
left: -1.2em
right: .2em
bottom: -0.1em
content: ' '
[data-text-binding-target$="compare2"]:before
background-color: $compare-color1
[data-text-binding-target$="compare3"]:before
background-color: $compare-color2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.