diff --git a/app/assets/stylesheets/gitlab_bootstrap/files.scss b/app/assets/stylesheets/gitlab_bootstrap/files.scss index cbc58d2..580b742 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/files.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/files.scss @@ -157,10 +157,15 @@ font-size:12px !important; } - table.highlighttable .linenodiv pre { - text-align: right; - padding-right: 4px; - color:#666; + table.highlighttable .linenodiv { + a { + color: #666; + } + pre { + text-align: right; + padding-right: 4px; + color:#666; + } } } } diff --git a/app/views/tree/blob/_text.html.haml b/app/views/tree/blob/_text.html.haml index c506a39..3b7f293 100644 --- a/app/views/tree/blob/_text.html.haml +++ b/app/views/tree/blob/_text.html.haml @@ -10,6 +10,6 @@ - unless blob.empty? %div{class: current_user.dark_scheme ? "black" : "white"} = preserve do - = raw blob.colorize(options: { linenos: 'True'}) + = raw blob.colorize(options: { linenos: true, lineanchors: :line, anchorlinenos: true }) - else %h4.nothing_here_message Empty file -- libgit2 0.21.2