angular-material-accordion
Version:
A simple angular directive for adding accordion UI element
38 lines (32 loc) • 655 B
CSS
.collapsible-item .icon {
float: right;
height: 20px;
width: 20px;
font-size: 19px ;
padding-right: 1px;
}
.collapsible-item .iconleft {
float: left ;
}
.accordion-title {
cursor: pointer;
}
.accordion-title:focus {
outline: none;
}
.collapsible-item .body {
position: relative;
top: -4px;
max-height: 0;
overflow: hidden;
border-top: 0;
z-index: -1;
-webkit-transition: max-height 0.5s ease;
-moz-transition: max-height 0.5s ease;
-o-transition: max-height 0.5s ease;
transition: max-height 0.5s ease;
}
.collapsible-item.open .body {
max-height: 1000px;
z-index: 1;
}