changeset 5928:ecc2a13a308d

pullrequests: use css for description instead of <code> and explicit styling b60e58094fb7 introduced use of <code>, but that is semantically incorrect.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 23 May 2016 18:02:33 +0200
parents 8049bb8502bd
children 10d0aec7e68b
files kallithea/public/css/style.css kallithea/templates/pullrequests/pullrequest_show.html
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/public/css/style.css	Mon May 23 18:02:33 2016 +0200
@@ -160,11 +160,17 @@
 .code pre,
 div.readme .readme_box pre,
 div.rst-block pre,
+div.formatted-fixed,
 .CodeMirror .CodeMirror-code pre {
     font-size: 12px;
     font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 }
 
+div.formatted-fixed {
+    white-space: pre-wrap;
+    line-height: 14px;
+}
+
 .top-left-rounded-corner {
     border-top-left-radius: 8px;
 }
--- a/kallithea/templates/pullrequests/pullrequest_show.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/pullrequests/pullrequest_show.html	Mon May 23 18:02:33 2016 +0200
@@ -43,7 +43,7 @@
             %endif
           </div>
           <div class="input">
-            <code style="white-space:pre-wrap; line-height: 14px">${h.urlify_commit(c.pull_request.description, c.pull_request.org_repo.repo_name)}</code>
+            <div class="formatted-fixed">${h.urlify_commit(c.pull_request.description, c.pull_request.org_repo.repo_name)}</div>
           </div>
         </div>