Line 301: | Line 301: | ||
} | } | ||
− | |||
.accordion { | .accordion { | ||
background-color: #eee; | background-color: #eee; | ||
Line 315: | Line 314: | ||
} | } | ||
− | . | + | .active, .accordion:hover { |
background-color: #ccc; | background-color: #ccc; | ||
} | } | ||
Line 327: | Line 326: | ||
} | } | ||
− | . | + | .active:after { |
content: "\2212"; | content: "\2212"; | ||
} | } |
Revision as of 11:28, 6 September 2018
Notebook
In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.