OSDN Git Service

IMprove stat-graph css
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 11 Jun 2013 06:36:15 +0000 (09:36 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 11 Jun 2013 06:36:15 +0000 (09:36 +0300)
app/assets/stylesheets/sections/stat_graph.scss
app/views/stat_graph/show.html.haml

index a0bf856..4baec34 100644 (file)
@@ -1,5 +1,4 @@
 .tint-box {
-  border-radius: 6px;
   background: #f3f3f3;
   position: relative;
   margin-bottom: 10px;
 }
 
 #contributors .person {
-  -moz-box-sizing: border-box;
-  box-sizing: border-box;
+  &:nth-child(even) {
+    float: right;
+  }
   float: left;
-  border-radius: 2px;
-  margin: 3px;
-  padding: 7px;
-  border: 1px solid #ddd;
+  margin-top: 10px;
 }
 
 .contributors-list {
@@ -33,7 +30,7 @@
 
 #contributors .person .spark {
   display: block;
-  background: #f7f7f7;
+  background: #f3f3f3;
 }
 
 #contributors .person .area-contributor {
@@ -49,9 +46,3 @@
   shape-rendering: crispedges;
   stroke-dasharray: 3 3;
 }
-
-.right{
-  float: right;
-  display: inline-block;
-  margin-top: 5px;
-}
index 21af115..05bc143 100644 (file)
@@ -5,12 +5,12 @@
 
 .stat-graph
   .header.clearfix
-    .right
+    .pull-right
       %select
         %option{:value => "commits"} Commits
         %option{:value => "additions"} Additions
         %option{:value => "deletions"} Deletions
-    %h3#date_header
+    %h3#date_header.page_title
     %input#brush_change{:type => "hidden"}
   .graphs
     #contributors-master