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
9d74eb46
Commit
9d74eb46
authored
Jun 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increased speed of sidebar transition
parent
e3529d54
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
80 deletions
+30
-80
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+6
-2
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+1
-15
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+1
-1
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+21
-62
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
No files found.
app/assets/javascripts/application.js.coffee
View file @
9d74eb46
...
...
@@ -275,8 +275,12 @@ $ ->
if
$
.
cookie
(
'pin_nav'
)
is
'true'
$
.
cookie
'pin_nav'
,
'false'
$
(
'.page-with-sidebar'
).
removeClass
(
'page-sidebar-pinned'
)
$
(
'.navbar-fixed-top'
).
removeClass
(
'header-pinned-nav'
)
$
(
'.page-with-sidebar'
)
.
removeClass
(
'page-sidebar-pinned'
)
.
toggleClass
(
'page-sidebar-collapsed page-sidebar-expanded'
)
$
(
'.navbar-fixed-top'
)
.
removeClass
(
'header-pinned-nav'
)
.
toggleClass
(
'header-collapsed header-expanded'
)
else
$
.
cookie
'pin_nav'
,
'true'
$
(
'.page-with-sidebar'
).
addClass
(
'page-sidebar-pinned'
)
...
...
app/assets/stylesheets/framework/header.scss
View file @
9d74eb46
...
...
@@ -3,7 +3,7 @@
*
*/
header
{
transition
-duration
:
.3s
;
transition
:
padding
$sidebar-transition-duration
;
&
.navbar-empty
{
height
:
$header-height
;
...
...
@@ -103,9 +103,7 @@ header {
.header-content
{
position
:
relative
;
height
:
$header-height
;
padding-right
:
40px
;
padding-left
:
30px
;
transition-duration
:
.3s
;
@media
(
min-width
:
$screen-sm-min
)
{
padding-right
:
0
;
...
...
@@ -193,18 +191,6 @@ header {
}
}
.header-collapsed
{
margin-left
:
0
;
.header-content
{
@media
(
min-width
:
$screen-sm-max
)
{
padding-left
:
30px
;
transition-duration
:
.3s
;
}
}
}
.tanuki-shape
{
transition
:
all
0
.8s
;
...
...
app/assets/stylesheets/framework/nav.scss
View file @
9d74eb46
...
...
@@ -251,7 +251,7 @@
z-index
:
11
;
background
:
$background-color
;
border-bottom
:
1px
solid
$border-color
;
transition
-duration
:
.3s
;
transition
:
padding
$sidebar-transition-duration
;
text-align
:
center
;
.container-fluid
{
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
9d74eb46
.page-with-sidebar
{
padding-top
:
$header-height
;
transition
-duration
:
.3s
;
transition
:
padding
$sidebar-transition-duration
;
.sidebar-wrapper
{
position
:
fixed
;
...
...
@@ -8,7 +8,8 @@
bottom
:
0
;
left
:
0
;
height
:
100%
;
transition-duration
:
.3s
;
overflow
:
hidden
;
transition
:
width
$sidebar-transition-duration
;
}
}
...
...
@@ -24,6 +25,7 @@
.content-wrapper
{
width
:
100%
;
transition
:
padding
$sidebar-transition-duration
;
.container-fluid
{
background
:
#fff
;
...
...
@@ -44,13 +46,9 @@
bottom
:
0
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
.username
{
margin-left
:
10px
;
font-size
:
16px
;
line-height
:
36px
;
}
transition
:
width
$sidebar-transition-duration
,
padding
$sidebar-transition-duration
;
}
...
...
@@ -68,8 +66,7 @@
position
:
absolute
;
top
:
50px
;
bottom
:
65px
;
width
:
100%
;
transition-duration
:
.3s
;
width
:
$sidebar_width
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
...
...
@@ -99,11 +96,9 @@
outline
:
none
;
white-space
:
nowrap
;
&
:hover
{
text-decoration
:
none
;
}
&
:active
,
&
:focus
{
&
:hover
,
&
:active
,
&
:focus
{
text-decoration
:
none
;
}
...
...
@@ -115,10 +110,6 @@
svg
{
margin-right
:
13px
;
}
&
.back-link
i
{
transition-duration
:
.3s
;
}
}
}
...
...
@@ -129,20 +120,12 @@
}
}
.sidebar-subnav
{
margin-left
:
0
;
padding-left
:
0
;
li
{
list-style
:
none
;
}
}
.collapse-nav
{
width
:
100%
;
position
:
absolute
;
;
position
:
absolute
;
top
:
0
;
left
:
0
;
min-height
:
50px
;
padding
:
5px
0
;
font-size
:
18px
;
background
:
transparent
;
...
...
@@ -187,38 +170,6 @@
.sidebar-wrapper
{
width
:
0
;
.nav-sidebar
{
width
:
0
;
li
{
width
:
auto
;
a
{
span
{
display
:
none
;
}
}
}
}
.collapse-nav
a
{
width
:
0
;
i
{
display
:
none
;
}
}
.sidebar-user
{
width
:
0
;
padding-left
:
0
;
padding-right
:
0
;
.username
{
display
:
none
;
}
}
}
}
...
...
@@ -240,6 +191,14 @@
header
.header-pinned-nav
{
@media
(
min-width
:
$screen-lg-min
)
{
padding-left
:
(
$sidebar_width
+
$gl-padding
);
.side-nav-toggle
{
display
:
none
;
}
.header-content
{
padding-left
:
0
;
}
}
}
...
...
app/assets/stylesheets/framework/variables.scss
View file @
9d74eb46
...
...
@@ -6,6 +6,7 @@ $sidebar_width: 220px;
$gutter_collapsed_width
:
62px
;
$gutter_width
:
290px
;
$gutter_inner_width
:
258px
;
$sidebar-transition-duration
:
.15s
;
/*
* UI elements
...
...
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