Fix graph and settings highlight
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
6ef75dc778
commit
5f63c00598
3 changed files with 14 additions and 8 deletions
|
@ -46,7 +46,7 @@ class @ContributorsGraph
|
||||||
|
|
||||||
class @ContributorsMasterGraph extends ContributorsGraph
|
class @ContributorsMasterGraph extends ContributorsGraph
|
||||||
constructor: (@data) ->
|
constructor: (@data) ->
|
||||||
@width = $('.container').width() - 70
|
@width = $('.container').width() - 345
|
||||||
@height = 200
|
@height = 200
|
||||||
@x = null
|
@x = null
|
||||||
@y = null
|
@y = null
|
||||||
|
@ -119,7 +119,7 @@ class @ContributorsMasterGraph extends ContributorsGraph
|
||||||
|
|
||||||
class @ContributorsAuthorGraph extends ContributorsGraph
|
class @ContributorsAuthorGraph extends ContributorsGraph
|
||||||
constructor: (@data) ->
|
constructor: (@data) ->
|
||||||
@width = $('.container').width()/2 - 100
|
@width = $('.container').width()/2 - 225
|
||||||
@height = 200
|
@height = 200
|
||||||
@x = null
|
@x = null
|
||||||
@y = null
|
@y = null
|
||||||
|
|
|
@ -74,14 +74,20 @@ body.project {
|
||||||
.nav-sidebar li a .count {
|
.nav-sidebar li a .count {
|
||||||
float: right;
|
float: right;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
padding: 2px 8px;
|
padding: 0px 8px;
|
||||||
@include border-radius(6px);
|
@include border-radius(6px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-sidebar li.active a {
|
.nav-sidebar li {
|
||||||
color: #333;
|
&.active a {
|
||||||
background: #EEE;
|
color: #333;
|
||||||
font-weight: bold;
|
background: #EEE;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&.no-highlight {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-sidebar li {
|
.nav-sidebar li {
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
- if project_nav_tab? :settings
|
- if project_nav_tab? :settings
|
||||||
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
|
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
|
||||||
= link_to edit_project_path(@project), class: "stat-tab tab " do
|
= link_to edit_project_path(@project), class: "stat-tab tab no-highlight" do
|
||||||
Settings
|
Settings
|
||||||
%i.fa.fa-angle-down
|
%i.fa.fa-angle-down
|
||||||
- if defined?(settings) && settings
|
- if defined?(settings) && settings
|
||||||
|
|
Loading…
Reference in a new issue