From b3f06e563273e7be640387db9f35cf9dd0fbbe52 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 27 Mar 2019 22:36:51 +0100 Subject: Add background color to line number margin --- pastepy/static/css/paste.css | 5 +++-- pastepy/static/css/paste.dark.css | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pastepy/static/css/paste.css b/pastepy/static/css/paste.css index d6d1cde..5df8e83 100644 --- a/pastepy/static/css/paste.css +++ b/pastepy/static/css/paste.css @@ -1,7 +1,8 @@ .paste-header #info { color: #bbb; } .paste-header #info #nick, .paste-header #info #syntax-type, .paste-header #info #date { color: #888; } -.highlighttable .linenos { padding-right: .5em; } -.highlighttable .linenos a { color: #999; } +.highlighttable .linenodiv { background-color: #e7e7e7; } +.highlighttable .linenos a { color: #666; } +.highlighttable .linenos a::after { content: " "; } .highlighttable .code { width: 100%; } .highlighttable .selected { display: block; background-color: #cfc; } .highlighttable .code { tab-size: 4; } diff --git a/pastepy/static/css/paste.dark.css b/pastepy/static/css/paste.dark.css index 2e8454b..9006543 100644 --- a/pastepy/static/css/paste.dark.css +++ b/pastepy/static/css/paste.dark.css @@ -1,7 +1,8 @@ .paste-header #info { color: #444; } .paste-header #info #nick, .paste-header #info #syntax-type, .paste-header #info #date { color: #666; } -.highlighttable .linenos { padding-right: .5em; } +.highlighttable .linenodiv { background-color: #1a1a1a; } .highlighttable .linenos a { color: #666; } +.highlighttable .linenos a::after { content: " "; } .highlighttable .code { width: 100%; } .highlighttable .selected { display: block; background-color: #244; } .highlighttable .code { tab-size: 4; } -- cgit v1.2.3