Reviewers: #reviewers Subscribers: jenkins-user Differential Revision: https://hub.sealcode.org/D1598
152 lines
2.3 KiB
CSS
152 lines
2.3 KiB
CSS
.faq-component {
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
.container {
|
|
max-width: 1224px;
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 32px;
|
|
color: var(--color-brand-text-accent);
|
|
line-height: 38.3px;
|
|
}
|
|
|
|
.answer {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.answer p {
|
|
margin-top: 0;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.title-container {
|
|
text-align: center;
|
|
display: grid;
|
|
gap: 16px;
|
|
|
|
.content {
|
|
p {
|
|
display: inline;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
&.color-normal p {
|
|
color: var(--color-brand-text-fg);
|
|
|
|
a {
|
|
color: var(--color-brand-link-fg);
|
|
}
|
|
}
|
|
|
|
&.color-accent p {
|
|
color: var(--color-brand-text-accent);
|
|
|
|
a {
|
|
color: var(--color-brand-link-on-accent);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.title-container strong {
|
|
white-space: nowrap;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.faq-container {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.question-container {
|
|
display: grid;
|
|
border-radius: 10px;
|
|
padding: 0 16px;
|
|
gap: 16px;
|
|
|
|
&.question-container--accent {
|
|
background-color: var(--color-brand-accent);
|
|
color: var(--color-brand-text-on-accent);
|
|
}
|
|
|
|
&.question-container--accent2 {
|
|
background-color: var(--color-brand-accent2);
|
|
color: var(--color-brand-text-on-accent2);
|
|
}
|
|
}
|
|
|
|
.question {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
padding: 16px 0;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.question::after {
|
|
content: "\276C";
|
|
display: inline-block;
|
|
margin-left: 5px;
|
|
transform: rotate(-90deg);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.question-container[open] > .question::after {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button {
|
|
text-align: center;
|
|
background-color: var(--color-brand-accent2);
|
|
color: var(--color-brand-text-on-accent2);
|
|
font-size: 16px;
|
|
text-decoration: none;
|
|
padding: 8px 24px 8px 24px;
|
|
border-radius: 25px;
|
|
line-height: 24px;
|
|
}
|
|
}
|
|
|
|
@container (width < 500px) {
|
|
.faq-component {
|
|
.title {
|
|
font-size: 28px;
|
|
line-height: 33.52px;
|
|
}
|
|
|
|
.question {
|
|
font-size: 14px;
|
|
line-height: 21px;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.answer p {
|
|
font-size: 14px;
|
|
line-height: 21px;
|
|
}
|
|
|
|
.container {
|
|
gap: 24px;
|
|
}
|
|
|
|
.question-container {
|
|
gap: 8px;
|
|
}
|
|
}
|
|
}
|