From 992a703fbe4f0b5bdf487906e618b375d42d81e0 Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Mon, 28 Oct 2019 09:25:57 -0700 Subject: [PATCH] Fixes a problem caused by there being two ways of indicating reStructuredText code blocks: (#883) * rst * rest Now both are handled gracefully. Signed-off-by: Kevin Putnam --- .../_themes/otc_tcs_sphinx_theme/static/tcs_theme.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css index 5bc7e7a4..bd3dbde0 100644 --- a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css +++ b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css @@ -374,7 +374,16 @@ div.highlight-console .highlight:before{ white-space: pre; } -div.highlight-rst, div.highlight-rest .highlight:before{ +div.highlight-rst .highlight:before{ + background: #909090; + color: white; + content: " reStructuredText "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-rest .highlight:before{ background: #909090; color: white; content: " reStructuredText ";