30 lines
553 B
CSS
30 lines
553 B
CSS
|
.accordion {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.accordion-item {
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
.accordion-item input {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.accordion-item label {
|
||
|
display: block;
|
||
|
background-color: #f0f0f0;
|
||
|
padding: 10px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.accordion-item .accordion-content {
|
||
|
max-height: 0;
|
||
|
overflow: hidden;
|
||
|
transition: max-height 0.2s ease-out;
|
||
|
background-color: #e0e0e0;
|
||
|
padding: 0 10px;
|
||
|
}
|
||
|
|
||
|
.accordion-item input:checked ~ .accordion-content {
|
||
|
max-height: 100px; /* You can adjust this value depending on your content */
|
||
|
}
|