diff options
author | Wu Cheng-Han | 2015-09-25 19:06:27 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-09-25 19:06:27 +0800 |
commit | 60414febee5fd14743fd80cad9d681c3027272dd (patch) | |
tree | 6342747e84e3b5a9063c30b717f16baa49d974ed /public/css | |
parent | 4e0a1021011e9c64c6d5c2fe82f17bc34ff529f8 (diff) |
Changed code block line number gutter rendering method for performance and gain better accessibility
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/markdown.css | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/css/markdown.css b/public/css/markdown.css index ffceb052..6a98212a 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -32,7 +32,7 @@ user-select: none; } -.markdown-body pre code .gutter .linenumber { +.markdown-body pre code .gutter.linenumber { text-align: right; position: relative; display: inline-block; @@ -46,6 +46,10 @@ border-right: 3px solid #6ce26c !important; } +.markdown-body pre code .gutter.linenumber > span:before { + content: attr(data-linenumber); +} + .markdown-body pre code .code { float: left; margin: 0 0 0 16px; |