Skip to content

Instantly share code, notes, and snippets.

@sadewole
Created January 24, 2022 20:43
Show Gist options
  • Save sadewole/2cddeffb7d88f35d8e878e0a1369627f to your computer and use it in GitHub Desktop.
Save sadewole/2cddeffb7d88f35d8e878e0a1369627f to your computer and use it in GitHub Desktop.
AccordionItem.vue - Styles
<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