badguardhome/client/src/components/ui/Accordion.css

30 lines
550 B
CSS
Raw Normal View History

2019-03-28 13:30:22 +00:00
.accordion__label {
position: relative;
display: inline-block;
padding-left: 25px;
color: #495057;
cursor: pointer;
}
.accordion__label:after {
content: "";
position: absolute;
top: 7px;
left: 0;
width: 17px;
height: 10px;
background-image: url("./svg/chevron-down.svg");
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
}
.accordion__label--open:after {
transform: rotate(180deg);
}
.accordion__content {
padding-top: 5px;
color: #495057;
}