OSDN Git Service

projects page improved
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 11 Mar 2012 09:46:15 +0000 (11:46 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 11 Mar 2012 09:46:15 +0000 (11:46 +0200)
app/assets/stylesheets/common.scss
app/views/projects/_show.html.haml

index 394763a..1faf8f2 100644 (file)
@@ -431,6 +431,22 @@ img.lil_av {
     }
   }
 
+  &.padded { 
+    h5, .title { 
+      margin: -20px;
+      margin-bottom: 0;
+      padding: 5px 20px;
+    }
+    .middle_title { 
+      background:#f5f5f5;
+      margin:20px -20px;
+      padding: 0 20px;
+      border-top:1px solid #eee;
+      border-bottom:1px solid #eee;
+      font-size:14px;
+      color:#777;
+    }
+  }
   .row_title { 
     font-weight:bold;
     color:#444;
index ee0b19e..5d30b75 100644 (file)
@@ -1,6 +1,6 @@
-%h4
+%h4.title
   = @project.name
-%hr
+%br
 %div
   %a.btn.info{:href => tree_project_ref_path(@project, @project.root_ref)} Browse code
   &nbsp;
@@ -8,7 +8,7 @@
   %strong.right
     = link_to project_path(@project) do 
       Switch to project &rarr; 
-%hr
+%br
 .alert-message.block-message.warning
   .input
     .input-prepend
@@ -17,7 +17,7 @@
 
 = simple_format @project.description
 - unless @events.blank?
-  %h5.cgray Recent Activity
+  %h4.middle_title Recent Activity
   .content_list= render @events