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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
bb103745
Commit
bb103745
authored
Oct 24, 2017
by
Annabel Dunstone Gray
Committed by
Phil Hughes
Oct 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE- remove new sidebar stuff
parent
e363c5f3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
43 deletions
+37
-43
app/assets/javascripts/contextual_sidebar.js
app/assets/javascripts/contextual_sidebar.js
+2
-2
app/assets/javascripts/layout_nav.js
app/assets/javascripts/layout_nav.js
+3
-3
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+1
-1
app/assets/stylesheets/framework/contextual-sidebar.scss
app/assets/stylesheets/framework/contextual-sidebar.scss
+20
-34
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+9
-1
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+1
-1
app/helpers/nav_helper.rb
app/helpers/nav_helper.rb
+1
-1
No files found.
app/assets/javascripts/
new
_sidebar.js
→
app/assets/javascripts/
contextual
_sidebar.js
View file @
bb103745
...
...
@@ -2,7 +2,7 @@ import Cookies from 'js-cookie';
import
_
from
'
underscore
'
;
import
bp
from
'
./breakpoints
'
;
export
default
class
NewNav
Sidebar
{
export
default
class
Contextual
Sidebar
{
constructor
()
{
this
.
initDomElements
();
this
.
render
();
...
...
@@ -55,7 +55,7 @@ export default class NewNavSidebar {
this
.
$sidebar
.
toggleClass
(
'
sidebar-icons-only
'
,
collapsed
);
this
.
$page
.
toggleClass
(
'
page-with-icon-sidebar
'
,
breakpoint
===
'
sm
'
?
true
:
collapsed
);
}
NewNav
Sidebar
.
setCollapsedCookie
(
collapsed
);
Contextual
Sidebar
.
setCollapsedCookie
(
collapsed
);
this
.
toggleSidebarOverflow
();
}
...
...
app/assets/javascripts/layout_nav.js
View file @
bb103745
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, vars-on-top, max-len */
import
_
from
'
underscore
'
;
import
Cookies
from
'
js-cookie
'
;
import
NewNavSidebar
from
'
./new
_sidebar
'
;
import
ContextualSidebar
from
'
./contextual
_sidebar
'
;
import
initFlyOutNav
from
'
./fly_out_nav
'
;
(
function
()
{
...
...
@@ -51,8 +51,8 @@ import initFlyOutNav from './fly_out_nav';
});
$
(()
=>
{
const
newNavSidebar
=
new
NewNav
Sidebar
();
newNav
Sidebar
.
bindEvents
();
const
contextualSidebar
=
new
Contextual
Sidebar
();
contextual
Sidebar
.
bindEvents
();
initFlyOutNav
();
});
...
...
app/assets/stylesheets/framework.scss
View file @
bb103745
...
...
@@ -36,7 +36,7 @@
@import
"framework/secondary-navigation-elements"
;
@import
"framework/selects"
;
@import
"framework/sidebar"
;
@import
"framework/
new
-sidebar"
;
@import
"framework/
contextual
-sidebar"
;
@import
"framework/tables"
;
@import
"framework/notes"
;
@import
"framework/tabs"
;
...
...
app/assets/stylesheets/framework/
new
-sidebar.scss
→
app/assets/stylesheets/framework/
contextual
-sidebar.scss
View file @
bb103745
@import
"framework/variables"
;
@import
'framework/tw_bootstrap_variables'
;
@import
"bootstrap/variables"
;
$active-background
:
rgba
(
0
,
0
,
0
,
.04
);
$active-hover-background
:
$active-background
;
$active-hover-color
:
$gl-text-color
;
$inactive-badge-background
:
rgba
(
0
,
0
,
0
,
.08
);
$hover-background
:
$white-light
;
$hover-color
:
$gl-text-color
;
$inactive-color
:
$gl-text-color-secondary
;
$new-sidebar-width
:
220px
;
$new-sidebar-collapsed-width
:
50px
;
.page-with-new-sidebar
{
.page-with-contextual-sidebar
{
@media
(
min-width
:
$screen-md-min
)
{
padding-left
:
$
new
-sidebar-collapsed-width
;
padding-left
:
$
contextual
-sidebar-collapsed-width
;
}
@media
(
min-width
:
$screen-lg-min
)
{
padding-left
:
$
new
-sidebar-width
;
padding-left
:
$
contextual
-sidebar-width
;
}
// Override position: absolute
...
...
@@ -34,7 +20,7 @@ $new-sidebar-collapsed-width: 50px;
.page-with-icon-sidebar
{
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
$
new
-sidebar-collapsed-width
;
padding-left
:
$
contextual
-sidebar-collapsed-width
;
}
}
...
...
@@ -52,12 +38,12 @@ $new-sidebar-collapsed-width: 50px;
&
:hover
,
a
:hover
{
background-color
:
$hover-background
;
color
:
$
hover
-color
;
background-color
:
$
link-
hover-background
;
color
:
$
gl-text
-color
;
.settings-avatar
{
svg
{
fill
:
$
hover
-color
;
fill
:
$
gl-text
-color
;
}
}
}
...
...
@@ -85,7 +71,7 @@ $new-sidebar-collapsed-width: 50px;
.nav-sidebar
{
position
:
fixed
;
z-index
:
400
;
width
:
$
new
-sidebar-width
;
width
:
$
contextual
-sidebar-width
;
transition
:
left
$sidebar-transition-duration
;
top
:
$header-height
;
bottom
:
0
;
...
...
@@ -103,7 +89,7 @@ $new-sidebar-collapsed-width: 50px;
&
.sidebar-icons-only
{
width
:
auto
;
min-width
:
$
new
-sidebar-collapsed-width
;
min-width
:
$
contextual
-sidebar-collapsed-width
;
.nav-sidebar-inner-scroll
{
overflow-x
:
hidden
;
...
...
@@ -149,11 +135,11 @@ $new-sidebar-collapsed-width: 50px;
display
:
flex
;
align-items
:
center
;
padding
:
12px
16px
;
color
:
$
inactive-color
;
color
:
$
gl-text-color-secondary
;
}
svg
{
fill
:
$
inactive-color
;
fill
:
$
gl-text-color-secondary
;
}
}
...
...
@@ -168,7 +154,7 @@ $new-sidebar-collapsed-width: 50px;
}
@media
(
max-width
:
$screen-xs-max
)
{
left
:
(
-
$
new
-sidebar-width
);
left
:
(
-
$
contextual
-sidebar-width
);
}
.nav-icon-container
{
...
...
@@ -210,8 +196,8 @@ $new-sidebar-collapsed-width: 50px;
&
:hover
,
&
:focus
{
background
:
$
active-hover
-background
;
color
:
$
active-hover
-color
;
background
:
$
link-active
-background
;
color
:
$
gl-text
-color
;
}
}
...
...
@@ -220,7 +206,7 @@ $new-sidebar-collapsed-width: 50px;
&
,
&
:hover
,
&
:focus
{
background
:
$active-background
;
background
:
$
link-
active-background
;
}
}
}
...
...
@@ -308,11 +294,11 @@ $new-sidebar-collapsed-width: 50px;
.badge
{
background-color
:
$inactive-badge-background
;
color
:
$
inactive-color
;
color
:
$
gl-text-color-secondary
;
}
&
.active
{
background
:
$active-background
;
background
:
$
link-
active-background
;
>
a
{
margin-left
:
4px
;
...
...
@@ -330,7 +316,7 @@ $new-sidebar-collapsed-width: 50px;
&
.active
>
a
:hover
,
&
.is-over
>
a
{
background-color
:
$
white-light
;
background-color
:
$
link-hover-background
;
}
}
}
...
...
@@ -340,7 +326,7 @@ $new-sidebar-collapsed-width: 50px;
.toggle-sidebar-button
,
.close-nav-button
{
width
:
$
new
-sidebar-width
-
2px
;
width
:
$
contextual
-sidebar-width
-
2px
;
position
:
fixed
;
bottom
:
0
;
padding
:
16px
;
...
...
@@ -407,7 +393,7 @@ $new-sidebar-collapsed-width: 50px;
}
.toggle-sidebar-button
{
width
:
$
new
-sidebar-collapsed-width
-
2px
;
width
:
$
contextual
-sidebar-collapsed-width
-
2px
;
padding
:
16px
;
.collapse-text
,
...
...
app/assets/stylesheets/framework/variables.scss
View file @
bb103745
...
...
@@ -9,6 +9,8 @@ $sidebar-transition-duration: .15s;
$sidebar-breakpoint
:
1024px
;
$default-transition-duration
:
.15s
;
$right-sidebar-transition-duration
:
.3s
;
$contextual-sidebar-width
:
220px
;
$contextual-sidebar-collapsed-width
:
50px
;
/*
* Color schema
...
...
@@ -365,6 +367,13 @@ $dropdown-item-hover-bg: $gray-darker;
$filtered-search-term-shadow-color
:
rgba
(
0
,
0
,
0
,
0
.09
);
$dropdown-hover-color
:
$blue-400
;
/*
* Contextual Sidebar
*/
$link-active-background
:
rgba
(
0
,
0
,
0
,
.04
);
$link-hover-background
:
rgba
(
0
,
0
,
0
,
.06
);
$inactive-badge-background
:
rgba
(
0
,
0
,
0
,
.08
);
/*
* Buttons
*/
...
...
@@ -411,7 +420,6 @@ $note-targe3-inside: #ffffd3;
$note-line2-border
:
#ddd
;
$note-icon-gutter-width
:
55px
;
/*
* Zen
*/
...
...
app/assets/stylesheets/pages/boards.scss
View file @
bb103745
...
...
@@ -476,7 +476,7 @@
border-top
:
1px
solid
$border-color
;
}
.page-with-
new
-sidebar.page-with-sidebar
.issue-boards-sidebar
{
.page-with-
contextual
-sidebar.page-with-sidebar
.issue-boards-sidebar
{
.issuable-sidebar-header
{
position
:
relative
;
}
...
...
app/helpers/nav_helper.rb
View file @
bb103745
module
NavHelper
def
page_with_sidebar_class
class_name
=
page_gutter_class
class_name
<<
'page-with-
new
-sidebar'
if
defined?
(
@left_sidebar
)
&&
@left_sidebar
class_name
<<
'page-with-
contextual
-sidebar'
if
defined?
(
@left_sidebar
)
&&
@left_sidebar
class_name
<<
'page-with-icon-sidebar'
if
collapsed_sidebar?
&&
@left_sidebar
class_name
...
...
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