72 lines
1.1 KiB
CSS
72 lines
1.1 KiB
CSS
.faq {
|
|
max-width: 38rem;
|
|
padding: 2rem 0;
|
|
margin: 0 auto;
|
|
|
|
h2 {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
margin: 0 0 2rem 0;
|
|
}
|
|
|
|
details {
|
|
border: .1rem solid var(--w-color);
|
|
border-bottom: none;
|
|
scroll-margin-top: 5.25rem;
|
|
|
|
p {
|
|
font-size: 1.1rem;
|
|
font-weight: 300;
|
|
line-height: 1.65rem;
|
|
padding: 0 2.5rem 1.5rem 1.5rem;
|
|
margin: 0;
|
|
}
|
|
|
|
&:first-of-type {
|
|
border-radius: .375rem .375rem 0 0;
|
|
}
|
|
|
|
&:last-of-type {
|
|
border: .1rem solid var(--w-color);
|
|
border-radius: 0 0 .375rem .375rem;
|
|
}
|
|
|
|
&[open] {
|
|
min-height: 4rem;
|
|
|
|
.icon-chevron-up {
|
|
display: initial;
|
|
transition: .3s ease;
|
|
}
|
|
|
|
.icon-chevron-down {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
summary {
|
|
font-weight: 600;
|
|
line-height: 1.5rem;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
summary {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&::-webkit-details-marker {
|
|
display: none
|
|
}
|
|
}
|
|
|
|
.icon-chevron-up {
|
|
display: none;
|
|
}
|
|
} |