Last active
March 12, 2022 22:48
-
-
Save crisdux/bb89a62ab2f3f1c3337e13e1a9227284 to your computer and use it in GitHub Desktop.
01. details-summary-styles
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{ | |
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; | |
} |
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>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