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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
de6360f9
Commit
de6360f9
authored
Apr 01, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve styling for new complex sidebar
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
03f2dd90
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
51 deletions
+31
-51
app/assets/stylesheets/framework/gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+0
-1
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+27
-38
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+2
-2
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+1
-1
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+1
-9
No files found.
app/assets/stylesheets/framework/gitlab-theme.scss
View file @
de6360f9
...
@@ -63,7 +63,6 @@
...
@@ -63,7 +63,6 @@
.count
{
.count
{
color
:
$color-light
;
color
:
$color-light
;
background
:
$color-dark
;
}
}
}
}
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
de6360f9
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
}
}
a
{
a
{
padding
:
7px
1
5
px
;
padding
:
7px
1
2
px
;
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
line-height
:
24px
;
line-height
:
24px
;
color
:
$gray
;
color
:
$gray
;
...
@@ -169,10 +169,12 @@
...
@@ -169,10 +169,12 @@
}
}
.count
{
.count
{
float
:
right
;
&
:before
{
background
:
#eee
;
content
:
'('
;
padding
:
0
8px
;
}
@include
border-radius
(
6px
);
&
:after
{
content
:
')'
;
}
}
}
&
.back-link
i
{
&
.back-link
i
{
...
@@ -288,17 +290,14 @@
...
@@ -288,17 +290,14 @@
}
}
}
}
.page-sidebar-expanded
{
.complex-sidebar
{
.complex-sidebar
{
display
:
inline-block
;
display
:
inline-block
;
.nav-sidebar
{
margin-bottom
:
0
;
}
.nav-primary
{
.nav-primary
{
width
:
60
px
;
width
:
61
px
;
float
:
left
;
float
:
left
;
border-right
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.1
);
height
:
100vh
;
.nav-sidebar
{
.nav-sidebar
{
width
:
60px
;
width
:
60px
;
...
@@ -314,8 +313,6 @@
...
@@ -314,8 +313,6 @@
}
}
.nav-secondary
{
.nav-secondary
{
padding-bottom
:
100px
;
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.1
);
float
:
left
;
float
:
left
;
width
:
168px
;
width
:
168px
;
...
@@ -331,12 +328,4 @@
...
@@ -331,12 +328,4 @@
}
}
}
}
}
}
}
}
.page-sidebar-collapsed
{
.nav-secondary
{
display
:
none
;
transition-duration
:
.3s
;
}
}
}
app/views/layouts/_page.html.haml
View file @
de6360f9
.page-with-sidebar
{
class:
"#{page_sidebar_class} #{page_gutter_class}"
}
.page-with-sidebar
{
class:
"#{page_sidebar_class} #{page_gutter_class}"
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
.expand-nav
.expand-nav
=
link_to
icon
(
'bars'
),
'#'
,
class:
'toggle-nav-collapse'
,
title:
"Open
/Close
"
=
link_to
icon
(
'bars'
),
'#'
,
class:
'toggle-nav-collapse'
,
title:
"Open
sidebar
"
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
.header-logo
.header-logo
%a
#logo
%a
#logo
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
=
render
"layouts/nav/
#{
primary_sidebar
}
"
=
render
"layouts/nav/
#{
primary_sidebar
}
"
.collapse-nav
.collapse-nav
=
link_to
icon
(
'angle-left'
),
'#'
,
class:
'toggle-nav-collapse'
,
title:
"
Open/Close
"
=
link_to
icon
(
'angle-left'
),
'#'
,
class:
'toggle-nav-collapse'
,
title:
"
Hide sidebar
"
-
if
current_user
-
if
current_user
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
do
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
do
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'Profile'
,
class:
'avatar avatar s36'
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'Profile'
,
class:
'avatar avatar s36'
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
de6360f9
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
=
icon
(
'dashboard fw'
)
=
icon
(
'dashboard fw'
)
%span
%span
Activity
Activity
=
nav_link
(
controller: :groups
)
do
=
nav_link
(
path:
[
'groups#index'
]
)
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
%span
%span
...
...
app/views/layouts/nav/_group.html.haml
View file @
de6360f9
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
%span
Go to dashboard
%li
.separate-item
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
...
@@ -42,7 +34,7 @@
...
@@ -42,7 +34,7 @@
%span
%span
Members
Members
-
if
can?
(
current_user
,
:admin_group
,
@group
)
-
if
can?
(
current_user
,
:admin_group
,
@group
)
=
nav_link
(
html_options:
{
class:
"
separate-item
"
})
do
=
nav_link
(
html_options:
{
class:
""
})
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
do
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
...
...
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