File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments