Commit d6b2c870 authored by Phil Hughes's avatar Phil Hughes

style updates

fixed weird dropdown items in issues when on merge request page
parent 80b55398
...@@ -195,6 +195,7 @@ $new-sidebar-width: 220px; ...@@ -195,6 +195,7 @@ $new-sidebar-width: 220px;
> li { > li {
> a { > a {
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
margin-left: 4px;
margin-right: 2px; margin-right: 2px;
} }
} }
...@@ -204,10 +205,13 @@ $new-sidebar-width: 220px; ...@@ -204,10 +205,13 @@ $new-sidebar-width: 220px;
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
position: fixed; position: fixed;
top: 0; top: 0;
left: 220px; left: 219px;
width: 150px; width: 150px;
background-color: $hover-background; margin-top: -1px;
padding: 1px;
background-color: $white-light;
box-shadow: 2px 1px 3px $dropdown-shadow-color; box-shadow: 2px 1px 3px $dropdown-shadow-color;
border: 1px solid $gray-darker;
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
&::before { &::before {
...@@ -233,19 +237,20 @@ $new-sidebar-width: 220px; ...@@ -233,19 +237,20 @@ $new-sidebar-width: 220px;
transform: skew(33deg); transform: skew(33deg);
} }
&.is-above::after { &.is-above {
top: auto; margin-top: 1px;
bottom: 44px;
transform: skew(-30deg); &::after {
top: auto;
bottom: 44px;
transform: skew(-30deg);
}
} }
a { a {
color: rgba($white-light, .9);
&:hover, &:hover,
&:focus { &:focus {
color: $white-light; background-color: $gray-darker;
background-color: rgba($black, .12);
} }
} }
} }
...@@ -273,8 +278,7 @@ $new-sidebar-width: 220px; ...@@ -273,8 +278,7 @@ $new-sidebar-width: 220px;
&:not(.active):hover > a, &:not(.active):hover > a,
> a:hover { > a:hover {
background-color: $hover-background; background-color: $white-light;
color: $hover-color;
.badge { .badge {
background-color: $indigo-500; background-color: $indigo-500;
......
...@@ -83,34 +83,25 @@ ...@@ -83,34 +83,25 @@
Issues Issues
%ul.sidebar-sub-level-items %ul.sidebar-sub-level-items
- if project_nav_tab?(:issues) && !current_controller?(:merge_requests) = nav_link(controller: :issues) do
= nav_link(controller: :issues) do = link_to project_issues_path(@project), title: 'Issues' do
= link_to project_issues_path(@project), title: 'Issues' do %span
%span List
List
= nav_link(controller: :boards) do
= link_to project_boards_path(@project), title: 'Board' do
%span
Board
- if project_nav_tab?(:merge_requests) && current_controller?(:merge_requests) = nav_link(controller: :boards) do
= nav_link(controller: :merge_requests) do = link_to project_boards_path(@project), title: 'Board' do
= link_to project_merge_requests_path(@project), title: 'Merge Requests' do %span
%span Board
Merge Requests
- if project_nav_tab? :labels = nav_link(controller: :labels) do
= nav_link(controller: :labels) do = link_to project_labels_path(@project), title: 'Labels' do
= link_to project_labels_path(@project), title: 'Labels' do %span
%span Labels
Labels
- if project_nav_tab? :milestones = nav_link(controller: :milestones) do
= nav_link(controller: :milestones) do = link_to project_milestones_path(@project), title: 'Milestones' do
= link_to project_milestones_path(@project), title: 'Milestones' do %span
%span Milestones
Milestones
- if project_nav_tab? :merge_requests - if project_nav_tab? :merge_requests
= nav_link(controller: @project.default_issues_tracker? ? :merge_requests : [:merge_requests, :labels, :milestones]) do = nav_link(controller: @project.default_issues_tracker? ? :merge_requests : [:merge_requests, :labels, :milestones]) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment