Skip to content

Commit

Permalink
add user prose styles (bug 668411)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jun 30, 2011
1 parent 4890bca commit 0b146cd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/addons/templates/addons/impala/details.html
Expand Up @@ -153,7 +153,7 @@ <h2>{{ _('About this Add-on') }}</h2>
{% if addon.developer_comments %}
<section class="expando" id="developer-comments">
<h2>{{ _('Developer’s Comments') }}<a class="toggle" href="#developer-comments"><b></b></a></h2>
<div class="content">
<div class="content prose">
<p{{ addon.developer_comments|locale_html }}>
{{ addon.developer_comments|nl2br }}</p>
</div>
Expand Down
21 changes: 21 additions & 0 deletions media/css/impala/prose.less
@@ -0,0 +1,21 @@
.prose {
line-height: 1.2em;
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
li {
margin-left: 1em;
}
b, strong {
font-weight: bold;
}
i, em {
font-style: italic;
}
blockquote {
margin: 1em;
}
}
1 change: 1 addition & 0 deletions settings.py
Expand Up @@ -420,6 +420,7 @@ def JINJA_CONFIG():
'css/impala/sharing.less',
'css/impala/collections.less',
'css/impala/abuse.less',
'css/impala/prose.less',
),
'zamboni/discovery-pane': (
'css/zamboni/discovery-pane.css',
Expand Down

0 comments on commit 0b146cd

Please sign in to comment.