Skip to content

Commit

Permalink
Merge pull request #160 from seqeralabs/EDU-269-adjust-details-styling
Browse files Browse the repository at this point in the history
Adjust details styling
  • Loading branch information
jason-seqera authored Aug 12, 2024
2 parents 4b48486 + 14dbfc0 commit f4b4083
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/css/misc.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,31 @@ Material Design Icons (SVG)
vertical-align: middle;
margin: -4px;
}

/* Inject theme-specific styling for <details> elements */
[data-theme='light'] {
--details-bg: #fff;
--details-code-bg: rgb(246, 247, 248);
}

[data-theme='dark'] {
--details-bg: rgb(25, 60, 71);
--details-code-bg: var(--ifm-code-background);
}

details {
background-color: var(--details-bg) !important;
border-top-width: 0 !important;
border-bottom-width: 0 !important;
border-right-width: 0 !important;
border-left-width: 5px !important;
}

details.alert > div > div {
border-top: 1px solid #000 !important;
}

details.alert code {
/* var(--ifm-code-background) */
background-color: var(--details-code-bg);
}

0 comments on commit f4b4083

Please sign in to comment.