homepage/src/components/accordion.module.css

39 lines
504 B
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.header {
background-color: #14284c;
padding: 1em;
margin: 1.5em 0;
font-weight: bold;
display: flex;
justify-content: space-between;
}
label:after {
content: "";
right: 1em;
}
input:focus + label {
border: 1px dotted white;
}
input {
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
input:checked + label:after {
content: "∧";
}
.content {
margin-bottom: 1.5em;
padding: 0 2em;
display: none;
}
input:checked ~ .content {
display: block;
}