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

33 lines
569 B
CSS
Raw Normal View History

2019-03-28 13:40:46 +00:00
.accordion {
color: #495057;
}
2019-03-28 13:30:22 +00:00
.accordion__label {
position: relative;
display: inline-block;
padding-left: 25px;
cursor: pointer;
2019-03-28 13:40:46 +00:00
user-select: none;
2019-03-28 13:30:22 +00:00
}
.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;
}