[Notice] Announcing the End of Demo Server [Read me]
doortts doortts 2016-02-29
UI: Change comment icon and meta info size
@257380f2e3116310ebce025a32a84c53d85323a8
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -3540,7 +3540,7 @@
     .infos {
         display:block;
         line-height: 20px;
-        font-size:11px;
+        font-size:12px;
         color:#999;
 
         .infos-item {
@@ -3566,9 +3566,9 @@
                     text-align: center;
                     padding:0 5px;
                     float: left;
+                    color: darkmagenta;
 
                     &.item-icon {
-                        color:#3592b5;
                         font-size: 9px;
                         padding-top:2px;
                         line-height: 12px;
@@ -3584,7 +3584,10 @@
                     }
 
                     &.item-count {
-                        padding:0 7px;
+                        &.strong {
+                            color:@primary;
+                        }
+                        padding:0 7px 0 0;
                     }
                 }
             }
app/assets/stylesheets/less/_yobiUI.less
--- app/assets/stylesheets/less/_yobiUI.less
+++ app/assets/stylesheets/less/_yobiUI.less
@@ -307,6 +307,7 @@
     background:#f9f9f9;
     font-size:11px;
     text-shadow:none;
+    line-height: 12px;
     -webkit-transition-duration:0.25s;
 
     &:last-of-type { margin:0; }
app/utils/TemplateHelper.scala
--- app/utils/TemplateHelper.scala
+++ app/utils/TemplateHelper.scala
@@ -535,9 +535,9 @@
       Html("""<span class="count-groups item-icon %s">
         <i class="yobicon-%s"></i>
       </span>
-      <span class="count-groups item-count">
+      <span class="count-groups item-count %s">
         <a href="%s">%d</a>
-      </span> """.format(strong, icon, link, count))
+      </span> """.format(strong, icon, strong, link, count))
   }
 
   def isMarkdownExtension(path: String):Boolean = {
app/views/board/partial_list.scala.html
--- app/views/board/partial_list.scala.html
+++ app/views/board/partial_list.scala.html
@@ -62,7 +62,7 @@
 
         @if(post.numOfComments >0){
         <span class="infos-item item-count-groups">
-            @countHtml("comments",routes.BoardApp.post(project.owner, project.name, post.getNumber).toString() + "#comments", post.numOfComments)
+            @countHtml("comment2",routes.BoardApp.post(project.owner, project.name, post.getNumber).toString() + "#comments", post.numOfComments)
         </span>
         }
         @for(label <- post.labels) {
app/views/issue/partial_list.scala.html
--- app/views/issue/partial_list.scala.html
+++ app/views/issue/partial_list.scala.html
@@ -79,7 +79,7 @@
                     @if(issue.comments.size>0 || issue.voters.size>0) {
                     <span class="infos-item item-count-groups">
                     @if(issue.comments.size>0){
-                        @countHtml("comments",routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber).toString() + "#comments", issue.comments.size )
+                        @countHtml("comment2",routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber).toString() + "#comments", issue.comments.size )
                     }
                     @if(issue.voters.size>0){
                         @countHtml("hearts",routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber).toString() + "#vote", issue.voters.size, "strong" )
app/views/reviewthread/partial_list.scala.html
--- app/views/reviewthread/partial_list.scala.html
+++ app/views/reviewthread/partial_list.scala.html
@@ -58,7 +58,7 @@
 
                     @if(numberOfComments > 0) {
                     <span class="infos-item item-count-groups">
-                        @countHtml("comments",DiffRenderer.urlToCommentThread(thread), numberOfComments)
+                        @countHtml("comment2",DiffRenderer.urlToCommentThread(thread), numberOfComments)
                     </span>
                     }       
                 }
Add a comment
List