DeokHong Kim (a.k.a insanehong) DeokHong Kim (a.k.a insanehong) 2014-04-15
ProjectHome: fix css for new issue and fork button
@9f1ae8a977b050a9f0de81d8420def893d932154
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -2228,17 +2228,15 @@
         text-align:center;
         padding:5px 0;
         .project-btn-item {
+            margin-top:10px;
             display:block;
 
             a {
                 display:block;
             }
-        }
 
-        &.git-project{
-            .project-btn-item {
-                display: inline-block;
-                padding:0 5px;
+            &:first-child {
+                margin-top:0;
             }
         }
     }
app/assets/stylesheets/less/_reponsive.less
--- app/assets/stylesheets/less/_reponsive.less
+++ app/assets/stylesheets/less/_reponsive.less
@@ -77,17 +77,6 @@
         }
     }
 
-    .project-home {
-        .project-btn-wrap {
-            &.git-project{
-                .project-btn-item {
-                    display: block;
-                    padding:5px 0;
-                }
-            }
-        }
-    }
-
     .diff-body {
         .diff-partial-outer {
             .diff-partial-inner {
app/views/project/home.scala.html
--- app/views/project/home.scala.html
+++ app/views/project/home.scala.html
@@ -81,13 +81,13 @@
 
             <div class="span3">
                 <div class="bubble-wrap gray project-home">
-                    <div class="project-btn-wrap @if(project.vcs.equals("GIT")){ git-project }">
+                    <div class="project-btn-wrap">
                         <span class="project-btn-item">
                             <a href="@routes.IssueApp.newIssueForm(project.owner, project.name)" class="ybtn ybtn-success">@Messages("button.newIssue")</a>
                         </span>
                         @if(project.vcs.equals("GIT")){
                         <span class="project-btn-item">
-                            <a href="@routes.PullRequestApp.newFork(project.owner, project.name)" class="ybtn">
+                            <a href="@routes.PullRequestApp.newFork(project.owner, project.name)" class="ybtn ybtn-info">
                                 @Messages("fork")
                             </a>
                         </span>
Add a comment
List