Skip to content

Instantly share code, notes, and snippets.

@Marfa
Created August 18, 2014 03:37
Embed
What would you like to do?
.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