Skip to content

Instantly share code, notes, and snippets.

@wpflames
Created April 11, 2022 10:16
Show Gist options
  • Select an option

  • Save wpflames/3753f04725f75600e7a037e24770fbe4 to your computer and use it in GitHub Desktop.

Select an option

Save wpflames/3753f04725f75600e7a037e24770fbe4 to your computer and use it in GitHub Desktop.
Accordion styling
// Accordion
// ************************
.accordion-item{
.accordion-title{
border-bottom: 1px solid;
padding: 15px 15px 10px;
background: rgba(218,217,234,1);
cursor: pointer;
transition: all 0.3s ease-in-out;
&:hover{
background: rgba(218,217,234,.6);
padding-left: 25px;
}
}
.accordion-panel{
display: none;
&.active{
display: block;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment