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
97606e73
Commit
97606e73
authored
Jul 12, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove toggle partial; Move pin link to top of side nav
parent
80145329
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
35 deletions
+38
-35
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+29
-28
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/views/layouts/_collapse_button.html.haml
app/views/layouts/_collapse_button.html.haml
+0
-3
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+8
-4
No files found.
app/assets/stylesheets/framework/sidebar.scss
View file @
97606e73
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
transition
:
width
$sidebar-transition-duration
;
transition
:
width
$sidebar-transition-duration
;
@include
box-shadow
(
2px
0
16px
0
#bbb
);
@include
box-shadow
(
2px
0
16px
0
$box-shadow-gray
);
}
}
}
}
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
}
}
a
{
a
{
padding
:
7px
1
5
px
;
padding
:
7px
1
6
px
;
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
line-height
:
24px
;
line-height
:
24px
;
display
:
block
;
display
:
block
;
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
}
}
}
}
.
toggle-nav-collapse
{
.
sidebar-action-buttons
{
width
:
$sidebar_width
;
width
:
$sidebar_width
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
@@ -117,28 +117,14 @@
...
@@ -117,28 +117,14 @@
padding
:
5px
0
;
padding
:
5px
0
;
font-size
:
18px
;
font-size
:
18px
;
line-height
:
30px
;
line-height
:
30px
;
}
.nav-header-btn
{
padding
:
10px
5px
;
color
:
inherit
;
transition-duration
:
.3s
;
&
:hover
,
.toggle-nav-collapse
{
&
:focus
{
left
:
0
;
color
:
$white-light
;
text-decoration
:
none
;
}
}
}
.pin-nav-btn
{
.pin-nav-btn
{
right
:
0
;
display
:
none
;
display
:
none
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
height
:
50px
;
width
:
$sidebar_width
;
line-height
:
30px
;
@media
(
min-width
:
$sidebar-breakpoint
)
{
@media
(
min-width
:
$sidebar-breakpoint
)
{
display
:
block
;
display
:
block
;
...
@@ -153,6 +139,21 @@
...
@@ -153,6 +139,21 @@
transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
}
}
}
}
}
}
.nav-header-btn
{
padding
:
10px
16px
;
color
:
inherit
;
transition-duration
:
.3s
;
position
:
absolute
;
top
:
0
;
&
:hover
,
&
:focus
{
color
:
$white-light
;
text-decoration
:
none
;
}
}
}
.page-sidebar-collapsed
{
.page-sidebar-collapsed
{
...
...
app/assets/stylesheets/framework/variables.scss
View file @
97606e73
...
@@ -86,6 +86,7 @@ $todo-alert-blue: #428bca;
...
@@ -86,6 +86,7 @@ $todo-alert-blue: #428bca;
$btn-side-margin
:
10px
;
$btn-side-margin
:
10px
;
$btn-sm-side-margin
:
7px
;
$btn-sm-side-margin
:
7px
;
$btn-xs-side-margin
:
5px
;
$btn-xs-side-margin
:
5px
;
$box-shadow-gray
:
#bbb
;
/*
/*
* Color schema
* Color schema
...
...
app/views/layouts/_collapse_button.html.haml
deleted
100644 → 0
View file @
80145329
=
link_to
'#'
,
class:
'nav-header-btn text-center toggle-nav-collapse'
,
title:
"Open/Close"
do
%span
.sr-only
Toggle navigation
=
icon
(
'bars'
)
app/views/layouts/_page.html.haml
View file @
97606e73
.page-with-sidebar
{
class:
"#{page_sidebar_class} #{page_gutter_class}"
}
.page-with-sidebar
{
class:
"#{page_sidebar_class} #{page_gutter_class}"
}
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
=
render
partial:
'layouts/collapse_button'
.sidebar-action-buttons
=
link_to
'#'
,
class:
'nav-header-btn toggle-nav-collapse'
,
title:
"Open/Close"
do
%span
.sr-only
Toggle navigation
=
icon
(
'bars'
)
=
link_to
'#'
,
class:
"nav-header-btn pin-nav-btn has-tooltip
#{
'is-active'
if
pinned_nav?
}
js-nav-pin"
,
title:
pinned_nav?
?
"Unpin navigation"
:
"Pin Navigation"
,
data:
{
placement:
'right'
,
container:
'body'
}
do
%span
.sr-only
Toggle navigation pinning
=
icon
(
'thumb-tack'
)
-
if
defined?
(
sidebar
)
&&
sidebar
-
if
defined?
(
sidebar
)
&&
sidebar
=
render
"layouts/nav/
#{
sidebar
}
"
=
render
"layouts/nav/
#{
sidebar
}
"
-
elsif
current_user
-
elsif
current_user
...
@@ -8,9 +15,6 @@
...
@@ -8,9 +15,6 @@
-
else
-
else
=
render
'layouts/nav/explore'
=
render
'layouts/nav/explore'
=
link_to
'#'
,
class:
"nav-header-btn text-center pin-nav-btn has-tooltip
#{
'is-active'
if
pinned_nav?
}
js-nav-pin"
,
title:
pinned_nav?
?
"Unpin navigation"
:
"Pin Navigation"
,
data:
{
placement:
'right'
,
container:
'body'
}
do
%span
.sr-only
Toggle navigation pinning
=
icon
(
'thumb-tack'
)
-
if
defined?
(
nav
)
&&
nav
-
if
defined?
(
nav
)
&&
nav
.layout-nav
.layout-nav
.container-fluid
.container-fluid
...
...
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