Skip to content

Commit f4b4083

Browse files
authored
Merge pull request #160 from seqeralabs/EDU-269-adjust-details-styling
Adjust details styling
2 parents 4b48486 + 14dbfc0 commit f4b4083

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/css/misc.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,31 @@ Material Design Icons (SVG)
9494
vertical-align: middle;
9595
margin: -4px;
9696
}
97+
98+
/* Inject theme-specific styling for <details> elements */
99+
[data-theme='light'] {
100+
--details-bg: #fff;
101+
--details-code-bg: rgb(246, 247, 248);
102+
}
103+
104+
[data-theme='dark'] {
105+
--details-bg: rgb(25, 60, 71);
106+
--details-code-bg: var(--ifm-code-background);
107+
}
108+
109+
details {
110+
background-color: var(--details-bg) !important;
111+
border-top-width: 0 !important;
112+
border-bottom-width: 0 !important;
113+
border-right-width: 0 !important;
114+
border-left-width: 5px !important;
115+
}
116+
117+
details.alert > div > div {
118+
border-top: 1px solid #000 !important;
119+
}
120+
121+
details.alert code {
122+
/* var(--ifm-code-background) */
123+
background-color: var(--details-code-bg);
124+
}

0 commit comments

Comments
 (0)