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