Skip to content

Commit 4d8a2cb

Browse files
committed
Leave plain listing blocks alone
1 parent ad0f1c3 commit 4d8a2cb

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

doc/supplemental-ui/css/site-extra.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,40 @@ code.hljs-inline {
132132
border-radius: 3px !important;
133133
font-size: 0.85em !important;
134134
}
135+
136+
/* Plain listing blocks (output blocks without syntax highlighting) */
137+
.doc .listingblock:not(:has(.hljs)) > .content > pre,
138+
.doc .listingblock > .content > pre:not(.highlight),
139+
.doc .literalblock > pre {
140+
background-color: #f8f9fa !important; /* Light background */
141+
color: #24292e !important; /* Dark text */
142+
border: 1px solid #e1e4e8 !important;
143+
border-radius: 6px !important;
144+
padding: 1rem !important;
145+
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
146+
font-size: 0.875rem !important;
147+
line-height: 1.5 !important;
148+
}
149+
150+
/* Ensure text in plain blocks is dark */
151+
.doc .listingblock:not(:has(.hljs)) code,
152+
.doc .literalblock code {
153+
color: #24292e !important; /* Dark text */
154+
background: transparent !important;
155+
}
156+
157+
/* Alternative: Target blocks that come after "Expected Output:" text */
158+
.paragraph:has(> p:contains("Expected Output")) + .listingblock > .content > pre {
159+
background-color: #f8f9fa !important;
160+
color: #24292e !important;
161+
border: 1px solid #d73a49 !important; /* Red border for output */
162+
}
163+
164+
/* If the blocks have a specific role or class, use this more specific selector */
165+
.listingblock.output > .content > pre,
166+
.listingblock .content > pre.output {
167+
background-color: #fafbfc !important;
168+
color: #24292e !important;
169+
border-left: 4px solid #28a745 !important; /* Green left border */
170+
border-radius: 4px !important;
171+
}

0 commit comments

Comments
 (0)