[PATCH 2 of 3] pullrequest overview: sanitize display style

Thomas De Schampheleire patrickdepinguin at gmail.com
Sat Feb 21 16:48:14 EST 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at alcatel-lucent.com>
# Date 1424555122 -3600
#      Sat Feb 21 22:45:22 2015 +0100
# Node ID 0728fc3662d27756523ae0d03b91caffb1587ad9
# Parent  ddadf072c99554bfb9d174664148f77d453912fc
pullrequest overview: sanitize display style

Remove the unnecessarily large font size on the pullrequest overview to line
up with the styling of 'my pullrequests'.

Additionally, add some whitespace between the 'show closed PRs' link and the
actual list.

diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css
--- a/kallithea/public/css/style.css
+++ b/kallithea/public/css/style.css
@@ -4629,9 +4629,6 @@
     background: #eee;
 }
 
-div.pr-title {
-    font-size: 1.6em;
-}
 div.pr-details-title {
     font-size: 1.6em;
     padding: 5px 0px 5px 10px;
diff --git a/kallithea/templates/pullrequests/pullrequest_data.html b/kallithea/templates/pullrequests/pullrequest_data.html
--- a/kallithea/templates/pullrequests/pullrequest_data.html
+++ b/kallithea/templates/pullrequests/pullrequest_data.html
@@ -2,7 +2,7 @@
 
 % for pr in c.pullrequests_pager:
   <div class="pr ${'pr-closed' if pr.is_closed() else ''}">
-    <div class="pr-title">
+    <div>
     %if pr.last_review_status:
       <i class="icon-circle changeset-status-${pr.last_review_status}" title="${_("Someone voted: %s") % pr.last_review_status}"></i>
     %else:
diff --git a/kallithea/templates/pullrequests/pullrequest_show_all.html b/kallithea/templates/pullrequests/pullrequest_show_all.html
--- a/kallithea/templates/pullrequests/pullrequest_show_all.html
+++ b/kallithea/templates/pullrequests/pullrequest_show_all.html
@@ -44,7 +44,7 @@
         </ul>
     </div>
 
-    <div style="margin: 0 20px">
+    <div style="margin: 0 20px 10px 20px">
         <div>
         %if c.closed:
             ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_))}


More information about the kallithea-general mailing list