Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created June 10, 2015 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/1b9a17bbf235a7557a0e to your computer and use it in GitHub Desktop.
Save lonekorean/1b9a17bbf235a7557a0e to your computer and use it in GitHub Desktop.
Checkbox trickery, ordering with flexbox
.items {
display: flex;
flex-direction: column;
}
.done {
order: 1;
}
input:checked + label {
order: 2;
}
.undone {
order: 3;
}
label {
order: 4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment