Skip to content

Instantly share code, notes, and snippets.

@fribibb
Created April 2, 2018 23:29
Show Gist options
  • Save fribibb/b86cb5a6001d5922c87ecbe3d3538c07 to your computer and use it in GitHub Desktop.
Save fribibb/b86cb5a6001d5922c87ecbe3d3538c07 to your computer and use it in GitHub Desktop.
<!-- From https://codepen.io/thomashigginbotham/pen/aYqvqQ -->
<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
body {
font-family: 'Open Sans', sans-serif;
}
details {
margin: 1rem;
}
summary {
font-weight: bold;
list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/right-arrow.svg);
}
details[open] summary {
list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/down-arrow.svg);
}
summary::-webkit-details-marker {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/right-arrow.svg);
color: transparent;
}
details[open] summary::-webkit-details-marker {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/down-arrow.svg);
}
</style>
<details>
<summary>What is the population of New Orleans?</summary>
According to 2010 Census Bureau estimates, New Orleans' population is made up of approximately 343,829 residents.
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment