Created
January 24, 2022 20:43
-
-
Save sadewole/2cddeffb7d88f35d8e878e0a1369627f to your computer and use it in GitHub Desktop.
AccordionItem.vue - Styles
This file contains hidden or 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
<style scoped> | |
.accordionItem { | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.accordionItem__header { | |
width: 100%; | |
text-align: center; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
font-size: 13px; | |
font-weight: 600; | |
font-style: normal; | |
line-height: 42px; | |
} | |
.accordionItem__content { | |
overflow: hidden; | |
box-sizing: border-box; | |
height: auto; | |
max-height: 0; | |
transition: max-height 0.5s ease-in-out; | |
} | |
.accordionItem__content.-open { | |
max-height: 300rem; | |
} | |
.h-p-5 { | |
padding: 5px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment