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
9408ed7f
Commit
9408ed7f
authored
Jul 17, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix resize bug for title and collapsible nav menus
parent
00861676
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
8 deletions
+31
-8
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+1
-7
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+29
-0
app/views/layouts/header/_new.html.haml
app/views/layouts/header/_new.html.haml
+1
-1
No files found.
app/assets/javascripts/main.js
View file @
9408ed7f
...
@@ -284,13 +284,7 @@ $(function () {
...
@@ -284,13 +284,7 @@ $(function () {
return
$container
.
remove
();
return
$container
.
remove
();
// Commit show suppressed diff
// Commit show suppressed diff
});
});
$
(
'
.navbar-toggle
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.navbar-toggle
'
).
on
(
'
click
'
,
()
=>
$
(
'
.header-content
'
).
toggleClass
(
'
menu-expanded
'
));
$
(
'
.header-content .title, .header-content .navbar-sub-nav
'
).
toggle
();
$
(
'
.header-content .header-logo
'
).
toggle
();
$
(
'
.header-content .navbar-collapse
'
).
toggle
();
$
(
'
.js-navbar-toggle-left, .js-navbar-toggle-right, .title-container
'
).
toggle
();
return
$
(
'
.navbar-toggle
'
).
toggleClass
(
'
active
'
);
});
// Show/hide comments on diff
// Show/hide comments on diff
$body
.
on
(
'
click
'
,
'
.js-toggle-diff-comments
'
,
function
(
e
)
{
$body
.
on
(
'
click
'
,
'
.js-toggle-diff-comments
'
,
function
(
e
)
{
var
$this
=
$
(
this
);
var
$this
=
$
(
this
);
...
...
app/assets/stylesheets/framework/header.scss
View file @
9408ed7f
...
@@ -132,6 +132,22 @@ header {
...
@@ -132,6 +132,22 @@ header {
}
}
}
}
&
.navbar-gitlab-new
{
.fa-times
{
display
:
none
;
}
.menu-expanded
{
.fa-ellipsis-v
{
display
:
none
;
}
.fa-times
{
display
:
block
;
}
}
}
.global-dropdown
{
.global-dropdown
{
position
:
absolute
;
position
:
absolute
;
left
:
-10px
;
left
:
-10px
;
...
@@ -171,6 +187,19 @@ header {
...
@@ -171,6 +187,19 @@ header {
min-height
:
$header-height
;
min-height
:
$header-height
;
padding-left
:
30px
;
padding-left
:
30px
;
&
.menu-expanded
{
@media
(
max-width
:
$screen-xs-max
)
{
.header-logo
,
.title-container
{
display
:
none
;
}
.navbar-collapse
{
display
:
block
;
}
}
}
.dropdown-menu
{
.dropdown-menu
{
margin-top
:
-5px
;
margin-top
:
-5px
;
}
}
...
...
app/views/layouts/header/_new.html.haml
View file @
9408ed7f
...
@@ -81,6 +81,6 @@
...
@@ -81,6 +81,6 @@
%button
.navbar-toggle.hidden-sm.hidden-md.hidden-lg
{
type:
'button'
}
%button
.navbar-toggle.hidden-sm.hidden-md.hidden-lg
{
type:
'button'
}
%span
.sr-only
Toggle navigation
%span
.sr-only
Toggle navigation
=
icon
(
'ellipsis-v'
,
class:
'js-navbar-toggle-right'
)
=
icon
(
'ellipsis-v'
,
class:
'js-navbar-toggle-right'
)
=
icon
(
'times'
,
class:
'js-navbar-toggle-left'
,
style:
'display: none;'
)
=
icon
(
'times'
,
class:
'js-navbar-toggle-left'
)
=
render
'shared/outdated_browser'
=
render
'shared/outdated_browser'
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