Skip to content

Commit 5a97582

Browse files
committed
Docs: Added a workaround for Sphinx issue #695.
Should be reverted once https://bitbucket.org/birkenfeld/sphinx/issue/695 is fixed.
1 parent 0ba461d commit 5a97582

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/source/mongodbtheme/static/mongodb.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,19 @@ dl.class dd p:first { margin-top: 0; }
234234
#page-index .sphinxsidebar { display: none; }
235235
#page-index .bodywrapper { margin-left: 0; }
236236

237-
.highlight {
237+
.highlight, .highlight-python {
238+
background: #f1f2e9 !important;
239+
}
240+
:not(.highlight-python) > .highlight, .highlight-python {
238241
margin-top: 2px;
239242
margin-bottom: 2px;
240243
padding: 0 0.7em;
241-
background: #f1f2e9 !important;
242244
border: 1px solid #ccc;
243245
border-left: 0;
244246
border-right: 0;
245247
color: #442d22;
246248
}
247249
.highlight .go { color: #5c5c5c !important; } /* Generic.Output */
248-
249250
.highlight-none pre { white-space: pre-wrap; }
250251

251252

0 commit comments

Comments
 (0)