Skip to content

Commit

Permalink
chore: Fix FAQ accordion styling to follow SDS
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm committed Jan 17, 2025
1 parent ee5edbf commit afae8e8
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,21 @@ dl.class > dd > dl:nth-child(27) {

.czi-faq.admonition > summary.admonition-title {
background-color: var(--md-default-bg-color);
padding-left: 14px;
padding-left: 14px !important;
padding-top: 8px !important;
padding-bottom: 8px !important;
font-weight: 600;
}

.czi-faq.admonition > summary.admonition-title::before {
content: none;
margin-right: 10px;
}

.czi-faq.admonition > summary.admonition-title::after {
background-color: #6C6C6C;
}

.md-typeset .admonition, .md-typeset details {
border-radius: 0;
box-shadow: none;
Expand Down Expand Up @@ -381,21 +388,21 @@ div.czi-warning.admonition {

[data-md-color-scheme="slate"] {
div.czi-info.admonition,
div.czi-warning.admonition {
color: white !important;
}
.md-typeset .czi-info>.admonition-title,
.md-typeset .admonition.czi-info {
background-color: rgb(15, 29, 74); /* dark blue */
border-color: rgb(15, 29, 74) !important;
}
.md-typeset .czi-warning>.admonition-title,
.md-typeset .admonition.czi-warning {
background-color: rgb(54, 27, 7); /* dark brown */
border-color: rgb(54, 27, 7) !important;
}
div.czi-warning.admonition {
color: white !important;
}

.md-typeset .czi-info>.admonition-title,
.md-typeset .admonition.czi-info {
background-color: rgb(15, 29, 74); /* dark blue */
border-color: rgb(15, 29, 74) !important;
}

.md-typeset .czi-warning>.admonition-title,
.md-typeset .admonition.czi-warning {
background-color: rgb(54, 27, 7); /* dark brown */
border-color: rgb(54, 27, 7) !important;
}
}

.md-typeset .czi-info.admonition>p:not(.admonition-title),
Expand Down

0 comments on commit afae8e8

Please sign in to comment.