From cca8bce331ca114190eebd51056554eb57bfdf25 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 28 Mar 2019 08:32:51 +0100 Subject: Add leading whitespace to line number margin This makes the margin not look off-center. --- pastepy/static/css/paste.css | 1 + pastepy/static/css/paste.dark.css | 1 + 2 files changed, 2 insertions(+) diff --git a/pastepy/static/css/paste.css b/pastepy/static/css/paste.css index 5df8e83..b451600 100644 --- a/pastepy/static/css/paste.css +++ b/pastepy/static/css/paste.css @@ -2,6 +2,7 @@ .paste-header #info #nick, .paste-header #info #syntax-type, .paste-header #info #date { color: #888; } .highlighttable .linenodiv { background-color: #e7e7e7; } .highlighttable .linenos a { color: #666; } +.highlighttable .linenos a::before { content: " "; } .highlighttable .linenos a::after { content: " "; } .highlighttable .code { width: 100%; } .highlighttable .selected { display: block; background-color: #cfc; } diff --git a/pastepy/static/css/paste.dark.css b/pastepy/static/css/paste.dark.css index 9006543..41b7242 100644 --- a/pastepy/static/css/paste.dark.css +++ b/pastepy/static/css/paste.dark.css @@ -2,6 +2,7 @@ .paste-header #info #nick, .paste-header #info #syntax-type, .paste-header #info #date { color: #666; } .highlighttable .linenodiv { background-color: #1a1a1a; } .highlighttable .linenos a { color: #666; } +.highlighttable .linenos a::before { content: " "; } .highlighttable .linenos a::after { content: " "; } .highlighttable .code { width: 100%; } .highlighttable .selected { display: block; background-color: #244; } -- cgit v1.2.3