| 1 |
.simpletoc { |
| 2 |
margin-bottom: 1em; |
| 3 |
} |
| 4 |
|
| 5 |
.simpletoc-accordion-heading { |
| 6 |
margin: 0; |
| 7 |
} |
| 8 |
|
| 9 |
.simpletoc-collapsible { |
| 10 |
background-color: #eee; |
| 11 |
color: #444; |
| 12 |
cursor: pointer; |
| 13 |
padding: 18px; |
| 14 |
font-weight: 700; |
| 15 |
width: 100%; |
| 16 |
border: none; |
| 17 |
text-align: left; |
| 18 |
outline: none; |
| 19 |
font-size: 18px; |
| 20 |
border-radius: 5px; |
| 21 |
} |
| 22 |
|
| 23 |
.simpletoc-collapsible.active { |
| 24 |
border-bottom-right-radius: 0; |
| 25 |
border-bottom-left-radius: 0; |
| 26 |
} |
| 27 |
|
| 28 |
.simpletoc .active, |
| 29 |
.simpletoc-collapsible:hover { |
| 30 |
background-color: #ddd; |
| 31 |
} |
| 32 |
|
| 33 |
.simpletoc-collapsible .simpletoc-icon::after { |
| 34 |
content: "\02795"; /* Unicode character for "plus" sign (+) */ |
| 35 |
float: right; |
| 36 |
margin-left: 5px; |
| 37 |
font-size: 13px; |
| 38 |
} |
| 39 |
|
| 40 |
.simpletoc .active .simpletoc-icon::after { |
| 41 |
content: "\2796"; /* Unicode character for "minus" sign (-) */ |
| 42 |
} |
| 43 |
|
| 44 |
.simpletoc-content { |
| 45 |
padding: 0; |
| 46 |
background-color: #f1f1f1; |
| 47 |
overflow: hidden; |
| 48 |
transition: max-height 0.25s ease-in-out; |
| 49 |
display: block; /* Ensure the content is set to display */ |
| 50 |
max-height: 0; /* Initial state for collapsed content */ |
| 51 |
border-bottom-right-radius: 5px; |
| 52 |
border-bottom-left-radius: 5px; |
| 53 |
} |
| 54 |
|