Skip to content

Instantly share code, notes, and snippets.

@carbone
Last active February 14, 2018 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbone/e9739075b62552f663b0254febc8db9a to your computer and use it in GitHub Desktop.
Save carbone/e9739075b62552f663b0254febc8db9a to your computer and use it in GitHub Desktop.
Add this to custom-fields-accordions.scss.css
#custom-fields-accordion .accordion, .accordion * {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
#custom-fields-accordion .accordion-section {
border-top: 1px solid #dcdcdc;
position: relative;
}
#custom-fields-accordion .accordion-section:last-child {
border-bottom: 1px solid #dcdcdc;
}
#custom-fields-accordion .accordion-section-content {
display:none;
padding-bottom: 15px;
}
#custom-fields-accordion .accordion-section-title {
width:100%;
display:inline-block;
font-size:1.200em;
border: 0 !important;
padding: 0px;
line-height: 3;
}
#custom-fields-accordion a.accordion-section-title:after {
width: 8px;
height: 8px;
border-right: 1px solid #4a6e78;
border-bottom: 1px solid #4a6e78;
position: absolute;
right: 10px;
content: " ";
top: 25px;
transform: rotate(-45deg);
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
#custom-fields-accordion a.active.accordion-section-title:after {
transform: rotate(45deg);
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment