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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
9793c346
Commit
9793c346
authored
Sep 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make project page and header more compact
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ac6dfbd9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
11 deletions
+16
-11
app/assets/stylesheets/base/variables.scss
app/assets/stylesheets/base/variables.scss
+1
-1
app/assets/stylesheets/generic/avatar.scss
app/assets/stylesheets/generic/avatar.scss
+1
-0
app/assets/stylesheets/generic/sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+5
-5
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+7
-3
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+1
-1
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
No files found.
app/assets/stylesheets/base/variables.scss
View file @
9793c346
...
@@ -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
:
61
px
;
$header-height
:
58
px
;
$fixed-layout-width
:
1200px
;
$fixed-layout-width
:
1200px
;
$gl-gray
:
#7f8fa4
;
$gl-gray
:
#7f8fa4
;
$gl-padding
:
16px
;
$gl-padding
:
16px
;
...
...
app/assets/stylesheets/generic/avatar.scss
View file @
9793c346
...
@@ -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
;
}
&
.s36
{
width
:
36px
;
height
:
36px
;
margin-right
:
10px
;
}
&
.s46
{
width
:
46px
;
height
:
46px
;
margin-right
:
15px
;
}
&
.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
;
}
...
...
app/assets/stylesheets/generic/sidebar.scss
View file @
9793c346
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
a
{
a
{
padding-left
:
1
0
px
;
padding-left
:
1
2
px
;
.gitlab-text-container
{
.gitlab-text-container
{
display
:
none
;
display
:
none
;
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
}
}
.sidebar-user
{
.sidebar-user
{
padding-left
:
1
0
px
;
padding-left
:
1
2
px
;
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
.username
{
.username
{
...
@@ -214,7 +214,7 @@
...
@@ -214,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
:
3
6
px
;
line-height
:
3
4
px
;
}
}
}
}
...
@@ -235,8 +235,8 @@
...
@@ -235,8 +235,8 @@
overflow
:
hidden
;
overflow
:
hidden
;
img
{
img
{
width
:
40
px
;
width
:
36
px
;
height
:
40
px
;
height
:
36
px
;
float
:
left
;
float
:
left
;
}
}
...
...
app/assets/stylesheets/pages/projects.scss
View file @
9793c346
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
.project-home-desc
{
.project-home-desc
{
h1
{
h1
{
margin
:
0
;
margin
:
0
;
margin-bottom
:
5
px
;
margin-bottom
:
10
px
;
font-size
:
23px
;
font-size
:
23px
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
...
@@ -55,6 +55,10 @@
...
@@ -55,6 +55,10 @@
.git-clone-holder
{
.git-clone-holder
{
max-width
:
600px
;
max-width
:
600px
;
margin
:
20px
auto
;
margin
:
20px
auto
;
.form-control
{
background
:
#FFF
;
}
}
}
.visibility-level-label
{
.visibility-level-label
{
...
@@ -65,7 +69,7 @@
...
@@ -65,7 +69,7 @@
}
}
.project-repo-buttons
{
.project-repo-buttons
{
margin-top
:
25px
;
margin-top
:
$gl-padding
;
margin-bottom
:
25px
;
margin-bottom
:
25px
;
.btn
{
.btn
{
...
@@ -74,7 +78,7 @@
...
@@ -74,7 +78,7 @@
text-transform
:
uppercase
;
text-transform
:
uppercase
;
font-size
:
15px
;
font-size
:
15px
;
line-height
:
20px
;
line-height
:
20px
;
padding
:
10px
16
px
;
padding
:
8px
14
px
;
border-radius
:
3px
;
border-radius
:
3px
;
margin-left
:
10px
;
margin-left
:
10px
;
...
...
app/views/layouts/_page.html.haml
View file @
9793c346
...
@@ -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 s
40
'
=
image_tag
avatar_icon
(
current_user
.
email
,
60
),
alt:
'User activity'
,
class:
'avatar avatar s
36
'
.username
.username
=
current_user
.
username
=
current_user
.
username
.content-wrapper
.content-wrapper
...
...
app/views/projects/_home_panel.html.haml
View file @
9793c346
-
empty_repo
=
@project
.
empty_repo?
-
empty_repo
=
@project
.
empty_repo?
.project-home-panel.clearfix
{
:class
=>
(
"empty-project"
if
empty_repo
)}
.project-home-panel.clearfix
{
:class
=>
(
"empty-project"
if
empty_repo
)}
.project-identicon-holder
.project-identicon-holder
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s
14
0'
)
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s
9
0'
)
.project-home-desc
.project-home-desc
%h1
=
@project
.
name
%h1
=
@project
.
name
-
if
@project
.
description
.
present?
-
if
@project
.
description
.
present?
...
...
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