homepage/src/components/accordion.module.css

39 lines
504 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;
}
2020-01-23 21:06:44 +00:00
input:focus + label {
border: 1px dotted white;
}
input {
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
2020-01-14 19:55:53 +00:00
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;
}