From 79b5f51eb5cbac7d19e0e83ba612f22b491da3ee Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 3 Nov 2019 15:21:18 +0800 Subject: [PATCH] Hide line-number in console/terminal snippet. --- assets/css/_src/syntax.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/css/_src/syntax.scss b/assets/css/_src/syntax.scss index bbb82f0..d4a3224 100644 --- a/assets/css/_src/syntax.scss +++ b/assets/css/_src/syntax.scss @@ -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; }