Skip to content

Instantly share code, notes, and snippets.

@Marfa
Created August 18, 2014 03:37
Show Gist options
  • Save Marfa/48ac0608bfb48a1c6008 to your computer and use it in GitHub Desktop.
Save Marfa/48ac0608bfb48a1c6008 to your computer and use it in GitHub Desktop.
.spoiler {
display: block;
width: 200px;
border: #ccc solid 1px;
}
.spoiler > .title {
display: block;
padding: 4px;
}
.spoiler > .body {
padding: 4px;
border-top: #ccc solid 1px;
display: none;
}
.spoiler > :checked ~ .body {
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment