Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c13ef898
Commit
c13ef898
authored
Sep 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make UI more compact
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
16e6913e
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
45 additions
and
42 deletions
+45
-42
app/assets/stylesheets/application.scss
app/assets/stylesheets/application.scss
+1
-0
app/assets/stylesheets/base/gl_variables.scss
app/assets/stylesheets/base/gl_variables.scss
+2
-2
app/assets/stylesheets/base/variables.scss
app/assets/stylesheets/base/variables.scss
+6
-4
app/assets/stylesheets/generic/avatar.scss
app/assets/stylesheets/generic/avatar.scss
+1
-0
app/assets/stylesheets/generic/blocks.scss
app/assets/stylesheets/generic/blocks.scss
+2
-2
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+6
-6
app/assets/stylesheets/generic/header.scss
app/assets/stylesheets/generic/header.scss
+1
-1
app/assets/stylesheets/generic/lists.scss
app/assets/stylesheets/generic/lists.scss
+3
-2
app/assets/stylesheets/generic/selects.scss
app/assets/stylesheets/generic/selects.scss
+1
-1
app/assets/stylesheets/generic/sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+9
-9
app/assets/stylesheets/pages/dashboard.scss
app/assets/stylesheets/pages/dashboard.scss
+1
-1
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+6
-8
app/views/events/_event.html.haml
app/views/events/_event.html.haml
+2
-2
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+1
-1
app/views/shared/groups/_group.html.haml
app/views/shared/groups/_group.html.haml
+1
-1
app/views/shared/projects/_project.html.haml
app/views/shared/projects/_project.html.haml
+2
-2
No files found.
app/assets/stylesheets/application.scss
View file @
c13ef898
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
*/
*/
@import
"base/fonts"
;
@import
"base/variables"
;
@import
"base/variables"
;
@import
"base/mixins"
;
@import
"base/mixins"
;
@import
"base/layout"
;
@import
"base/layout"
;
...
...
app/assets/stylesheets/base/gl_variables.scss
View file @
c13ef898
...
@@ -43,7 +43,7 @@ $font-size-base: $gl-font-size;
...
@@ -43,7 +43,7 @@ $font-size-base: $gl-font-size;
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
$padding-base-vertical
:
9px
;
$padding-base-vertical
:
9px
;
$padding-base-horizontal
:
18px
;
$padding-base-horizontal
:
$gl-padding
;
$component-active-color
:
#fff
;
$component-active-color
:
#fff
;
$component-active-bg
:
$brand-info
;
$component-active-bg
:
$brand-info
;
...
@@ -143,4 +143,4 @@ $btn-default-border: #e7e9ed;
...
@@ -143,4 +143,4 @@ $btn-default-border: #e7e9ed;
//== Nav
//== Nav
//
//
//##
//##
$nav-link-padding
:
13px
18px
;
$nav-link-padding
:
13px
$gl-padding
;
app/assets/stylesheets/base/variables.scss
View file @
c13ef898
...
@@ -3,8 +3,8 @@ $gl-text-color: #54565b;
...
@@ -3,8 +3,8 @@ $gl-text-color: #54565b;
$gl-header-color
:
#4c4e54
;
$gl-header-color
:
#4c4e54
;
$gl-link-color
:
#333c48
;
$gl-link-color
:
#333c48
;
$nprogress-color
:
#c0392b
;
$nprogress-color
:
#c0392b
;
$gl-font-size
:
1
6
px
;
$gl-font-size
:
1
5
px
;
$list-font-size
:
1
6
px
;
$list-font-size
:
1
5
px
;
$sidebar_collapsed_width
:
62px
;
$sidebar_collapsed_width
:
62px
;
$sidebar_width
:
230px
;
$sidebar_width
:
230px
;
$avatar_radius
:
50%
;
$avatar_radius
:
50%
;
...
@@ -12,9 +12,11 @@ $code_font_size: 13px;
...
@@ -12,9 +12,11 @@ $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
:
73
px
;
$header-height
:
67
px
;
$fixed-layout-width
:
1200px
;
$fixed-layout-width
:
1200px
;
$gl-gray
:
#7f8fa4
;
$gl-gray
:
#7f8fa4
;
$gl-padding
:
16px
;
$gl-avatar-size
:
46px
;
/*
/*
...
@@ -36,4 +38,4 @@ $deleted: #f77;
...
@@ -36,4 +38,4 @@ $deleted: #f77;
* Fonts
* Fonts
*/
*/
$monospace_font
:
'Menlo'
,
'Liberation Mono'
,
'Consolas'
,
'DejaVu Sans Mono'
,
'Ubuntu Mono'
,
'Courier New'
,
'andale mono'
,
'lucida console'
,
monospace
;
$monospace_font
:
'Menlo'
,
'Liberation Mono'
,
'Consolas'
,
'DejaVu Sans Mono'
,
'Ubuntu Mono'
,
'Courier New'
,
'andale mono'
,
'lucida console'
,
monospace
;
$regular_font
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
$regular_font
:
'Source Sans Pro'
,
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
app/assets/stylesheets/generic/avatar.scss
View file @
c13ef898
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
&
.s32
{
width
:
32px
;
height
:
32px
;
margin-right
:
10px
;
}
&
.s32
{
width
:
32px
;
height
:
32px
;
margin-right
:
10px
;
}
&
.s46
{
width
:
46px
;
height
:
46px
;
margin-right
:
15px
;
}
&
.s48
{
width
:
48px
;
height
:
48px
;
margin-right
:
10px
;
}
&
.s48
{
width
:
48px
;
height
:
48px
;
margin-right
:
10px
;
}
&
.s60
{
width
:
60px
;
height
:
60px
;
margin-right
:
12px
;
}
&
.s60
{
width
:
60px
;
height
:
60px
;
margin-right
:
12px
;
}
&
.s90
{
width
:
90px
;
height
:
90px
;
margin-right
:
15px
;
}
&
.s90
{
width
:
90px
;
height
:
90px
;
margin-right
:
15px
;
}
...
...
app/assets/stylesheets/generic/blocks.scss
View file @
c13ef898
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
}
}
.gray-content-block
{
.gray-content-block
{
margin
:
-
18px
;
margin
:
-
$gl-padding
;
background-color
:
#f8fafc
;
background-color
:
#f8fafc
;
padding
:
18px
;
padding
:
$gl-padding
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
border-top
:
1px
solid
#e7e9ed
;
border-top
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
...
...
app/assets/stylesheets/generic/common.scss
View file @
c13ef898
...
@@ -374,17 +374,17 @@ table {
...
@@ -374,17 +374,17 @@ table {
list-style
:
none
;
list-style
:
none
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
5px
;
margin-top
:
5px
;
margin-bottom
:
18px
;
margin-bottom
:
$gl-padding
;
height
:
60
px
;
height
:
56
px
;
margin-top
:
-
18px
;
margin-top
:
-
$gl-padding
;
padding-top
:
18px
;
padding-top
:
$gl-padding
;
li
{
li
{
display
:
inline-block
;
display
:
inline-block
;
a
{
a
{
padding
:
1
5
px
;
padding
:
1
4
px
;
font-size
:
20
px
;
font-size
:
17
px
;
line-height
:
28px
;
line-height
:
28px
;
color
:
#7f8fa4
;
color
:
#7f8fa4
;
border-bottom
:
2px
solid
transparent
;
border-bottom
:
2px
solid
transparent
;
...
...
app/assets/stylesheets/generic/header.scss
View file @
c13ef898
...
@@ -70,7 +70,7 @@ header {
...
@@ -70,7 +70,7 @@ header {
.title
{
.title
{
margin
:
0
;
margin
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
font-size
:
20
px
;
font-size
:
19
px
;
line-height
:
$header-height
;
line-height
:
$header-height
;
font-weight
:
normal
;
font-weight
:
normal
;
color
:
#4c4e54
;
color
:
#4c4e54
;
...
...
app/assets/stylesheets/generic/lists.scss
View file @
c13ef898
...
@@ -106,9 +106,10 @@ ul.content-list {
...
@@ -106,9 +106,10 @@ ul.content-list {
padding
:
0
;
padding
:
0
;
li
{
li
{
padding
:
18px
;
padding
:
$gl-padding
;
border-color
:
#f1f2f4
;
border-color
:
#f1f2f4
;
margin
:
0
-18px
;
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
color
:
$gl-gray
;
color
:
$gl-gray
;
.avatar
{
.avatar
{
...
...
app/assets/stylesheets/generic/selects.scss
View file @
c13ef898
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
background
:
#FFF
;
background
:
#FFF
;
border-color
:
#DDD
;
border-color
:
#DDD
;
height
:
42px
;
height
:
42px
;
padding
:
8px
18px
;
padding
:
8px
$gl-padding
;
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
line-height
:
1
.42857143
;
line-height
:
1
.42857143
;
...
...
app/assets/stylesheets/generic/sidebar.scss
View file @
c13ef898
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
.container-fluid
{
.container-fluid
{
background
:
#FFF
;
background
:
#FFF
;
padding
:
18px
;
padding
:
$gl-padding
;
border
:
1px
solid
#e7e9ed
;
border
:
1px
solid
#e7e9ed
;
min-height
:
90vh
;
min-height
:
90vh
;
}
}
...
@@ -51,8 +51,8 @@
...
@@ -51,8 +51,8 @@
}
}
a
{
a
{
padding
:
8
px
15px
;
padding
:
7
px
15px
;
font-size
:
16px
;
font-size
:
$gl-font-size
;
line-height
:
24px
;
line-height
:
24px
;
color
:
$gray
;
color
:
$gray
;
display
:
block
;
display
:
block
;
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
}
}
.sidebar-user
{
.sidebar-user
{
padding
:
12
px
22px
;
padding
:
9
px
22px
;
position
:
fixed
;
position
:
fixed
;
bottom
:
40px
;
bottom
:
40px
;
width
:
$sidebar_width
;
width
:
$sidebar_width
;
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,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
:
4
9
px
;
line-height
:
4
4
px
;
}
}
}
}
...
@@ -227,12 +227,12 @@
...
@@ -227,12 +227,12 @@
float
:
left
;
float
:
left
;
height
:
$header-height
;
height
:
$header-height
;
width
:
100%
;
width
:
100%
;
padding
:
1
2
px
22px
;
padding
:
1
0
px
22px
;
overflow
:
hidden
;
overflow
:
hidden
;
img
{
img
{
width
:
48px
;
width
:
$gl-avatar-size
;
height
:
48px
;
height
:
$gl-avatar-size
;
float
:
left
;
float
:
left
;
}
}
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
float
:
left
;
float
:
left
;
margin
:
0
;
margin
:
0
;
margin-left
:
14px
;
margin-left
:
14px
;
font-size
:
20
px
;
font-size
:
19
px
;
line-height
:
49px
;
line-height
:
49px
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
...
...
app/assets/stylesheets/pages/dashboard.scss
View file @
c13ef898
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
}
}
.identicon
{
.identicon
{
line-height
:
4
0
px
;
line-height
:
4
6
px
;
}
}
}
}
...
...
app/assets/stylesheets/pages/projects.scss
View file @
c13ef898
...
@@ -187,7 +187,6 @@ ul.nav.nav-projects-tabs {
...
@@ -187,7 +187,6 @@ ul.nav.nav-projects-tabs {
line-height
:
42px
;
line-height
:
42px
;
background
:
white
;
background
:
white
;
border
:
none
;
border
:
none
;
font-size
:
16px
;
>
li
+
li
:before
{
>
li
+
li
:before
{
padding
:
0
3px
;
padding
:
0
3px
;
...
@@ -253,9 +252,9 @@ pre.light-well {
...
@@ -253,9 +252,9 @@ pre.light-well {
}
}
.projects-search-form
{
.projects-search-form
{
margin
:
-
18px
;
margin
:
-
$gl-padding
;
background-color
:
#f8fafc
;
background-color
:
#f8fafc
;
padding
:
18px
;
padding
:
$gl-padding
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
border-top
:
1px
solid
#e7e9ed
;
border-top
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
...
@@ -268,9 +267,10 @@ pre.light-well {
...
@@ -268,9 +267,10 @@ pre.light-well {
@include
basic-list
;
@include
basic-list
;
.project-row
{
.project-row
{
padding
:
18px
;
padding
:
$gl-padding
;
border-color
:
#f1f2f4
;
border-color
:
#f1f2f4
;
margin
:
0
-18px
;
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
&
.no-description
{
&
.no-description
{
.project
{
.project
{
...
@@ -280,8 +280,7 @@ pre.light-well {
...
@@ -280,8 +280,7 @@ pre.light-well {
.project-full-name
{
.project-full-name
{
@include
str-truncated
;
@include
str-truncated
;
font-weight
:
500
;
font-weight
:
600
;
font-size
:
16px
;
color
:
#4c4e54
;
color
:
#4c4e54
;
}
}
...
@@ -292,7 +291,6 @@ pre.light-well {
...
@@ -292,7 +291,6 @@ pre.light-well {
.project-description
{
.project-description
{
color
:
#7f8fa4
;
color
:
#7f8fa4
;
font-size
:
16px
;
p
{
p
{
@include
str-truncated
;
@include
str-truncated
;
...
...
app/views/events/_event.html.haml
View file @
c13ef898
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
.event-item-timestamp
.event-item-timestamp
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
=
cache
[
event
,
"v2"
]
do
=
cache
[
event
,
"v2
.1
"
]
do
=
image_tag
avatar_icon
(
event
.
author_email
,
4
8
),
class:
"avatar s48
"
,
alt
:''
=
image_tag
avatar_icon
(
event
.
author_email
,
4
6
),
class:
"avatar s46
"
,
alt
:''
-
if
event
.
created_project?
-
if
event
.
created_project?
=
render
"events/event/created_project"
,
event:
event
=
render
"events/event/created_project"
,
event:
event
-
elsif
event
.
push?
-
elsif
event
.
push?
...
...
app/views/layouts/_page.html.haml
View file @
c13ef898
...
@@ -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 s4
8
'
=
image_tag
avatar_icon
(
current_user
.
email
,
60
),
alt:
'User activity'
,
class:
'avatar avatar s4
6
'
.username
.username
=
current_user
.
username
=
current_user
.
username
.content-wrapper
.content-wrapper
...
...
app/views/shared/groups/_group.html.haml
View file @
c13ef898
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
=
link_to
leave_group_group_members_path
(
group
),
data:
{
confirm:
leave_group_message
(
group
.
name
)
},
method: :delete
,
class:
"btn-sm btn btn-grouped"
,
title:
'Leave this group'
do
=
link_to
leave_group_group_members_path
(
group
),
data:
{
confirm:
leave_group_message
(
group
.
name
)
},
method: :delete
,
class:
"btn-sm btn btn-grouped"
,
title:
'Leave this group'
do
%i
.fa.fa-sign-out
%i
.fa.fa-sign-out
=
image_tag
group_icon
(
group
),
class:
"avatar s4
8
hidden-xs"
=
image_tag
group_icon
(
group
),
class:
"avatar s4
6
hidden-xs"
=
link_to
group
,
class:
'group-name'
do
=
link_to
group
,
class:
'group-name'
do
%strong
=
group
.
name
%strong
=
group
.
name
...
...
app/views/shared/projects/_project.html.haml
View file @
c13ef898
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
-
css_class
=
''
unless
local_assigns
[
:css_class
]
-
css_class
=
''
unless
local_assigns
[
:css_class
]
-
css_class
+=
" no-description"
unless
project
.
description
.
present?
-
css_class
+=
" no-description"
unless
project
.
description
.
present?
%li
.project-row
{
class:
css_class
}
%li
.project-row
{
class:
css_class
}
=
cache
[
project
.
namespace
,
project
,
controller
.
controller_name
,
controller
.
action_name
,
'v2'
]
do
=
cache
[
project
.
namespace
,
project
,
controller
.
controller_name
,
controller
.
action_name
,
'v2
.1
'
]
do
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
-
if
avatar
-
if
avatar
.dash-project-avatar
.dash-project-avatar
=
project_icon
(
project
,
alt:
''
,
class:
'avatar project-avatar s4
0
'
)
=
project_icon
(
project
,
alt:
''
,
class:
'avatar project-avatar s4
6
'
)
%span
.project-full-name
%span
.project-full-name
%span
.namespace-name
%span
.namespace-name
-
if
project
.
namespace
-
if
project
.
namespace
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment