summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2019-03-28 08:32:51 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2019-03-28 08:32:51 +0100
commitcca8bce331ca114190eebd51056554eb57bfdf25 (patch)
treefba3a2967be56b2bf0ea942f1e490b978e0c3e88
parentb3f06e563273e7be640387db9f35cf9dd0fbbe52 (diff)
Add leading whitespace to line number margin
This makes the margin not look off-center.
-rw-r--r--pastepy/static/css/paste.css1
-rw-r--r--pastepy/static/css/paste.dark.css1
2 files changed, 2 insertions, 0 deletions
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; }