Commit ac6dfbd9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make header and sidebar avatar more compact

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 670544c8
...@@ -12,7 +12,7 @@ $code_font_size: 13px; ...@@ -12,7 +12,7 @@ $code_font_size: 13px;
$code_line_height: 1.5; $code_line_height: 1.5;
$border-color: #E7E9ED; $border-color: #E7E9ED;
$background-color: #F8FAFC; $background-color: #F8FAFC;
$header-height: 67px; $header-height: 61px;
$fixed-layout-width: 1200px; $fixed-layout-width: 1200px;
$gl-gray: #7f8fa4; $gl-gray: #7f8fa4;
$gl-padding: 16px; $gl-padding: 16px;
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
width: $sidebar_collapsed_width; width: $sidebar_collapsed_width;
a { a {
padding-left: 7px; padding-left: 10px;
.gitlab-text-container { .gitlab-text-container {
display: none; display: none;
...@@ -151,8 +151,12 @@ ...@@ -151,8 +151,12 @@
} }
.sidebar-user { .sidebar-user {
padding-left: 7px; padding-left: 10px;
width: $sidebar_collapsed_width; width: $sidebar_collapsed_width;
.username {
display: none;
}
} }
} }
} }
...@@ -210,7 +214,7 @@ ...@@ -210,7 +214,7 @@
margin-left: 10px; margin-left: 10px;
width: $sidebar_width - 2 * 10px; width: $sidebar_width - 2 * 10px;
font-size: 16px; font-size: 16px;
line-height: 44px; line-height: 36px;
} }
} }
...@@ -231,8 +235,8 @@ ...@@ -231,8 +235,8 @@
overflow: hidden; overflow: hidden;
img { img {
width: $gl-avatar-size; width: 40px;
height: $gl-avatar-size; height: 40px;
float: left; float: left;
} }
...@@ -245,7 +249,7 @@ ...@@ -245,7 +249,7 @@
margin: 0; margin: 0;
margin-left: 14px; margin-left: 14px;
font-size: 19px; font-size: 19px;
line-height: 49px; line-height: 41px;
font-weight: normal; font-weight: normal;
} }
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
= render partial: 'layouts/collapse_button' = render partial: 'layouts/collapse_button'
- if current_user - if current_user
= link_to current_user, class: 'sidebar-user' do = link_to current_user, class: 'sidebar-user' do
= image_tag avatar_icon(current_user.email, 60), alt: 'User activity', class: 'avatar avatar s46' = image_tag avatar_icon(current_user.email, 60), alt: 'User activity', class: 'avatar avatar s40'
.username .username
= current_user.username = current_user.username
.content-wrapper .content-wrapper
......
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