Created
September 22, 2018 19:41
-
-
Save localghost666/576858a721bc58030f1109b182088a36 to your computer and use it in GitHub Desktop.
<details>를 열고 닫는 마커를 ➕와 ➖로 바꾸는 경우
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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