Skip to content

Instantly share code, notes, and snippets.

@crisdux
Last active March 12, 2022 22:48
Show Gist options
  • Save crisdux/bb89a62ab2f3f1c3337e13e1a9227284 to your computer and use it in GitHub Desktop.
Save crisdux/bb89a62ab2f3f1c3337e13e1a9227284 to your computer and use it in GitHub Desktop.
01. details-summary-styles
details{
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
padding: 1em 1em ;
border-radius: 5px;
}
summary {
font-weight: bold;
cursor: pointer;
margin: -1em -.5em 0;
padding: .5em;
}
details[open]{
padding:1em;
}
details[open] summary {
margin-bottom: .5em;
}
<details>
<summary>Cual es mi nombre?</summary>
<p>Cristian Fernando Villca Gutierrez</p>
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment