Skip to content

Instantly share code, notes, and snippets.

@zhjgithub
Created June 20, 2017 11:21
Show Gist options
  • Save zhjgithub/ecda3c68ecc73a53baa9baf24892423a to your computer and use it in GitHub Desktop.
Save zhjgithub/ecda3c68ecc73a53baa9baf24892423a to your computer and use it in GitHub Desktop.
li {
list-style-type: none;
position: relative;
margin: 2px;
padding: 0.5em 0.5em 0.5em 2em;
background: lightgrey;
font-family: sans-serif;
}
li.done {
background: #CCFF99;
}
li.done::before {
content: '';
position: absolute;
border-color: #009933;
border-style: solid;
border-width: 0 0.3em 0.25em 0;
height: 1em;
top: 1.3em;
left: 0.6em;
margin-top: -1em;
transform: rotate(45deg);
width: 0.5em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment