Skip to content

Instantly share code, notes, and snippets.

@localghost666
Created September 22, 2018 19:41
Show Gist options
  • Save localghost666/576858a721bc58030f1109b182088a36 to your computer and use it in GitHub Desktop.
Save localghost666/576858a721bc58030f1109b182088a36 to your computer and use it in GitHub Desktop.
<details>를 열고 닫는 마커를 ➕와 ➖로 바꾸는 경우
<details>
<summary>
<h3>Summary Title</h3>
<p>and summary description</p>
</summary>
<h3><a href="#">Item Title</a></h3>
<p>and item description</p>
</details>
h3 a {
display: block;
}
h3 + p {
margin-top: 0;
}
details summary::-webkit-details-marker {
display: none;
}
details summary::before {
content: "\2795";
float: right;
text-align: right;
margin-top: -.1rem;
}
details[open] summary:before {
content: "\2796";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment