2024-04-27 03:23:05 -05:00
|
|
|
.accordion {
|
|
|
|
width: 100%;
|
2024-04-27 10:26:54 -05:00
|
|
|
border-radius: 20px;
|
|
|
|
background-color: #333;
|
2024-04-27 03:23:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item {
|
2024-04-27 10:26:54 -05:00
|
|
|
margin: 10px;
|
2024-04-27 03:23:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item label {
|
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item .accordion-content {
|
|
|
|
max-height: 0;
|
|
|
|
overflow: hidden;
|
2024-04-27 10:26:54 -05:00
|
|
|
transition: max-height 0.2s ease;
|
|
|
|
background-color: #222;
|
2024-04-27 03:23:05 -05:00
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item input:checked ~ .accordion-content {
|
2024-04-27 10:26:54 -05:00
|
|
|
max-height: 100%; /* You can adjust this value depending on your content */
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.accordion-item input:checked > .accordion-title img:first-child {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
.accordion-title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|