Commit 9e2c8d94766617358d39b81fe42f360e6dc469f8

Authored by Dmitriy Zaporozhets
1 parent 7b5d68f0

IMprove stat-graph css

app/assets/stylesheets/sections/stat_graph.scss
1 .tint-box { 1 .tint-box {
2 - border-radius: 6px;  
3 background: #f3f3f3; 2 background: #f3f3f3;
4 position: relative; 3 position: relative;
5 margin-bottom: 10px; 4 margin-bottom: 10px;
@@ -16,13 +15,11 @@ @@ -16,13 +15,11 @@
16 } 15 }
17 16
18 #contributors .person { 17 #contributors .person {
19 - -moz-box-sizing: border-box;  
20 - box-sizing: border-box; 18 + &:nth-child(even) {
  19 + float: right;
  20 + }
21 float: left; 21 float: left;
22 - border-radius: 2px;  
23 - margin: 3px;  
24 - padding: 7px;  
25 - border: 1px solid #ddd; 22 + margin-top: 10px;
26 } 23 }
27 24
28 .contributors-list { 25 .contributors-list {
@@ -33,7 +30,7 @@ @@ -33,7 +30,7 @@
33 30
34 #contributors .person .spark { 31 #contributors .person .spark {
35 display: block; 32 display: block;
36 - background: #f7f7f7; 33 + background: #f3f3f3;
37 } 34 }
38 35
39 #contributors .person .area-contributor { 36 #contributors .person .area-contributor {
@@ -49,9 +46,3 @@ @@ -49,9 +46,3 @@
49 shape-rendering: crispedges; 46 shape-rendering: crispedges;
50 stroke-dasharray: 3 3; 47 stroke-dasharray: 3 3;
51 } 48 }
52 -  
53 -.right{  
54 - float: right;  
55 - display: inline-block;  
56 - margin-top: 5px;  
57 -}  
app/views/stat_graph/show.html.haml
@@ -5,12 +5,12 @@ @@ -5,12 +5,12 @@
5 5
6 .stat-graph 6 .stat-graph
7 .header.clearfix 7 .header.clearfix
8 - .right 8 + .pull-right
9 %select 9 %select
10 %option{:value => "commits"} Commits 10 %option{:value => "commits"} Commits
11 %option{:value => "additions"} Additions 11 %option{:value => "additions"} Additions
12 %option{:value => "deletions"} Deletions 12 %option{:value => "deletions"} Deletions
13 - %h3#date_header 13 + %h3#date_header.page_title
14 %input#brush_change{:type => "hidden"} 14 %input#brush_change{:type => "hidden"}
15 .graphs 15 .graphs
16 #contributors-master 16 #contributors-master