changeset 6670:7bca124ef278

style: drop dynamic width of repo summary labels - it should be the same no matter if statistics is shown or not
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 11 Jun 2017 15:02:09 +0200
parents 30d61922f24e
children 5e3adb20839d
files kallithea/public/css/style.css kallithea/templates/summary/statistics.html kallithea/templates/summary/summary.html
diffstat 3 files changed, 8 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Sun Jun 11 15:02:09 2017 +0200
+++ b/kallithea/public/css/style.css	Sun Jun 11 15:02:09 2017 +0200
@@ -842,13 +842,6 @@
     margin: 0 20px 0 200px;
 }
 
-#content div.panel div.form div.form-horizontal div.form-group > div.summary,
-#content div.panel div.form div.form-horizontal div.form-group > div.summary-short {
-    margin: 0 20px 10px 110px;
-}
-#content div.panel div.form div.form-horizontal div.form-group > div.summary-short input {
-    margin: 0;
-}
 #content div.panel div.form div.form-horizontal div.form-group > div.file {
     margin: 0 20px 0 200px;
 }
@@ -1148,9 +1141,13 @@
     position: relative;
 }
 
+#content div.panel div#summary-panel-body.form div.form-horizontal div.form-group > div {
+    margin: 0 20px 10px 110px;
+}
+
 #content div.panel #summary {
     margin-right: 200px;
-    min-height: 240px;
+    min-height: 220px;
 }
 
 ul#summary-menu-stats {
--- a/kallithea/templates/summary/statistics.html	Sun Jun 11 15:02:09 2017 +0200
+++ b/kallithea/templates/summary/statistics.html	Sun Jun 11 15:02:09 2017 +0200
@@ -19,9 +19,6 @@
 
 <%def name="main()">
 ${self.repo_context_bar('summary')}
-    <%
-    summary = lambda n:{False:'summary-short'}.get(n)
-    %>
     <div class="panel panel-primary">
     <div class="panel-heading clearfix">
         ${self.breadcrumbs()}
--- a/kallithea/templates/summary/summary.html	Sun Jun 11 15:02:09 2017 +0200
+++ b/kallithea/templates/summary/summary.html	Sun Jun 11 15:02:09 2017 +0200
@@ -56,9 +56,6 @@
 
 <%def name="main()">
 ${self.repo_context_bar('summary')}
-<%
-summary = lambda n:{False:'summary-short'}.get(n)
-%>
 <div class="panel panel-primary">
     <div class="panel-heading clearfix">
         ${self.breadcrumbs()}
@@ -83,12 +80,12 @@
 
             <div class="form-group clearfix">
               <label>${_('Description')}:</label>
-              <div class="${summary(c.show_stats)} desc">${h.urlify_text(c.db_repo.description, stylize=c.visual.stylify_metatags)}</div>
+              <div class="desc">${h.urlify_text(c.db_repo.description, stylize=c.visual.stylify_metatags)}</div>
             </div>
 
             <div class="form-group clearfix">
               <label>${_('Trending files')}:</label>
-              <div class="${summary(c.show_stats)}">
+              <div>
                 %if c.show_stats:
                 <div id="lang_stats"></div>
                 %else:
@@ -102,7 +99,7 @@
 
             <div class="form-group clearfix">
               <label>${_('Download')}:</label>
-              <div class="${summary(c.show_stats)}">
+              <div>
                 %if len(c.db_repo_scm_instance.revisions) == 0:
                   ${_('There are no downloads yet')}
                 %elif not c.enable_downloads: