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
Boxiang Sun
gitlab-ce
Commits
3b53b553
Commit
3b53b553
authored
Jun 22, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile improvements
parent
970a0de0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
app/assets/stylesheets/new_nav.scss
app/assets/stylesheets/new_nav.scss
+10
-10
app/views/layouts/header/_new.html.haml
app/views/layouts/header/_new.html.haml
+3
-6
No files found.
app/assets/stylesheets/new_nav.scss
View file @
3b53b553
...
@@ -50,15 +50,19 @@ header.navbar-gitlab-new {
...
@@ -50,15 +50,19 @@ header.navbar-gitlab-new {
}
}
.navbar-collapse
{
.navbar-collapse
{
padding-left
:
0
;
color
:
$white-light
;
color
:
$white-light
;
}
}
.container-fluid
{
.container-fluid
{
.navbar-toggle
{
.navbar-toggle
{
min-width
:
45px
;
padding
:
6px
$gl-padding
;
padding
:
6px
$gl-padding
;
margin-right
:
-5px
;
margin-right
:
-5px
;
font-size
:
14px
;
text-align
:
center
;
color
:
currentColor
;
color
:
currentColor
;
border-left
:
1px
solid
$white-light
;
border-left
:
1px
solid
lighten
(
$purple-700
,
10%
)
;
&
:hover
,
&
:hover
,
&
:focus
,
&
:focus
,
...
@@ -68,14 +72,6 @@ header.navbar-gitlab-new {
...
@@ -68,14 +72,6 @@ header.navbar-gitlab-new {
}
}
}
}
.navbar-toggle-left
{
right
:
0
;
margin-right
:
0
;
margin-left
:
-16px
;
border-left
:
0
;
border-right
:
1px
solid
$white-light
;
}
.navbar-nav
{
.navbar-nav
{
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
padding-right
:
10px
;
padding-right
:
10px
;
...
@@ -116,7 +112,7 @@ header.navbar-gitlab-new {
...
@@ -116,7 +112,7 @@ header.navbar-gitlab-new {
>
a
{
>
a
{
display
:
block
;
display
:
block
;
padding
:
16px
9
px
13px
;
padding
:
16px
10
px
13px
;
font-size
:
13px
;
font-size
:
13px
;
color
:
currentColor
;
color
:
currentColor
;
border-bottom
:
3px
solid
transparent
;
border-bottom
:
3px
solid
transparent
;
...
@@ -135,6 +131,10 @@ header.navbar-gitlab-new {
...
@@ -135,6 +131,10 @@ header.navbar-gitlab-new {
}
}
}
}
.header-user
.dropdown-menu-nav
{
margin-top
:
4px
;
}
.search
{
.search
{
form
{
form
{
border-color
:
$purple-800
;
border-color
:
$purple-800
;
...
...
app/views/layouts/header/_new.html.haml
View file @
3b53b553
...
@@ -16,10 +16,6 @@
...
@@ -16,10 +16,6 @@
-
else
-
else
=
render
"layouts/nav/new_explore"
=
render
"layouts/nav/new_explore"
%button
.navbar-toggle.navbar-toggle-left.hide.hidden-sm.hidden-md.hidden-lg.js-navbar-toggle-left
{
type:
'button'
}
%span
.sr-only
Toggle navigation
=
icon
(
'chevron-left'
)
.navbar-collapse.collapse
.navbar-collapse.collapse
%ul
.nav.navbar-nav
%ul
.nav.navbar-nav
%li
.hidden-sm.hidden-xs
%li
.hidden-sm.hidden-xs
...
@@ -84,9 +80,10 @@
...
@@ -84,9 +80,10 @@
%div
%div
=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in btn-success'
=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in btn-success'
%button
.navbar-toggle.hidden-sm.hidden-md.hidden-lg
.js-navbar-toggle-right
{
type:
'button'
}
%button
.navbar-toggle.hidden-sm.hidden-md.hidden-lg
{
type:
'button'
}
%span
.sr-only
Toggle navigation
%span
.sr-only
Toggle navigation
=
icon
(
'chevron-right'
)
=
icon
(
'ellipsis-v'
,
class:
'js-navbar-toggle-right'
)
=
icon
(
'times'
,
class:
'js-navbar-toggle-left'
,
style:
'display: none;'
)
=
yield
:header_content
=
yield
:header_content
...
...
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