Skip to content

Instantly share code, notes, and snippets.

@hauber
Last active December 12, 2015 20:13
Show Gist options
  • Save hauber/c4656b79098b4c5e6bf4 to your computer and use it in GitHub Desktop.
Save hauber/c4656b79098b4c5e6bf4 to your computer and use it in GitHub Desktop.
Color every second task in CheckVist. Each sublist starts with the same color, i. e. the first and/or the last subtask might have the same color than the previous/following task one level up.
/* set the background-color for every second task */
li.task:nth-of-type(2n+1) > div.coreDiv {
background-color: darkgray;
}
li.task:nth-of-type(2n) > div.coreDiv {
background-color: lightgray;
}
/* active selection should remain visible */
li.selectedTask > div.coreDiv {
background-color: lightgoldenrodyellow !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment