Commit 9e2c8d94766617358d39b81fe42f360e6dc469f8

Authored by Dmitriy Zaporozhets
1 parent 7b5d68f0

IMprove stat-graph css

app/assets/stylesheets/sections/stat_graph.scss
1 1 .tint-box {
2   - border-radius: 6px;
3 2 background: #f3f3f3;
4 3 position: relative;
5 4 margin-bottom: 10px;
... ... @@ -16,13 +15,11 @@
16 15 }
17 16  
18 17 #contributors .person {
19   - -moz-box-sizing: border-box;
20   - box-sizing: border-box;
  18 + &:nth-child(even) {
  19 + float: right;
  20 + }
21 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 25 .contributors-list {
... ... @@ -33,7 +30,7 @@
33 30  
34 31 #contributors .person .spark {
35 32 display: block;
36   - background: #f7f7f7;
  33 + background: #f3f3f3;
37 34 }
38 35  
39 36 #contributors .person .area-contributor {
... ... @@ -49,9 +46,3 @@
49 46 shape-rendering: crispedges;
50 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 5  
6 6 .stat-graph
7 7 .header.clearfix
8   - .right
  8 + .pull-right
9 9 %select
10 10 %option{:value => "commits"} Commits
11 11 %option{:value => "additions"} Additions
12 12 %option{:value => "deletions"} Deletions
13   - %h3#date_header
  13 + %h3#date_header.page_title
14 14 %input#brush_change{:type => "hidden"}
15 15 .graphs
16 16 #contributors-master
... ...