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 9b13c2df..5bc7e7a4 100644 --- a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css +++ b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css @@ -343,4 +343,131 @@ div#trademarks { content: '$ '; } -/*End support for code blocks with $ signs that aren't copied with content*/ \ No newline at end of file +/*End support for code blocks with $ signs that aren't copied with content*/ + +/*Begin support for labeled code-blocks - need to add an entry for every type of code-block that needs to be labeled*/ + +div.highlight-powershell .highlight:before{ + background: #909090; + color: white; + content: " PowerShell "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-python .highlight:before{ + background: #909090; + color: white; + content: " Python "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-console .highlight:before{ + background: #909090; + color: white; + content: " Console "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-rst, div.highlight-rest .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-yaml .highlight:before{ + background: #909090; + color: white; + content: " yaml "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-bash .highlight:before{ + background: #909090; + color: white; + content: " bash "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-diff .highlight:before{ + background: #909090; + color: white; + content: " Diff "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-c .highlight:before{ + background: #909090; + color: white; + content: " c "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-json .highlight:before{ + background: #909090; + color: white; + content: " json "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-spec .highlight:before{ + background: #909090; + color: white; + content: " spec "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-perl .highlight:before{ + background: #909090; + color: white; + content: " Perl "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-php .highlight:before{ + background: #909090; + color: white; + content: " php "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.highlight-xml .highlight:before{ + background: #909090; + color: white; + content: " xml "; + font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; + font-size: 14px; + white-space: pre; +} + +div.linenodiv:before { /*add extra new line to make sure code and line numbers align*/ + content: '\00000a'; + white-space: pre; +} + +/*End support for labeled code-blocks*/ +