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
Léo-Paul Géneau
gitlab-ce
Commits
f4441289
Commit
f4441289
authored
Sep 07, 2017
by
Kushal Pandya
Committed by
Annabel Dunstone Gray
Sep 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make dropdown menus on navigation to use full viewport width
parent
c5536a37
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+19
-6
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+2
-2
No files found.
app/assets/stylesheets/framework/dropdowns.scss
View file @
f4441289
...
@@ -837,17 +837,30 @@
...
@@ -837,17 +837,30 @@
}
}
}
}
@media
(
max-width
:
$screen-xs-max
)
{
.navbar-gitlab
{
li
.header-projects
,
li
.header-more
,
li
.header-new
,
li
.header-user
{
position
:
static
;
}
}
header
.navbar-gitlab
.dropdown
{
.dropdown-menu
,
.dropdown-menu-nav
{
width
:
100%
;
min-width
:
100%
;
}
}
}
@include
new-style-dropdown
(
'.breadcrumbs-list .dropdown '
);
@include
new-style-dropdown
(
'.breadcrumbs-list .dropdown '
);
@include
new-style-dropdown
(
'.js-namespace-select + '
);
@include
new-style-dropdown
(
'.js-namespace-select + '
);
header
.navbar-gitlab-new
.header-content
.dropdown-menu.projects-dropdown-menu
{
header
.navbar-gitlab-new
.header-content
.dropdown-menu.projects-dropdown-menu
{
padding
:
0
;
padding
:
0
;
@media
(
max-width
:
$screen-xs-max
)
{
display
:
table
;
left
:
-50px
;
min-width
:
300px
;
}
}
}
.projects-dropdown-container
{
.projects-dropdown-container
{
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
f4441289
%ul
.list-unstyled.navbar-sub-nav
%ul
.list-unstyled.navbar-sub-nav
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
id:
'nav-projects-dropdown'
,
class:
"home dropdown"
})
do
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
id:
'nav-projects-dropdown'
,
class:
"home dropdown
header-projects
"
})
do
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
Projects
Projects
=
custom_icon
(
'caret_down'
)
=
custom_icon
(
'caret_down'
)
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
Snippets
Snippets
%li
.dropdown.hidden-lg
%li
.
header-more.
dropdown.hidden-lg
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
More
More
=
custom_icon
(
'caret_down'
)
=
custom_icon
(
'caret_down'
)
...
...
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