/*
Disable colored syntax highlighting in code blocks.
Works with/without Pygments or other highlighters.
*/

pre code,
.codehilite,
.codehilite pre,
.highlight,
.highlight pre {
  color: inherit;
}

.codehilite span,
.highlight span {
  color: inherit !important;
  background: none !important;
  font-weight: inherit !important;
  font-style: inherit !important;
}

/*
ReadTheDocs theme + Pygments often wraps code blocks as:
  div.highlight > pre > code
Both the theme and the highlighter can apply borders/padding, which may
result in a “double box”. Keep a single box by removing the wrapper styling.
*/
.highlight,
.codehilite {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.highlight pre,
.codehilite pre {
  margin: 0 !important;
}
