homepage/src/components/accordion.module.css

28 lines
369 B
CSS
Raw Normal View History

.header {
background-color: #14284c;
padding: 1em;
margin: 1.5em 0;
font-weight: bold;
display: flex;
justify-content: space-between;
}
2020-01-14 19:55:53 +00:00
label:after {
content: "";
right: 1em;
}
input:checked + label:after {
content: "∧";
}
.content {
margin-bottom: 1.5em;
padding: 0 2em;
2020-01-14 19:55:53 +00:00
display: none;
}
input:checked ~ .content {
display: block;
}