diff --git a/cbv/static/style.css b/cbv/static/style.css index 541a777b..4ecc1877 100644 --- a/cbv/static/style.css +++ b/cbv/static/style.css @@ -26,8 +26,26 @@ html {overflow-y: scroll;} background-color: transparent; border: none; } -.highlight { +.highlighttable { margin-top: 10px; + width: 100%; +} +.highlighttable td { + padding: 0; +} +.highlighttable td.linenos { + width: 50px; + text-align: right; +} +.highlighttable td:nth-of-type(1) pre { + background-color: #eee; + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.highlighttable td:nth-of-type(2) pre { + border-left: none; + border-top-left-radius: 0; + border-bottom-left-radius: 0; } .page-header .docstring { margin-bottom: 0; diff --git a/cbv/templates/cbv/klass_detail.html b/cbv/templates/cbv/klass_detail.html index 443775d2..34f9366a 100644 --- a/cbv/templates/cbv/klass_detail.html +++ b/cbv/templates/cbv/klass_detail.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load pygmentify %} +{% load pygmy %} {% load cbv_tags %} {% load url from future %} {% load i18n %} @@ -150,7 +150,7 @@
{{ namesake.docstring }}{% endif %}
- {% pygment %}{{ namesake.code }}{% endpygment %}
+ {% pygmy namesake.code linenos='True' linenostart=namesake.line_number lexer='python' %}
{% if namesakes|length != 1 %}