From 1f5ece26349b6f79f0ed4119085917f94f92688f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 13 Aug 2020 07:19:23 -0300 Subject: Create Jekyll hook to add anchors to code block lines --- styles.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'styles.css') diff --git a/styles.css b/styles.css index 8f00c9f..5d8ff58 100644 --- a/styles.css +++ b/styles.css @@ -81,6 +81,8 @@ section.post-footer, div.footnotes { /* Code blocks */ +/* The "lineno" class is the default generated by Rouge for table-row in code blocks, see: + https://github.com/rouge-ruby/rouge */ pre.lineno { margin-right: 3px; padding-right: 3px; @@ -96,7 +98,14 @@ pre.highlight { } -/* Header anchor icons */ +/* Code block anchors */ + +a.code-line-anchor { + color: black; +} + + +/* Header anchor */ a.header-anchor { color: black; -- cgit v1.2.3