BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
efb3a536
Commit
efb3a536
authored
Sep 08, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sidebar-drop-shadow' into 'master'
Adds drop shadow to the expanded sidebar Closes #36750 and #13983 See merge request !13994
parents
2f46c3a8
e1af325d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
new_sidebar.js
app/assets/javascripts/new_sidebar.js
+5
-0
new_sidebar.scss
app/assets/stylesheets/new_sidebar.scss
+7
-0
No files found.
app/assets/javascripts/new_sidebar.js
View file @
efb3a536
...
...
@@ -19,6 +19,11 @@ export default class NewNavSidebar {
}
bindEvents
()
{
document
.
addEventListener
(
'click'
,
(
e
)
=>
{
if
(
!
e
.
target
.
closest
(
'.nav-sidebar'
)
&&
(
bp
.
getBreakpointSize
()
===
'sm'
||
bp
.
getBreakpointSize
()
===
'md'
))
{
this
.
toggleCollapsedSidebar
(
true
);
}
});
this
.
$openSidebar
.
on
(
'click'
,
()
=>
this
.
toggleSidebarNav
(
true
));
this
.
$closeSidebar
.
on
(
'click'
,
()
=>
this
.
toggleSidebarNav
(
false
));
this
.
$overlay
.
on
(
'click'
,
()
=>
this
.
toggleSidebarNav
(
false
));
...
...
app/assets/stylesheets/new_sidebar.scss
View file @
efb3a536
...
...
@@ -99,6 +99,13 @@ $new-sidebar-collapsed-width: 50px;
box-shadow
:
inset
-2px
0
0
$border-color
;
transform
:
translate3d
(
0
,
0
,
0
);
&
:not
(
.sidebar-icons-only
)
{
@media
(
min-width
:
$screen-sm-min
)
and
(
max-width
:
$screen-md-max
)
{
box-shadow
:
inset
-2px
0
0
$border-color
,
2px
1px
3px
$dropdown-shadow-color
;
}
}
&
.sidebar-icons-only
{
width
:
$new-sidebar-collapsed-width
;
...
...
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