Skip to content

Commit

Permalink
Make sidebar scrollable. It prevents content overflow for small screens
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
  • Loading branch information
dzaporozhets committed Jul 13, 2015
1 parent 4f0455c commit a839b2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/assets/stylesheets/generic/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.sidebar-wrapper {
position: fixed;
top: 0;
bottom: 0;
overflow-y: scroll;
left: 0;
height: 100%;
transition-duration: .3s;
Expand All @@ -21,8 +23,9 @@
}

.nav-sidebar {
margin-top: 29 + $header-height;
margin-bottom: 50px;
transition-duration: .3s;
margin: 0;
list-style: none;
overflow: hidden;

Expand Down Expand Up @@ -88,9 +91,6 @@
width: $sidebar_width;

.nav-sidebar {
margin-top: 29px;
position: fixed;
top: $header-height;
width: $sidebar_width;
}

Expand All @@ -114,9 +114,6 @@
width: $sidebar_collapsed_width;

.nav-sidebar {
margin-top: 29px;
position: fixed;
top: $header-height;
width: $sidebar_collapsed_width;

li a {
Expand Down Expand Up @@ -178,7 +175,7 @@
}

.sidebar-user {
position: absolute;
position: fixed;
bottom: 0;
width: $sidebar_width;
padding: 10px;
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/themes/gitlab-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
border-right: 1px solid $color-darker;

.sidebar-user {
background: $color-darker;
color: $color-light;

&:hover {
Expand Down

0 comments on commit a839b2a

Please sign in to comment.