Hide line-number in console/terminal snippet.

This commit is contained in:
Cotes Chung 2019-11-03 15:21:18 +08:00
parent 14342742ce
commit 79b5f51eb5

View file

@ -148,11 +148,15 @@ td.rouge-code {
border-radius: 5px;
}
/* Hide line numbers for code snippets without specific language */
div[class^='highlighter-rouge'] pre.lineno {
/* Hide line numbers for defualt, console, and terminal code snippets */
div[class^='highlighter-rouge'] pre.lineno,
div.language-console.highlighter-rouge pre.lineno,
div.language-terminal.highlighter-rouge pre.lineno {
display: none;
}
div[class^='highlighter-rouge'] td.rouge-code {
div[class^='highlighter-rouge'] td.rouge-code,
div.language-console.highlighter-rouge td.rouge-code,
div.language-terminal.highlighter-rouge td.rouge-code {
padding: .8rem 1rem;
}