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
iv
gitlab-ce
Commits
a528b649
Commit
a528b649
authored
Jun 03, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add scrolling tabs to code subnav
parent
5db95f5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
20 deletions
+41
-20
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+18
-0
app/views/projects/commits/_head.html.haml
app/views/projects/commits/_head.html.haml
+23
-20
No files found.
app/assets/stylesheets/framework/nav.scss
View file @
a528b649
...
...
@@ -342,6 +342,24 @@
}
}
.scrolling-tabs-container
{
position
:
relative
;
.nav-links
{
@include
scrolling-links
();
.fade-right
{
@include
fade
(
left
,
rgba
(
255
,
255
,
255
,
0
.4
)
,
$background-color
);
right
:
0
;
}
.fade-left
{
@include
fade
(
right
,
rgba
(
255
,
255
,
255
,
0
.4
)
,
$background-color
);
left
:
0
;
}
}
}
.nav-block
{
position
:
relative
;
...
...
app/views/projects/commits/_head.html.haml
View file @
a528b649
%ul
.nav-links.sub-nav
.scrolling-tabs-container
%ul
.nav-links.sub-nav.scrolling-tabs
%div
{
class:
(
container_class
)
}
.fade-left
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file)
)
do
=
link_to
project_files_path
(
@project
)
do
Files
...
...
@@ -23,3 +25,4 @@
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
Tags
.fade-right
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